CN106131241A - A kind of method for connecting network, device and mobile terminal - Google Patents

A kind of method for connecting network, device and mobile terminal Download PDF

Info

Publication number
CN106131241A
CN106131241A CN201610670140.9A CN201610670140A CN106131241A CN 106131241 A CN106131241 A CN 106131241A CN 201610670140 A CN201610670140 A CN 201610670140A CN 106131241 A CN106131241 A CN 106131241A
Authority
CN
China
Prior art keywords
mac address
network connection
mobile terminal
network
new mac
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
CN201610670140.9A
Other languages
Chinese (zh)
Other versions
CN106131241B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610670140.9A priority Critical patent/CN106131241B/en
Publication of CN106131241A publication Critical patent/CN106131241A/en
Application granted granted Critical
Publication of CN106131241B publication Critical patent/CN106131241B/en
Expired - Fee Related 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
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • 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)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of method for connecting network, device and mobile terminal, wherein, the method includes: carry out network connection by the current media access control MAC addresses of mobile terminal;When acquiring the response message for indicating described network connection failure, generate new MAC Address;Using described new MAC Address as the MAC Address of described mobile terminal, and carry out network connection based on described new MAC Address.Use the embodiment of the present invention, the network connection failure problem caused because of terminal MAC address conflict can be avoided.

Description

A kind of method for connecting network, device and mobile terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method for connecting network, device and mobile terminal.
Background technology
Along with terminal technology and the development of radio network technique, the function that mobile terminal such as mobile phone can use more is come The most, as surfed the web, calling etc..Mobile phone, when carrying out network and connecting, needs to use the media interviews control in mobile phone System (Media Access Control is called for short MAC) address is connected to router, thus surfs the web.
But, some mobile phone may comprise illegal MAC Address, this result in multiple mobile phone there may be identical MAC Address.Thus, mobile phone is using network, and when being connected to a public router the most in public places, this router can Can connect and have the other-end identical with the MAC Address of this mobile phone, this has resulted in MAC Address conflict, and router can be refused Access the access of this mobile phone, cause network connection failure.
Summary of the invention
The embodiment of the present invention provides method, device and the mobile terminal that a kind of network connects, it is possible to avoid because of terminal MAC ground Location conflict and the network connection failure problem that causes.
First aspect, embodiments provides a kind of method for connecting network, including:
Network connection is carried out by the current media access control MAC addresses of mobile terminal;
When acquiring the response message for indicating described network connection failure, generate new MAC Address;
Using described new MAC Address as the MAC Address of described mobile terminal, and carry out based on described new MAC Address Network connects.
Optionally, described when acquiring the response message for indicating described network connection failure, generate new MAC Address, including:
When acquiring the response message for indicating described network connection failure, obtain the mesh in described response message The value of mark parameter;
The value detecting described target component is the most identical with default value;
If identical with described default value, then generate new MAC Address.
Optionally, described new MAC Address is described mobile terminal stochastic generation, and stochastic generation is described new MAC Address is different from described current MAC address.
Optionally, before the MAC Address that described generation is new, described method also includes:
The link information that the access point AP that receiving described mobile terminal needs to connect sends, described link information includes MAC Address with the terminal that described AP is connected;
The MAC Address that described generation is new, including:
Generate the new MAC Address in addition to the MAC Address that described link information includes.
Optionally, after the described current media access control MAC addresses by mobile terminal carries out network connection, institute Method of stating also includes:
When acquiring the response message for indicating described network connection failure, using described current MAC address as Backup MAC Address stores;
Described carry out network connection based on described new MAC Address, including:
Network connection is carried out based on described new MAC Address;
If the network successful connection carried out based on described new MAC Address, then monitor and carry out based on described new MAC Address Network connect whether disconnect;
The most then using described backup MAC Address as the MAC Address of described mobile terminal.
Second aspect, the embodiment of the present invention additionally provides a kind of network connection device, including:
Network connecting module, for carrying out network connection by the current media access control MAC addresses of mobile terminal;
Address generation module, for when acquiring the response message for indicating described network connection failure, generates New MAC Address;
Described network connecting module, is additionally operable to described new MAC Address as the MAC Address of described mobile terminal, and Network connection is carried out based on described new MAC Address.
Optionally, described address generation module includes:
Parameter acquiring unit, for when acquiring the response message for indicating described network connection failure, obtains The value of the target component in described response message;
Detector unit, for detect the value of the described target component that described parameter acquiring unit obtains whether with default value Identical;
In described detector unit, signal generating unit, for detecting that the value of described target component is identical with described default value Time, generate new MAC Address.
Optionally, described new MAC Address is described mobile terminal stochastic generation, and stochastic generation is described new MAC Address is different from described current MAC address.
Optionally, described device also includes:
Receiver module, the link information that the access point AP connected for receiving described mobile terminal to need sends, described Link information includes the MAC Address of the terminal being connected with described AP;
Described address generation module performs the concrete mode of the new MAC Address of described generation:
Generate the new MAC Address in addition to the MAC Address that described link information includes.
Optionally, described device also includes:
Memory module, for when acquiring the response message for indicating described network connection failure, works as described Front MAC Address stores as backup MAC Address;
Described network connecting module performs the described concrete mode carrying out network connection based on described new MAC Address:
Network connection is carried out based on described new MAC Address;
If the network successful connection carried out based on described new MAC Address, then monitor and carry out based on described new MAC Address Network connect whether disconnect;
The most then using described backup MAC Address as the MAC Address of described mobile terminal.
The third aspect, the embodiment of the invention also discloses a kind of mobile terminal, including: communication interface, memorizer and process Device, described processor is connected with described communication interface and described memorizer respectively;Wherein,
Described memorizer is used for storing application program;
Described processor performs for calling the application program of storage in described memorizer:
Network connection is carried out by described communication interface current media access control MAC addresses based on mobile terminal;
When acquiring the response message for indicating described network connection failure, generate new MAC Address;
Using described new MAC Address as the MAC Address of described mobile terminal, and by described communication interface and based on institute State new MAC Address and carry out network connection.
Optionally, during described processor can call described memorizer, the application program of storage performs the net of above-mentioned first aspect The part or all of step of network method of attachment.
Use the embodiment of the present invention, have the advantages that
In embodiments of the present invention, can generate new when the network connection failure that terminal MAC Address based on storage is carried out MAC Address, and using this new MAC Address as the MAC Address of terminal, carry out network connection with the MAC Address new based on this, The embodiment of the present invention is by the interim MAC Address changing terminal, thus avoids the network caused because of terminal MAC address conflict Connection failure problem, improves the success rate that network connects.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of method for connecting network that one embodiment of the invention provides;
Fig. 2 is the schematic flow sheet of a kind of method for connecting network that another embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of network connection device that one embodiment of the invention provides;
Fig. 4 is the structural representation of a kind of network connection device that another embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of mobile terminal that one embodiment of the invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments It is contained at least one embodiment of the present invention.It is identical that each position in the description occurs that this phrase might not each mean Embodiment, be not and the independent of other embodiments mutual exclusion or alternative embodiment.Those skilled in the art explicitly and Implicitly being understood by, embodiment described herein can combine with other embodiments.
Should be understood that the involved mobile terminal of the embodiment of the present invention may include but be not limited to mobile phone (such as Android hands Machine, iOS mobile phone etc.), panel computer, mobile internet device (Mobile Internet Devices, be called for short " MID "), individual Digital assistants (Personal Digital Assistant is called for short " PDA "), wearable device etc..This mobile terminal also may be used Be referred to as subscriber equipment (User Equipment, referred to as " UE "), terminal, wireless terminal or mobile station (Mobile Station, Referred to as " MS ") etc., the embodiment of the present invention does not limits.
Embodiments provide a kind of method for connecting network, device and mobile terminal, it is possible to avoid because of terminal MAC ground Location conflict and the network connection failure problem that causes, thus improve the success rate that network connects.Describe in detail individually below.
Refer to the schematic flow sheet that Fig. 1, Fig. 1 are a kind of method for connecting network that one embodiment of the invention provides.Specifically , the described method of the embodiment of the present invention can be applied particularly in above-mentioned mobile terminal, as it is shown in figure 1, the embodiment of the present invention Described method for connecting network may comprise steps of:
101, network connection is carried out by the current MAC address of mobile terminal.
Concrete, this current MAC address is the MAC Address of storage in terminal, is MAC based on this storage in prior art Address access network.
102, when acquiring the response message for indicating described network connection failure, new MAC Address is generated.
In specific embodiment, if terminal needs to access a certain access point (Access Point is called for short AP) as covered this end During the common router held, this AP may connect the other-end identical with the MAC Address of this terminal so that cause MAC Address conflict and cause network connection failure.When the network connection failure of MAC Address based on this storage, can generate new MAC Address, the MAC Address temporarily used as terminal, accesses AP with the MAC Address new based on this.Additionally, also can be current by this MAC Address stores as backup MAC Address, in order to follow-up timely recovery.Wherein, the response of this network connection failure disappears Breath can be that AP returns to terminal, or generate when terminal detects network connection failure.
103, using described new MAC Address as the MAC Address of described mobile terminal, and based on described new MAC Address Carry out network connection.
Concrete, if network connection failure based on this new MAC Address, get final product repeated execution of steps 102 to 103, weight Newly-generated new MAC Address, and carry out network connection based on this MAC Address regenerated, until network successful connection.Thus Avoid in public place terminal with other-end MAC Address conflict, and the problem causing surfing the Net.
Further, when network based on new MAC Address connects and disconnects, the MAC Address of terminal can be reverted to The MAC Address (i.e. backing up MAC Address) of former storage, to ensure that terminal is connected with the normal of other AP.
In embodiments of the present invention, can generate new when the network connection failure that terminal MAC Address based on storage is carried out MAC Address, and using this new MAC Address as the MAC Address of terminal, carry out network connection with the MAC Address new based on this, The embodiment of the present invention is by the interim MAC Address changing terminal, thus avoids the network caused because of terminal MAC address conflict Connection failure problem, improves the success rate that network connects.
Further, the flow process that Fig. 2, Fig. 2 are a kind of method for connecting network that another embodiment of the present invention provides is referred to Schematic diagram.Concrete, as in figure 2 it is shown, the described method for connecting network of the embodiment of the present invention may comprise steps of:
201, network connection is carried out by the current MAC address of mobile terminal.
202, when acquiring the response message for indicating described network connection failure, by described current MAC address Store as backup MAC Address, and obtain the value of target component in described response message.
In specific embodiment, terminal first can carry out network connection by MAC Address i.e. current MAC address based on self storage, If network connection failure based on this current MAC address, can obtain in this response message for indicating network connection failure The parameter of reason, with reason based on this parameter determination network connection failure, determines whether to use generation temporary MAC address Mode carry out current network connection.Further, also this current MAC address can be stored as backup MAC Address, So that recovering this backup MAC Address after network disconnects in time.
203, the value detecting described target component is the most identical with default value.
204, new MAC Address is generated.
Concrete, whether terminal can be that default value determines whether to generate temporarily by the value of the parameter that detection obtains MAC Address.Such as, this target component is resoncode parameter, and default value is 6 and/or 7, and terminal detects what bottom reported When the value of connection failure exception resoncode parameter is 6 or 7, i.e. it is believed that MAC Address based on this storage and having built with AP There is conflict in the MAC Address of the vertical terminal connected, thus can determine that generation temporary MAC address is to carry out network connection.
205, using described new MAC Address as the MAC Address of described mobile terminal, and based on described new MAC Address Carry out network connection.
Optionally, described new MAC Address is described mobile terminal stochastic generation, and stochastic generation is described new MAC Address is different from described current MAC address.
Optionally, before the MAC Address that described generation is new, terminal also can receive it needs connecting of the AP accessed transmission Connecing information, described link information includes the MAC Address of the terminal being connected with this AP.The MAC Address that the most described generation is new, permissible Particularly as follows: generate the new MAC Address in addition to the MAC Address that described link information includes.Further alternative, this terminal The connection of the MAC Address that also can receive the terminal that including of setting up with this AP that the terminal that is connected sends, this foundation connected is believed Breath, sets up the MAC Address of the terminal being connected to control the generation of temporary MAC address to acquire with this AP.
Concrete, there is currently MAC Address conflict determining, generate the new MAC Address i.e. temporary MAC address of this terminal Time, this temporary MAC address can be randomly generated, or according to receiving what the MAC Address connecting terminal generated.With When machine generates this temporary MAC address, the MAC Address that can detect this stochastic generation is the most identical with this backup MAC Address, if identical Then regenerating, otherwise MAC Address based on this stochastic generation carries out network connection, to reduce power consumption of terminal, increases network even The success rate connect.
If the 206 network successful connections carried out based on described new MAC Address, then monitor based on described new MAC Address Whether the network connection carried out disconnects.
Concrete, if network connection failure based on this new MAC Address, get final product repeated execution of steps 204 to 205, weight Newly-generated new MAC Address, and carry out network connection based on this MAC Address regenerated.Further, it is assumed that terminal and AP Such as network successful connection based on a certain temporary MAC address generated between router, then can monitor based on this temporary MAC address Network connect and whether disconnect, if disconnecting, during such as terminal switching AP, then can perform step 207, the MAC Address of terminal recovered MAC Address for former storage.
Further, also can pre-set a frequency threshold value, when number of times terminal generation MAC Address being detected exceedes this During frequency threshold value, i.e. show there may be the other reasons causing connection failure, then can not regeneration temporary MAC address, will be eventually End MAC Address directly reverts to the MAC Address of former storage, i.e. backs up MAC Address, to reduce power consumption of terminal.Additionally, it is raw in terminal When the number of times becoming MAC Address exceedes this frequency threshold value, the most exportable notification message informs the message of this connection failure of terminal use, Or upload server is with the problem feeding back this connection failure.
207, using described backup MAC Address as the MAC Address of described mobile terminal.
It is concrete, when this backup MAC Address is accessing terminal to network failure before the operation performing to generate new MAC Address MAC Address, it is the MAC Address of the former storage of terminal.The network disconnecting temporary MAC address based on this generation in terminal connects Afterwards, terminal can recover the MAC Address of former storage, i.e. backs up MAC Address.Thus after address switches, more automatically recover, then Ensure that and the normal connection of other AP such as conventional Wireless Fidelity (WIreless Fidelity is called for short Wi-Fi).
For example, before carrying out network connection, in terminal storage have MAC Address 1 (i.e. current MAC address), terminal based on This MAC Address 1 carries out Wi-Fi connection.If connection failure, and detect that connection failure exception resoncode that bottom reports is 6 Or 7, then can be shown that this MAC Address 1 and surrounding terminal exist conflict, then terminal closes Wi-Fi from bottom, backs up this MAC Address 1, and generate new MAC Address 2.Terminal restarts Wi-Fi, Auto-reconnect, carries out network connection based on this MAC Address 2.If again Connection failure, then regenerate MAC Address 3, and carry out network connection based on this MAC Address 3, it is assumed that now network connects into Merit.Disconnect when network based on this MAC Address 3 connects, during such as terminal switching AP, the former MAC Address of terminal can be recovered, i.e. MAC Address 1.
In embodiments of the present invention, can be when the network connection failure that terminal MAC Address based on storage is carried out, should MAC Address stores as backup MAC Address, and obtains the value of target component in the response message of network connection failure, Determine whether there is MAC Address conflict with the value according to this target component, thus generate when determining and there is MAC Address conflict New MAC Address, carries out network connection based on this new MAC Address, and automatically recovers when network connects and disconnects that terminal is former deposits The MAC Address of storage such that it is able to by the interim MAC Address changing terminal, it is to avoid the net caused because of terminal MAC address conflict Network connection failure problem, be thus effectively improved network connect success rate, and ensure that disconnection network connect after with other AP Normal connection.
Refer to the structural representation that Fig. 3, Fig. 3 are a kind of network connection devices that one embodiment of the invention provides.Specifically , the described device of the embodiment of the present invention may be disposed in above-mentioned mobile terminal.As it is shown on figure 3, the institute of the embodiment of the present invention State network connection device and can include network connecting module 11 and address generation module 12.Wherein,
Described network connecting module 11, for carrying out network by the current media access control MAC addresses of mobile terminal Connect.
Described address generation module 12, for when acquiring the response message for indicating described network connection failure Time, generate new MAC Address.
Concrete, when the network connection failure of MAC Address based on this storage, address generation module 12 can generate newly MAC Address, the MAC Address temporarily used as terminal, access AP with the MAC Address new based on this.Wherein, this network connects Failed response message can be that AP returns to terminal, or generate when terminal detects network connection failure.
Described network connecting module 11, is additionally operable to described new MAC Address as the MAC Address of described mobile terminal, And carry out network connection based on described new MAC Address.
Concrete, if network connection failure based on this new MAC Address, then address generation module 12 can regenerate newly MAC Address, network connecting module 11 carries out network connection based on this MAC Address regenerated, until network successful connection. Thus avoid in public place terminal with other-end MAC Address conflict, and the problem causing surfing the Net.
In embodiments of the present invention, can generate new when the network connection failure that terminal MAC Address based on storage is carried out MAC Address, and using this new MAC Address as the MAC Address of terminal, carry out network connection with the MAC Address new based on this, The embodiment of the present invention is by the interim MAC Address changing terminal, thus avoids the network caused because of terminal MAC address conflict Connection failure problem, improves the success rate that network connects.
Further, the structure that Fig. 4, Fig. 4 are a kind of network connection devices that another embodiment of the present invention provides is referred to Schematic diagram.Concrete, as shown in Figure 4, the described device of the embodiment of the present invention can include in above-mentioned Fig. 3 correspondence embodiment of the present invention The network connecting module 11 of network connection device and address generation module 12.Further, in embodiments of the present invention, institute State address generation module 12 may particularly include:
Parameter acquiring unit 121, for when acquiring the response message for indicating described network connection failure, obtains Take the value of target component in described response message;
Detector unit 122, for detect the value of the described target component that described parameter acquiring unit 121 obtains whether with in advance If numerical value is identical;
Signal generating unit 123, for detecting the value of described target component and described default value in described detector unit 122 Time identical, generate new MAC Address.
In specific embodiment, network connecting module 11 can first be carried out by MAC Address i.e. current MAC address based on self storage Network connects, if network connection failure based on this current MAC address, can obtain this response by address generation module 12 and disappear For indicating the parameter of the reason of network connection failure in breath, with reason based on this parameter determination network connection failure, thus Determine whether to use the mode generating temporary MAC address to carry out current network connection.Concrete, address generation module 12 can lead to Whether the value crossing the parameter that detection obtains is that default value determines whether to generate temporary MAC address.Such as, this target component is Resoncode parameter, default value is 6 and/or 7, and address generation module 12 detects that the connection failure that bottom reports is abnormal When the value of resoncode parameter is 6 or 7, i.e. it is believed that MAC Address based on this storage and set up, with AP, the terminal that has been connected MAC Address there is conflict, thus temporary MAC address can be generated to carry out network connection.
Optionally, described new MAC Address is described mobile terminal stochastic generation, and stochastic generation is described new MAC Address is different from described current MAC address.
Optionally, described device may also include (not shown):
Receiver module, the link information that the access point AP connected for receiving described mobile terminal to need sends, described Link information includes the MAC Address of the terminal being connected with described AP;
Described address generation module 12 performs the concrete mode of the new MAC Address of described generation:
Generate the new MAC Address in addition to the MAC Address that described link information includes.
Further alternative, in embodiments of the present invention, described device may also include that
Memory module 13, for when acquiring the response message for indicating described network connection failure, by described Current MAC address stores as backup MAC Address;
Described network connecting module 11 perform described carry out the concrete mode of network connection based on described new MAC Address can Think:
Network connection is carried out based on described new MAC Address;
If the network successful connection carried out based on described new MAC Address, then monitor and carry out based on described new MAC Address Network connect whether disconnect;
The most then using described backup MAC Address as the MAC Address of described mobile terminal.
Further, when network connecting module 11 network connection failure based on this current MAC address, also can trigger and deposit This current MAC address is stored by storage module 13 as backup MAC Address, thus network connecting module 11 can be raw based on this The network of the temporary MAC address become connects disconnection, during such as terminal switching AP, the MAC Address of terminal is reverted to former MAC Address, Make to ensure that terminal and other AP being normally connected such as conventional Wi-Fi.
In embodiments of the present invention, can be when the network connection failure that terminal MAC Address based on storage is carried out, should MAC Address stores as backup MAC Address, and obtains the value of target component in the response message of network connection failure, Determine whether there is MAC Address conflict with the value according to this target component, thus generate when determining and there is MAC Address conflict New MAC Address, carries out network connection based on this new MAC Address, and automatically recovers when network connects and disconnects that terminal is former deposits The MAC Address of storage such that it is able to by the interim MAC Address changing terminal, it is to avoid the net caused because of terminal MAC address conflict Network connection failure problem, be thus effectively improved network connect success rate, and ensure that disconnection network connect after with other AP Normal connection.
Refer to the structural representation that Fig. 5, Fig. 5 are a kind of mobile terminals that one embodiment of the invention provides, be used for performing Above-mentioned method for connecting network.Concrete, as it is shown in figure 5, the described mobile terminal of the embodiment of the present invention (being called for short " terminal ") can To include: at least one processor 100, at least one communication interface 200, memorizer 300 assembly such as grade.Wherein, these assemblies lead to Cross one or more bus 400 to be communicatively coupled.It will be understood by those skilled in the art that the structure of the terminal shown in Fig. 5 Being not intended that the restriction to the embodiment of the present invention, it both can be busbar network, it is also possible to be hub-and-spoke configuration, it is also possible to include Than illustrating more or less of parts, or combine some parts, or different parts are arranged.Wherein:
Processor 100 is the control centre of terminal, utilizes various interface and the various piece of the whole terminal of connection, logical Cross operation or perform to be stored in the program in memorizer 300 and/or module, and calling the data being stored in memorizer 300, To perform the various functions of terminal and to process data.Processor 100 can be by integrated circuit (Integrated Circuit, letter Claim IC) composition, such as can be made up of the IC of single encapsulation, it is also possible to by connecting many identical functions or the envelope of difference in functionality Fill IC and form.For example, processor 100 can only include central processing unit (Central Processing Unit, letter Claim CPU), it is also possible to it is CPU, digital signal processor (digital signal processor is called for short DSP), graphics process Device (Graphic Processing Unit is called for short GPU) and the combination of various control chip.In embodiments of the present invention, CPU can be single arithmetic core, it is also possible to include multioperation core.
Communication interface 200 can include line interface, wave point etc..
Memorizer 300 can be used for storing software program and module, and processor 100, communication interface 200 are by calling storage Software program in memorizer 300 and module, thus perform the various functions application of terminal and realize data process.Deposit Reservoir 300 mainly includes program storage area and data storage area, wherein, program storage area can store operating system, at least one Application program etc. needed for function;Data storage area can store the data etc. that the use according to terminal is created.Real in the present invention Executing in example, operating system can be android system, iOS system or Windows operating system etc..
Concrete, described processor 100 calls the application program being stored in described memorizer 300, be used for performing below Step:
Network is carried out even by described communication interface 200 current media access control MAC addresses based on mobile terminal Connect;
When acquiring the response message for indicating described network connection failure, generate new MAC Address;
Using described new MAC Address as the MAC Address of described mobile terminal, by described communication interface 200 and based on Described new MAC Address carries out network connection.
Optionally, described processor 100 calls described in the application program execution being stored in described memorizer 300 when obtaining When obtaining the response message for indicating described network connection failure, generate new MAC Address, specifically perform following steps:
When acquiring the response message for indicating described network connection failure, obtain the mesh in described response message The value of mark parameter;
The value detecting described target component is the most identical with default value;
If identical with described default value, then generate new MAC Address.
Optionally, described new MAC Address can be described mobile terminal stochastic generation, and stochastic generation described newly MAC Address different from described current MAC address.
Optionally, call, at described processor 100, the application program being stored in described memorizer 300 and perform described generation Before new MAC Address, also perform following steps:
By described communication interface 200 receive the network equipment send link information, described link information include with The MAC Address of the terminal that the described network equipment connects;
Described processor 100 calls the application program being stored in described memorizer 300 and performs the MAC ground that described generation is new Location, specifically performs following steps:
Generate the new MAC Address in addition to the MAC Address that described link information includes.
Optionally, described processor 100 call the application program that is stored in described memorizer 300 perform described in pass through After the current media access control MAC addresses of mobile terminal carries out network connection, also perform following steps:
When acquiring the response message for indicating described network connection failure, using described current MAC address as Backup MAC Address stores;
Described processor 100 calls the application program that is stored in described memorizer 300 and performs described based on described new MAC Address carries out network connection, specifically performs following steps:
Network connection is carried out by described communication interface 200 and based on described new MAC Address;
If the network successful connection carried out based on described new MAC Address, then monitor and carry out based on described new MAC Address Network connect whether disconnect;
The most then using described backup MAC Address as the MAC Address of described mobile terminal.
In embodiments of the present invention, can generate new when the network connection failure that terminal MAC Address based on storage is carried out MAC Address, and using this new MAC Address as the MAC Address of terminal, carry out network connection with the MAC Address new based on this, The embodiment of the present invention is by the interim MAC Address changing terminal, thus avoids the network caused because of terminal MAC address conflict Connection failure problem, improves the success rate that network connects.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiments.
In several embodiments provided by the present invention, it should be understood that disclosed apparatus and method, can be passed through it Its mode realizes.Such as, device embodiment described above is only schematically, such as, and the division of described module, only Being only a kind of logic function to divide, actual can have other dividing mode, the most multiple modules or assembly to tie when realizing Close or be desirably integrated into another system, or some features can be ignored, or not performing.Another point, shown or discussed Coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or module or logical Letter connects, and can be electrical, machinery or other form.
Described this as the module that separating component illustrates can be or may not be physically separate, as module The parts of display can be or may not be physical module, i.e. may be located at a place, or can also be distributed to many On individual mixed-media network modules mixed-media.Some or all of module therein can be selected according to the actual needs to realize the present embodiment scheme Purpose.
It addition, each functional module in each embodiment of the present invention can be integrated in a processing module, it is also possible to It is that modules is individually physically present, it is also possible to two or more modules are integrated in a module.Above-mentioned integrated mould Block both can realize to use the form of hardware, it would however also be possible to employ hardware adds the form of software function module and realizes.
The above-mentioned integrated module realized with the form of software function module, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform the present invention each The part steps of method described in embodiment.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various The medium of program code can be stored.
Those skilled in the art are it can be understood that arrive, for convenience and simplicity of description, only with above-mentioned each functional module Division be illustrated, in actual application, can be as desired by complete by different functional modules for above-mentioned functions distribution Become, the internal structure of device will be divided into different functional modules, to complete all or part of function described above.On State the specific works process of the device of description, be referred to the corresponding process in preceding method embodiment, do not repeat them here.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, it is not intended to limit;To the greatest extent The present invention has been described in detail by pipe with reference to foregoing embodiments, it will be understood by those within the art that: it depends on So the technical scheme described in foregoing embodiments can be modified, or the most some or all of technical characteristic is entered Row equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology The scope of scheme.

Claims (11)

1. a method for connecting network, it is characterised in that including:
Network connection is carried out by the current media access control MAC addresses of mobile terminal;
When acquiring the response message for indicating described network connection failure, generate new MAC Address;
Using described new MAC Address as the MAC Address of described mobile terminal, and carry out network based on described new MAC Address Connect.
Method the most according to claim 1, it is characterised in that described when acquiring for indicating described network to connect mistake During the response message lost, generate new MAC Address, including:
When acquiring the response message for indicating described network connection failure, obtain the target ginseng in described response message The value of number;
The value detecting described target component is the most identical with default value;
If identical with described default value, then generate new MAC Address.
Method the most according to claim 1 and 2, it is characterised in that described new MAC Address is that described mobile terminal is random Generate, and the described new MAC Address of stochastic generation is different from described current MAC address.
Method the most according to claim 1 and 2, it is characterised in that before the MAC Address that described generation is new, described side Method also includes:
The link information that the access point AP that receiving described mobile terminal needs to connect sends, described link information includes and institute State the MAC Address of the terminal that AP connects;
The MAC Address that described generation is new, including:
Generate the new MAC Address in addition to the MAC Address that described link information includes.
Method the most according to claim 1, it is characterised in that access control by the current media of mobile terminal described After MAC Address carries out network connection, described method also includes:
When acquiring the response message for indicating described network connection failure, using described current MAC address as backup MAC Address stores;
Described carry out network connection based on described new MAC Address, including:
Network connection is carried out based on described new MAC Address;
If the network successful connection carried out based on described new MAC Address, then monitor the net carried out based on described new MAC Address Whether network connection disconnects;
The most then using described backup MAC Address as the MAC Address of described mobile terminal.
6. a network connection device, it is characterised in that including:
Network connecting module, for carrying out network connection by the current media access control MAC addresses of mobile terminal;
Address generation module, for when acquiring the response message for indicating described network connection failure, generates new MAC Address;
Described network connecting module, is additionally operable to described new MAC Address as the MAC Address of described mobile terminal, and based on Described new MAC Address carries out network connection.
Device the most according to claim 6, it is characterised in that described address generation module includes:
Parameter acquiring unit, for when acquiring the response message for indicating described network connection failure, obtains described The value of the target component in response message;
Detector unit, for detect the value of the described target component that described parameter acquiring unit obtains whether with default value phase With;
Signal generating unit, for when the value that described detector unit detects described target component is identical with described default value, raw The MAC Address of Cheng Xin.
8. according to the device described in claim 6 or 7, it is characterised in that described new MAC Address is that described mobile terminal is random Generate, and the described new MAC Address of stochastic generation is different from described current MAC address.
9. according to the device described in claim 6 or 7, it is characterised in that described device also includes:
Receiver module, the link information that the access point AP connected for receiving described mobile terminal to need sends, described connect The information of connecing includes the MAC Address of the terminal being connected with described AP;
Described address generation module performs the concrete mode of the new MAC Address of described generation:
Generate the new MAC Address in addition to the MAC Address that described link information includes.
Device the most according to claim 6, it is characterised in that described device also includes:
Memory module, for when acquiring the response message for indicating described network connection failure, by described current MAC Address stores as backup MAC Address;
Described network connecting module performs the described concrete mode carrying out network connection based on described new MAC Address:
Network connection is carried out based on described new MAC Address;
If the network successful connection carried out based on described new MAC Address, then monitor the net carried out based on described new MAC Address Whether network connection disconnects;
The most then using described backup MAC Address as the MAC Address of described mobile terminal.
11. 1 kinds of mobile terminals, it is characterised in that including: communication interface, memorizer and processor, described processor respectively with Described communication interface and described memorizer connect;Wherein,
Described memorizer is used for storing application program;
Described processor performs for calling the application program of storage in described memorizer:
Network connection is carried out by described communication interface current media access control MAC addresses based on mobile terminal;
When acquiring the response message for indicating described network connection failure, generate new MAC Address;
Using described new MAC Address as the MAC Address of described mobile terminal, and by described communication interface and based on described newly MAC Address carry out network connection.
CN201610670140.9A 2016-08-15 2016-08-15 A kind of method for connecting network, device and mobile terminal Expired - Fee Related CN106131241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610670140.9A CN106131241B (en) 2016-08-15 2016-08-15 A kind of method for connecting network, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610670140.9A CN106131241B (en) 2016-08-15 2016-08-15 A kind of method for connecting network, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106131241A true CN106131241A (en) 2016-11-16
CN106131241B CN106131241B (en) 2019-04-26

Family

ID=57259246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610670140.9A Expired - Fee Related CN106131241B (en) 2016-08-15 2016-08-15 A kind of method for connecting network, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106131241B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603740A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 Network connection abnormality processing method and terminal equipment
CN109067934A (en) * 2018-08-10 2018-12-21 新华三技术有限公司 A kind of address conflict processing method and processing device
CN112118576A (en) * 2020-09-22 2020-12-22 上海连尚网络科技有限公司 Method and apparatus for networking over wireless hotspots
CN112333792A (en) * 2020-11-27 2021-02-05 紫光展锐(重庆)科技有限公司 Method and device for processing network access failure
CN113726921A (en) * 2021-08-31 2021-11-30 安徽华夏光电股份有限公司 Method for automatically updating MAC address

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701943A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Method and device for controlling MAC (Media Access Control) address
CN105049422A (en) * 2015-06-25 2015-11-11 上海迪爱斯通信设备有限公司 WIFI detection and identification equipment and system and WIFI detection and identification method
CN105516380A (en) * 2014-09-26 2016-04-20 华为技术有限公司 Wireless radio frequency network, networking method thereof, and networking device
CN105656736A (en) * 2016-01-05 2016-06-08 杭州古北电子科技有限公司 Software-defined wide area network system with low power consumption and configuration method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701943A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Method and device for controlling MAC (Media Access Control) address
CN105516380A (en) * 2014-09-26 2016-04-20 华为技术有限公司 Wireless radio frequency network, networking method thereof, and networking device
CN105049422A (en) * 2015-06-25 2015-11-11 上海迪爱斯通信设备有限公司 WIFI detection and identification equipment and system and WIFI detection and identification method
CN105656736A (en) * 2016-01-05 2016-06-08 杭州古北电子科技有限公司 Software-defined wide area network system with low power consumption and configuration method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603740A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 Network connection abnormality processing method and terminal equipment
CN109067934A (en) * 2018-08-10 2018-12-21 新华三技术有限公司 A kind of address conflict processing method and processing device
CN112118576A (en) * 2020-09-22 2020-12-22 上海连尚网络科技有限公司 Method and apparatus for networking over wireless hotspots
CN112118576B (en) * 2020-09-22 2023-02-14 上海连尚网络科技有限公司 Method and apparatus for networking over wireless hotspots
CN112333792A (en) * 2020-11-27 2021-02-05 紫光展锐(重庆)科技有限公司 Method and device for processing network access failure
CN112333792B (en) * 2020-11-27 2023-02-10 紫光展锐(重庆)科技有限公司 Method and device for processing network access failure
CN113726921A (en) * 2021-08-31 2021-11-30 安徽华夏光电股份有限公司 Method for automatically updating MAC address

Also Published As

Publication number Publication date
CN106131241B (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN106131241A (en) A kind of method for connecting network, device and mobile terminal
CN102238601B (en) Method for monitoring and reporting MTC events
CN105187249A (en) Fault recovery method and device
CN107078925B (en) Heartbeat period setting method and terminal
CN104579746A (en) Method and device for controlling dual-link transmission
CN103838648A (en) Terminal and data backup method
CN103902437A (en) Detecting method and server
CN104581652A (en) Message processing method as well as method and device for selecting MME (mobility management entity)
CN109947585A (en) The processing method and processing device of PCIE device failure
CN104821995A (en) Data transmission management method and device thereof
CN103731894A (en) Network switching method and device
CN103229536B (en) Dual-network backup method and device and wireless communication system
CN106575169A (en) Method of eliminating interference on touch screen from charger, and mobile terminal
CN102123511B (en) Mobile network data transmission method and system as well as mobile terminal
CN103347031B (en) A kind of method and apparatus taking precautions against ARP message aggression
CN103064759B (en) The method of data restore and device
CN103167539A (en) Fault handling method, device and system
CN102970172A (en) Communication link switching method, device and communication system
CN102123452B (en) Resource management method and equipment
CN103051484B (en) Session service processing method, system and Session Border Controll
CN101166334B (en) Method for remote RF unit to record information in radio communication system
CN103176941A (en) Inter-core communication method and agent device
CN111010706A (en) Exception recovery method and device
CN103747529A (en) Cell activation method and cell activation device
CN100395706C (en) Automatic start method of switchboard plate

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Granted publication date: 20190426