CN102419738A - Method and device for avoiding conflict between internal wireless network card and external wireless network card - Google Patents
Method and device for avoiding conflict between internal wireless network card and external wireless network card Download PDFInfo
- Publication number
- CN102419738A CN102419738A CN2011103933219A CN201110393321A CN102419738A CN 102419738 A CN102419738 A CN 102419738A CN 2011103933219 A CN2011103933219 A CN 2011103933219A CN 201110393321 A CN201110393321 A CN 201110393321A CN 102419738 A CN102419738 A CN 102419738A
- Authority
- CN
- China
- Prior art keywords
- wireless network
- mac address
- card
- network card
- built
- 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
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method for avoiding a conflict between an internal wireless network card and an external wireless network card. The method comprises the following steps of: detecting media access control (MAC) addresses of at least two wireless network cards, wherein the wireless network cards comprise the external wireless network card and the internal wireless network card; comparing the detected MAC addresses with a stored MAC address; and if the MAC address of one of the wireless network cards is the same as the stored MAC address, determining that the wireless network card is the internal wireless network card and the rest is the external wireless network card. The invention also provides a corresponding device. By adoption of the method and the device for avoiding the conflict between the internal wireless network card and the external wireless network card provided by the invention, a user can accurately distinguish the internal wireless network card from the external wireless network card, so that convenience is provided for the user.
Description
Technical field
The present invention relates to the communications field, specially refer to a kind of method and apparatus that solves built-in wireless network card and the conflict of external radio network interface card.
Background technology
Development along with radio network technique; Increasing electronic product has been implanted built-in WIFI (wireless network) function; For example the built-in WIFI of product such as mobile phone, PAD, portable computer, televisor almost become indispensable function; The also increasing WIFI that uses in family and the working environment, the trend of wireless penetration is obvious day by day.Most of electronic products can be used the WIFI Dongle of built-in wireless network card and external radio network interface card such as USB interface simultaneously; For example dispose the televisor of USB interface, it just uses all and can be at any time the WIFI Dongle of USB interface to be inserted into use WIFI function on the USB interface of televisor.
When electronic product is installed built-in wireless network card and external radio network interface card simultaneously; Because built-in wireless network card and external radio network interface card be difference to some extent on expenses standard, network speed usually; And domestic consumer obscures both in use easily; But used the external radio network interface card when causing desire to use built-in wireless network card, or desire has but been used built-in wireless network card when using the external radio network interface card.Be necessary in use both to be distinguished this moment, but the method that realizes purpose is not also arranged at present, uses to the user and also caused inconvenience.
Summary of the invention
Fundamental purpose of the present invention is that a kind of method and apparatus that solves built-in wireless network card and the conflict of external radio network interface card is provided, and correct built-in wireless network card of difference and external radio network interface card provided convenience to the user when user was used.
The present invention proposes a kind of method that solves 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, said wireless network card comprises external radio network interface card and built-in wireless network card;
The MAC Address of detected MAC Address and storage is compared, and the MAC Address of wireless network card is identical with the MAC Address of storage, judges that then this network interface card is built-in wireless network card; All the other are the external radio network interface card.
Preferably, before the MAC Address of carrying out at least two wireless network cards of said detection, also comprise:
Obtain the MAC Address of said built-in wireless network card, this MAC Address is saved to storer as the MAC Address of said storage.
Preferably, the said MAC Address that obtains built-in wireless network card comprises:
MAC Address through the said built-in wireless network card of Ifconfig command recognition.
Preferably, compare at the said MAC Address with detected MAC Address and storage of execution, the MAC Address of wireless network card is identical with the MAC Address of storage, judges that then this network interface card is built-in wireless network card; All the other are after the external radio network interface card, also comprise:
Select built-in wireless network card or external radio network interface card as required for use.
Preferably, the said external radio network interface card wireless network card that is USB interface wireless network card or PCI-E interface.
The present invention also proposes a kind of device that solves built-in wireless network card and the conflict of external radio network interface card, comprising:
Detection module is used to detect the MAC Address of at least two wireless network cards, and said wireless network card comprises external radio network interface card and built-in wireless network card;
Comparison module is used for the MAC Address of detected MAC Address and storage is compared, and the MAC Address of wireless network card is identical with the MAC Address of storage, judges that then this network interface card is built-in wireless network card; All the other are the external radio network interface card.
Preferably, said device also comprises:
Acquisition module is used to obtain the MAC Address of said built-in wireless network card, and this MAC Address is saved to storer as the MAC Address of said storage.
Preferably, said acquisition module specifically is used for:
MAC Address through the said built-in wireless network card of Ifconfig command recognition.
Preferably, said device also comprises:
Selected module is used for selecting for use as required built-in wireless network card or external radio network interface card.
Preferably, the said external radio network interface card wireless network card that is USB interface wireless network card or PCI-E interface.
The method and apparatus of built-in wireless network card of solution that the present invention proposes and the conflict of external radio network interface card is discerned built-in wireless network card and external radio network interface card through the MAC Address of network interface card, and using to the user provides convenience.
Description of drawings
The schematic flow sheet of Fig. 1 method first embodiment of built-in wireless network card and external radio network interface card conflict for the present invention solves;
The structural representation of Fig. 2 device second embodiment of built-in wireless network card and external radio network interface card conflict for the present invention solves.
The realization of the object of the invention, functional characteristics and advantage will combine embodiment, further specify with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
It is network interface card uniquely identified principle that the embodiment of the invention mainly is to utilize MAC Address, and built-in wireless network card and external radio network interface card are discerned.No matter all network interface cards no matter be wired network adapter or wireless network card, are built-in or external, and it self unique MAC Address is all arranged, and can not duplicate, and that is to say that MAC Address is the I.D. of network interface card.
According to above-mentioned principle, with reference to Fig. 1, method first embodiment that the present invention solves built-in wireless network card and the conflict of external radio network interface card is proposed, comprising:
Step S101, obtain the MAC Address of built-in wireless network card, this MAC Address is saved to storer as the MAC Address of storage.
Can utilize the Function detection of electronic product when the production line assembling is produced to obtain with the MAC Address of this MAC Address as storage; Because when production link; Have only built-in wireless network card in the electronic product, therefore when detecting built-in wireless network card function, can read the MAC Address of current wireless network interface card immediately.For distinguishing the MAC Address of detected wireless network card in using link, present embodiment is with the MAC Address of the former called after storage.Present embodiment can obtain the MAC Address that the MAC Address of built-in wireless network card is promptly stored in the electronic product through the order of carrying out " ifconfig ", like following example:
The MAC Address that can draw the wired network adapter of this electronic product from command execution results 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 such as EEPROM) as the MAC Address of storage.
The MAC Address of step S102, at least two wireless network cards of detection, said wireless network card comprises external radio network interface card and built-in wireless network card;
Use the radio function of electronic product the user; And when this electronic product exists built-in wireless network card and one or more external radio network interface card simultaneously; System identifies a plurality of wireless network cards simultaneously; Detect the MAC Address of all wireless network cards, present embodiment is with the detected MAC Address of this MAC Address called after, with the MAC Address of difference storage.
Step S103, relatively with the MAC Address of detected MAC Address and storage, the MAC Address of wireless network card is identical with the MAC Address of storage, judges that then this network interface card is built-in wireless network card; All the other are the external radio network interface card.
The MAC Address of having preserved in a plurality of detected MAC Addresss and the storer is compared, if the MAC Address of a certain wireless network card is identical with the MAC Address of storage, as be all 6C:FD:B9:09:D4:C9, then this wireless network card is built-in wireless network card.Otherwise think that then external radio network interface card such as MAC Address are other MAC Address beyond the 6C:FD:B9:09:D4:C9.
Step S104, select built-in wireless network card or external radio network interface card for use as required.
After correctly identifying built-in wireless network card and external radio network interface card, can carry out corresponding prompting, supply the user to select, and select for use built-in wireless network card or external radio network interface card to use according to user's selection.
Present embodiment is discerned built-in wireless network card and external radio network interface card through the MAC Address of network interface card, and using to the user provides convenience.
Based on same inventive concept, with reference to Fig. 2, the present invention proposes to solve device second embodiment of built-in wireless network card and the conflict of external radio network interface card, comprising:
Selected module 40 is used for selecting for use as required built-in wireless network card or external radio network interface card.
The MAC Address that can draw the wired network adapter of this electronic product from command execution results 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 such as EEPROM) as the MAC Address of storage.
Use the radio function of electronic product the user; And when this electronic product exists built-in wireless network card and one or more external radio network interface card simultaneously; System identifies a plurality of wireless network cards simultaneously; Detection module 20 detects the MAC Address of all wireless network cards, and present embodiment is with the detected MAC Address of this MAC Address called after, with the MAC Address of difference storage.
The MAC Address of comparison module 30 more said detected MAC Addresss and existing storage; If the MAC Address of a certain wireless network card is identical with the MAC Address of storage, as be all 6C:FD:B9:09:D4:C9, judge that then this wireless network card is built-in wireless network card.Otherwise then judge it is that external radio network interface card such as MAC Address are other MAC Address beyond the 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, supplies the user to select, and selects for use built-in wireless network card or external radio network interface card to use according to user's selection.
Present embodiment is discerned built-in wireless network card and external radio network interface card through the MAC Address of network interface card, and using to the user provides convenience.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.
Claims (10)
1. a method that solves built-in wireless network card and the conflict of external radio network interface card is characterized in that, comprising:
Detect the MAC Address of at least two wireless network cards, said wireless network card comprises external radio network interface card and built-in wireless network card;
The MAC Address of detected MAC Address and storage is compared, and the MAC Address of wireless network card is identical with the MAC Address of storage, judges that then this network interface card is built-in wireless network card; All the other are the external radio network interface card.
2. the method for claim 1 is characterized in that, before the MAC Address of carrying out at least two wireless network cards of said detection, also comprises:
Obtain the MAC Address of said built-in wireless network card, this MAC Address is saved to storer as the MAC Address of said storage.
3. method as claimed in claim 2 is characterized in that, the said MAC Address that obtains built-in wireless network card comprises:
MAC Address through the said built-in wireless network card of Ifconfig command recognition.
4. like each described method in the claim 1 to 3, it is characterized in that compare at the said MAC Address with detected MAC Address and storage of execution, the MAC Address of wireless network card is identical with the MAC Address of storage, judges that then this network interface card is built-in wireless network card; All the other are after the external radio network interface card, also comprise:
Select built-in wireless network card or external radio network interface card as required for use.
5. like each described method in the claim 1 to 3, it is characterized in that said external radio network interface card is the wireless network card of USB interface wireless network card or PCI-E interface.
6. a device that solves built-in wireless network card and the conflict of external radio network interface card is characterized in that, comprising:
Detection module is used to detect the MAC Address of at least two wireless network cards, and said wireless network card comprises external radio network interface card and built-in wireless network card;
Comparison module is used for the MAC Address of detected MAC Address and storage is compared, and the MAC Address of wireless network card is identical with the MAC Address of storage, judges that then this network interface card is built-in wireless network card; All the other are the external radio network interface card.
7. device as claimed in claim 6 is characterized in that, also comprises:
Acquisition module is used to obtain the MAC Address of said built-in wireless network card, and this MAC Address is saved to storer as the MAC Address of said storage.
8. device as claimed in claim 7 is characterized in that, said acquisition module specifically is used for:
MAC Address through the said built-in wireless network card of Ifconfig command recognition.
9. like each described device in the claim 6 to 8, it is characterized in that, also comprise:
Selected module is used for selecting for use as required built-in wireless network card or external radio network interface card.
10. like each described device in the claim 6 to 8, it is characterized in that said external radio network interface card is the wireless network card of USB interface wireless network card or PCI-E interface.
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 true CN102419738A (en) | 2012-04-18 |
CN102419738B 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) |
Cited By (1)
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 (4)
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 |
JP2011014036A (en) * | 2009-07-03 | 2011-01-20 | Silex Technology Inc | Device and program for managing peripheral equipment |
-
2011
- 2011-12-01 CN CN201110393321.9A patent/CN102419738B/en not_active Expired - Fee Related
Patent Citations (4)
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 |
JP2011014036A (en) * | 2009-07-03 | 2011-01-20 | Silex Technology Inc | Device and program for managing peripheral equipment |
Non-Patent Citations (1)
Title |
---|
MSDN3000: "如何区分内外网的网卡?", 《CSDN论坛HTTP://BBS.CSDN.NET/TOPICS/80452807》 * |
Cited By (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102419738B (en) | 2015-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102231852B (en) | Method and device for programming serial number of set-top box | |
US9252890B2 (en) | Near field communication device and method for saving applied power | |
EP2395795A3 (en) | Scanning for a predetermined access point by a portable terminal in unused state | |
WO2006095184A3 (en) | Data processing system | |
CN101998695A (en) | Method, device and system for configuring WiFi setting parameters of terminal equipment | |
EP2241130A4 (en) | Method and user equipment in a communication network | |
RU2010125808A (en) | INFORMATION PROCESSING DEVICE AND METHOD FOR MANAGING THEM | |
CN106325707A (en) | Method and system for realizing screen wakeup and put-out, and equipment | |
CN104375628A (en) | Information processing method and electronic equipment | |
US20110319132A1 (en) | Mobile phone having detachable smart card module | |
CN102253904A (en) | Method and device for identifying computer operating system by utilizing USB equipment | |
CN101778174A (en) | Method, system and external card for achieving function extension of mobile terminal | |
EP2270758A3 (en) | Portable electronic apparatus, processing apparatus for portable electronic apparatus, and data processing method in portable electronic apparatus | |
CN107306458A (en) | The work SIM card collocation method and communication terminal of a kind of communication terminal | |
CN104239211A (en) | Method and device for enabling mobile terminal to rapidly enter test mode | |
CN102214108A (en) | Device and method for mass production of flash memory equipment | |
CN108924325B (en) | Data processing method and related device | |
CN104809005A (en) | Drive installation method and device and computer | |
CN101923521B (en) | Electronic device with function of protecting universal serial bus ports thereof and method | |
CN102419738A (en) | Method and device for avoiding conflict between internal wireless network card and external wireless network card | |
CN201947254U (en) | Circuit capable of quickly realizing Bluetooth and WIFI (wireless fidelity) multiplexing | |
CN102938804B (en) | A kind of method and apparatus of managing liaison information | |
CN102737206A (en) | Method for card reader to support multidevice and card reader | |
US20100180282A1 (en) | Computer system and method for installing driver program in the computer system | |
CN107613354B (en) | Android-based method for enabling smart television to be compatible with various key boards |
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 |