CN105933465A - Method and device for accessing wireless network - Google Patents
Method and device for accessing wireless network Download PDFInfo
- Publication number
- CN105933465A CN105933465A CN201610249087.5A CN201610249087A CN105933465A CN 105933465 A CN105933465 A CN 105933465A CN 201610249087 A CN201610249087 A CN 201610249087A CN 105933465 A CN105933465 A CN 105933465A
- Authority
- CN
- China
- Prior art keywords
- address
- lan
- wap
- mobile device
- message
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5092—Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to a method and a device for accessing a wireless network. The method comprises: when a wireless access point refuses to allocate an IP address to a mobile device, generating an IP address according to a network ID of a local area network set up by the wireless access point; determining whether the IP address is occupied; and if the IP address is not occupied, controlling the mobile device to access the wireless network through the IP address. The method can avoid the problem that the mobile device cannot access the network when a DHCP server in the wireless access point fails to allocate an IP address to the mobile device, and the problem that a part of the IP addresses in the wireless access point are wasted as the DHCP server cannot conduct allocation.
Description
Technical field
It relates to networking technology area, particularly relate to a kind of method and device accessing wireless network.
Background technology
Along with popularizing of wireless network, Wireless Fidelity (Wireless Fidelity, WIFI) becomes increasingly
Important, a lot of public places have the most gradually opened free WIFI hot spot.Accessed by WAP
Network is the important way that mobile device accesses wireless network, and mobile device obtains IP ground from WAP
Location, and then use this IP address to access network.When DHCP in WAP
(Dynamic Host Configuration Protocol, DHCP) server can not distribute to mobile device
During IP address, mobile device can not access network, directly affects user and uses the experience of wireless network.
Summary of the invention
For overcoming problem present in correlation technique, disclosure embodiment provides a kind of wireless network that accesses
Method and device, can not distribute IP to mobile device in order to solve Dynamic Host Configuration Protocol server in WAP
During address, the problem that mobile device will can not access network.
First aspect according to disclosure embodiment, it is provided that a kind of method accessing wireless network, applies
In mobile device, including:
When WAP is refused to mobile device one IP address of distribution, according to described WAP
The network identity of the LAN set up generates an IP address;
Determine that described IP address is the most occupied;
If described IP address is unoccupied, then controls described mobile device and accessed by described IP address
Wireless network.
In one embodiment, described method may also include that
Control the DHCP service in described WAP of the DHCP client in described mobile device
Device sends the request message for obtaining described IP address;
Receive the response message that described Dynamic Host Configuration Protocol server returns according to described request message;
When described response message represents that refusal distributes described IP address, determine that described WAP is refused
An IP address is distributed to described mobile device.
In one embodiment, described method may also include that
LAN port address and the subnet mask of described WAP is parsed from described response message;
Described LAN port address and described subnet mask carried out and calculates, obtaining the net of described LAN
Network identifies.
In one embodiment, the network identity generation of the described LAN set up according to described WAP
One IP address, it may include:
According to the network identity of the LAN that described WAP is set up, can in determining described LAN
The IP address used;
One IP address of stochastic generation in the IP address that can use in described LAN.
In one embodiment, described determine that described IP address is the most occupied, it may include:
Control the DHCP service in described WAP of the DHCP client in described mobile device
Device sends and confirms message, wherein, carries described IP address in described confirmation message;
When receiving described Dynamic Host Configuration Protocol server and using message according to the confirmation that described confirmation message returns,
Send ARP broadcast, the most occupied in order to determine described IP address;
Without ARP broadcast described in equipment response, it is determined that described IP address is unoccupied,
If there being ARP broadcast described in equipment response, it is determined that described IP address is occupied, control described
Mobile device performs the network identity generation one of the described LAN set up according to described WAP
The step of IP address;
When receiving described Dynamic Host Configuration Protocol server and using message according to the refusal that described confirmation message returns,
Determine that described IP address is occupied, control described mobile device and perform described to build according to described WAP
The network identity of vertical LAN generates the step of an IP address.
Second aspect according to disclosure embodiment, it is provided that a kind of device accessing wireless network, applies
In mobile device, described device comprises the steps that
Generation module, be configured as WAP refuse distribution to mobile device one IP address time,
One IP address of network identity generation according to the LAN that described WAP is set up;
Address takies and determines module, is configured to determine that described IP address that described generation module generates whether
Occupied;
AM access module, takies determine that module determines that described IP address is the most occupied if being configured to described address
With, then control described mobile device and access wireless network by described IP address.
In one embodiment, described device may also include that
Sending module, the DHCP client being configured to control in described mobile device wireless connects to described
Dynamic Host Configuration Protocol server in access point sends the request message for obtaining described IP address;
Receiver module, is configured to receive the institute that described Dynamic Host Configuration Protocol server sends according to described sending module
State the response message that request message returns;
Distribution determines module, is configured as the described response message that described receiver module receives and represents and refuse
When distributing described IP address absolutely, determine described WAP to refuse to described mobile device and distribute an IP
Address.
In one embodiment, described device may also include that
Parsing module, is configured to parse the LAN of described WAP from described response message
Port address and subnet mask;
Computing module, is configured to the described LAN port address that parsed by described parsing module and described
Subnet mask carries out and calculates, and obtains the network identity of described LAN.
In one embodiment, described generation module comprises the steps that
Address determines submodule, is configured to the network mark of the LAN set up according to described WAP
Know, the IP address that can use in determining described LAN;
Generating submodule, being configured to can in described address determines the described LAN that submodule determines
One IP address of stochastic generation in the IP address used.
In one embodiment, described address takies and determines that module comprises the steps that
First sends submodule, and the DHCP client being configured to control in described mobile device is to described
Dynamic Host Configuration Protocol server in WAP sends and confirms message, wherein, carries in described confirmation message
Described IP address;
Second sends submodule, is configured as receiving described Dynamic Host Configuration Protocol server according to described first
When the confirmation that the described confirmation message sending submodule to send returns uses message, send ARP broadcast,
The most occupied in order to determine described IP address;
First determines submodule, is configured to send submodule without described in equipment response second and sends
Described ARP broadcast, it is determined that described IP address is unoccupied, if had described in equipment response
Second sends the described ARP broadcast that submodule sends, it is determined that described IP address is occupied, institute
State generation module to control described mobile device and perform the described LAN set up according to described WAP
Network identity generates the step of an IP address;
Second determines submodule, is configured as receiving described Dynamic Host Configuration Protocol server according to described first
When the refusal that the described confirmation message sending submodule to send returns uses message, determine that described IP address is occupied
With, control described mobile device and perform the network mark of the described LAN set up according to described WAP
Know the step generating an IP address.
The third aspect according to disclosure embodiment, it is provided that a kind of device accessing wireless network, applies
In mobile device, described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When WAP is refused to mobile device one IP address of distribution, according to described WAP
The network identity of the LAN set up generates an IP address;
Determine that described IP address is the most occupied;
If described IP address is unoccupied, then controls described mobile device and accessed by described IP address
Wireless network.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: if wireless access
Point refusal distributes an IP address, the then office that mobile device can be set up according to WAP to mobile device
The network identity of territory net automatically generates an IP address, and whether further determines that generated IP address
Occupied, if unoccupied, then can access wireless network by this IP address, thus nothing can be avoided
When in line access point, Dynamic Host Configuration Protocol server can not distribute IP address to mobile device, mobile device can not
The problem accessing network, it is to avoid in WAP, part IP address can not be divided due to Dynamic Host Configuration Protocol server
The problem of the IP address waste joined and cause, and then optimize user and use the experience of wireless network.
Further, by resolving the acquisition described IP ground that Dynamic Host Configuration Protocol server sends according to DHCP client
The response message that the request message of location returns, can obtain LAN port address and the son of WAP
Net mask, carries out LAN port address and subnet mask and calculates, all legal in obtaining LAN
IP address, mobile device can in the IP address that this is legal one IP address of stochastic generation, it is achieved that nothing
When in line access point, Dynamic Host Configuration Protocol server can not distribute IP address to mobile device, mobile device can be automatic
Generate legal IP address, and then access wireless network, improve mobile device and access the effect of wireless network
Rate.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe
, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet this
Bright embodiment, and for explaining the principle of the present invention together with description.
Figure 1A is the flow chart according to the method accessing wireless network shown in an exemplary embodiment.
Figure 1B is the scene graph according to the method accessing wireless network shown in an exemplary embodiment.
Fig. 2 is the flow chart according to the method accessing wireless network shown in an exemplary embodiment one.
Fig. 3 be the IP address that generated according to the determination mobile device shown in an exemplary embodiment two whether
The flow chart of occupied method.
Fig. 4 is the block diagram according to a kind of device accessing wireless network shown in an exemplary embodiment.
Fig. 5 is the block diagram according to the another kind of device accessing wireless network shown in an exemplary embodiment.
Fig. 6 is according to a kind of frame being applicable to access the device of wireless network shown in an exemplary embodiment
Figure.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following
When description relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous
Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the present invention
There is embodiment.On the contrary, they only with as appended claims describes in detail, the one of the present invention
The example of the apparatus and method that a little aspects are consistent.
Figure 1A is the flow chart according to the method accessing wireless network shown in an exemplary embodiment, figure
1B is the scene graph according to the method accessing wireless network shown in an exemplary embodiment;This access is wireless
The method of network can be applied in mobile device (such as: smart mobile phone, panel computer), such as Figure 1A
Shown in, the method for this access wireless network comprises the following steps:
In a step 101, when WAP is refused to mobile device one IP address of distribution, according to
The network identity of the LAN that WAP is set up generates an IP address.
In one embodiment, the network segment that network identity is LAN of the LAN that WAP is set up,
Can be by by the address of LAN (Local Area Network, the LAN) mouth of WAP and local
The subnet mask of net is carried out and the network identity being calculated LAN, and the network identity according to LAN can
Determine the legitimate ip address in LAN.Such as, the LAN port address of WAP is 192.168.1.1,
Subnet mask is 255.255.255.0, calculates the available with value of 192.168.1.1 and 255.255.255.0
192.168.1.0, remove LAN port address 192.168.1.0 and broadcast address 192.168.1.255 of LAN,
I.e. can obtain all legitimate ip address in this LAN, i.e. 192.168.1.2-192.168.1.254.
In a step 102, determine that IP address is the most occupied, if IP address does not has occupied, then
Perform step 103.
In one embodiment, first IP address can be confirmed whether by the Dynamic Host Configuration Protocol server in WAP
Occupied, then confirm that IP address is the most occupied by ARP broadcast.
In step 103, control mobile device and access wireless network by IP address.
In an exemplary scenario, as shown in Figure 1B, mobile device 110 receives what user triggered
When accessing the operation of wireless network, dhcp client and the WAP 120 of running background can be controlled
In Dynamic Host Configuration Protocol server carry out message interaction, when Dynamic Host Configuration Protocol server returns to refusal distribution IP address
During response message, mobile device 110 can be according to the relevant information of the LAN parsed from response message
Calculate the network identity of the LAN that WAP 120 is set up, and then generate an IP address,
Further generated IP address is the most occupied, without occupied, and mobile device 110
Wireless network can be accessed by this IP address.It will be appreciated by persons skilled in the art that and connect wireless
In the LAN that access point is set up, mobile device 110 can have multiple, in addition to the mobile equipment, it is also possible to
There is other equipment, access this LAN such as computer etc..
In the present embodiment, if WAP is refused to distribute an IP address to mobile device, then move
Equipment can automatically generate an IP address according to the network identity of the LAN that WAP is set up, and goes forward side by side
One step determines that generated IP address is the most occupied, if unoccupied, then could be by this IP address
Access wireless network, thus Dynamic Host Configuration Protocol server in WAP can be avoided can not to divide to mobile device
When joining IP address, mobile device will can not access the problem of network, optimizes part IP in WAP
The problem of the IP address waste that address causes owing to Dynamic Host Configuration Protocol server can not distribute, and then optimize use
Family uses the experience of wireless network.
In one embodiment, method may also include that
Control the Dynamic Host Configuration Protocol server in WAP of the DHCP client in mobile device and send use
In the request message obtaining IP address;
Receive the response message that Dynamic Host Configuration Protocol server returns according to request message;
When response message represents refusal distribution IP address, determine WAP to refuse to mobile device and divide
Join an IP address.
In one embodiment, method may also include that
LAN port address and the subnet mask of WAP is parsed from response message;
LAN port address and subnet mask carried out and calculates, obtaining the network identity of LAN.
In one embodiment, the network identity of the LAN set up according to WAP generates an IP ground
Location, it may include:
According to the network identity of the LAN that WAP is set up, the IP that can use in determining LAN
Address;
One IP address of stochastic generation in the IP address that can use in LAN.
In one embodiment, determine that IP address is the most occupied, it may include:
Control the Dynamic Host Configuration Protocol server in WAP of the DHCP client in mobile device to send really
Recognize message, wherein, confirm message carries IP address;
When receiving Dynamic Host Configuration Protocol server and using message according to the confirmation confirming message return, send ARP
Broadcast, the most occupied in order to determine IP address;
Without equipment response ARP broadcast, it is determined that IP address is unoccupied, if set
Standby response ARP broadcast, it is determined that IP address is occupied, controls mobile device and performs according to wireless
The network identity of the LAN that access point is set up generates the step of an IP address;
When receiving Dynamic Host Configuration Protocol server and using message according to the refusal confirming message return, determine IP
Address is occupied, controls mobile device and performs the network identity life of the LAN set up according to WAP
Become the step of an IP address.
Specifically how to access wireless network, refer to subsequent embodiment.
With specific embodiment, the technical scheme that disclosure embodiment provides is described below.
Fig. 2 is the flow chart according to the method accessing wireless network shown in an exemplary embodiment one;This
Embodiment utilizes the said method that disclosure embodiment provides, and how to get legal IP with mobile device
Address is the most illustrative, as in figure 2 it is shown, comprise the steps: as a example by accessing wireless network
In step 201, the DHCP in WAP of the DHCP client in mobile device is controlled
Server sends the request message for obtaining IP address.
In step 202., the response message that Dynamic Host Configuration Protocol server returns is received according to request message.
In step 203, when response message represents refusal distribution IP address, determine that WAP is refused
An IP address is distributed absolutely to mobile device.
In one embodiment, if the IP address in the IP address pool of WAP is the most occupied
With, then refusal is distributed IP address by Dynamic Host Configuration Protocol server.Such as, if what WAP was set up
The network identity of LAN is 192.168.1.0, then remove the LAN port address 192.168.1.0 of LAN
With broadcast address 192.168.1.255, all legitimate ip address in this LAN can be obtained, i.e.
192.168.1.2-192.168.1.254.But general ip address pool may have 99, such as IP address
IP address in pond is 192.168.1.100-192.168.1.199, if IP address
192.168.1.100-192.168.1.199 the most occupied, then refusal is distributed IP by Dynamic Host Configuration Protocol server
Address.
In step 204, from response message, parse LAN port address and the son of WAP
Net mask.
Such as, mobile device can control DHCP client and carry out message interaction to obtain with Dynamic Host Configuration Protocol server
Taking IP address, the DHCP DISCOVER sent according to DHCP client at Dynamic Host Configuration Protocol server disappears
In the DHCP OFFER message of breath response, LAN port address and the subnet of portability WAP are covered
Code, therefore can parse LAN port address and the son of WAP from DHCP OFFER message
Net mask.
In step 205, LAN port address and subnet mask carried out and calculates, obtaining LAN
Network identity.
Such as, the LAN port address of WAP is 192.168.1.1, and corresponding binary system is
11000110.10101000.00000001.00000001, subnet mask is 255.255.255.0, corresponding
Binary system is 11111111.11111111.11111111.00000000, calculates
11000110.10101000.00000001.00000001 and 11111111.11111111.
11111111.00000000 11000110.10101000.00000001.00000000 available with value,
I.e. network identity is 192.168.1.0.
In step 206, according to the network identity of the LAN that WAP is set up, LAN is determined
The interior IP address that can use.
Such as, if the network identity of LAN is 192.168.1.0, then the LAN mouth of LAN is removed
Address 192.168.1.0 and broadcast address 192.168.1.255, i.e. can obtain in this LAN is all legal
IP address, i.e. 192.168.1.2-192.168.1.254.
In step 207, one IP address of stochastic generation in the IP address that can use in LAN.
In one embodiment, the IP address that can be able to use in LAN randomly chooses an IP ground
Location.Such as, if the network identity of LAN is 192.168.1.0, then address can be randomly choosed
192.168.1.22 as the IP address generated.
In a step 208, determine that IP address is the most occupied, if IP address is unoccupied, then hold
Row step 209, if this IP address is occupied, then performs step 207.
In one embodiment, it is the legal IP that mobile device can use in LAN due to this IP address
The address randomly choosed in address, it is therefore desirable to further determine that this IP address is the most occupied.
In one embodiment, determine that the most occupied detailed description in IP address can be found in the embodiment of Fig. 3,
I will not elaborate.
In step 209, control mobile device and access wireless network by IP address.
The present embodiment, on the basis of the beneficial effect of above-described embodiment, also has the advantages that logical
Cross and resolve the acquisition IP address that Dynamic Host Configuration Protocol server sends according to the DHCP client in mobile device
The response message that request message returns, LAN port address and the subnet that can obtain WAP are covered
Code, carries out LAN port address and subnet mask and calculates, all legal IP ground in obtaining LAN
Location, mobile device can in the IP address that this is legal one IP address of stochastic generation, it is achieved that wireless connect
When in access point, Dynamic Host Configuration Protocol server can not distribute IP address to mobile device, mobile device can automatically generate
Legal IP address, and then access wireless network, improve mobile device and access the efficiency of wireless network.
Fig. 3 be the IP address that generated according to the determination mobile device shown in an exemplary embodiment two whether
The flow chart of occupied method;The present embodiment utilizes the said method that disclosure embodiment provides, with such as
What determines that generated IP address is illustrative, as it is shown on figure 3, include as a example by the most occupied
Following steps:
In step 301, the DHCP in WAP of the DHCP client in mobile device is controlled
Server sends and confirms message, performs step 302 and step 305.
In one embodiment, confirm message carries the most occupied IP address to be determined.
In step 302, when receiving Dynamic Host Configuration Protocol server according to confirming that the confirmation use that message returns disappears
During breath, send ARP broadcast, the most occupied in order to determine IP address.
In step 303, without equipment response ARP broadcast, it is determined that IP address not by
Take.
In one embodiment, if IP address is unoccupied, then can access wireless network by this IP address
Network.
In step 304, if there being equipment response ARP broadcast, it is determined that IP address is occupied.
In one embodiment, if IP address is occupied, then can a newly-generated IP address, and for
Newly-generated IP address performs the technical scheme of the present embodiment.
In step 305, when receiving Dynamic Host Configuration Protocol server according to confirming that the refusal use that message returns disappears
During breath, determine that IP address is occupied.
In the present embodiment, the most occupied by determining generated IP address in LAN, generating
IP address access wireless network by IP address when not having occupied, and when IP address is occupied,
Can a newly-generated IP address, and perform to determine whether occupied operation to newly-generated IP address,
Thus can improve mobile device and access the success rate of wireless network.
Fig. 4 is the block diagram according to a kind of device accessing wireless network shown in an exemplary embodiment, as
Shown in Fig. 4, the device accessing wireless network includes:
Generation module 410, is configured as WAP and refuses to distribute an IP address to mobile device
Time, according to one IP address of network identity generation of the LAN that WAP is set up;
Address takies and determines module 420, is configured to determine that IP address that generation module 410 generates whether
Occupied;
AM access module 430, takies determine that module 420 determines that IP address is the most occupied if being configured to address
With, then control mobile device and access wireless network by IP address.
Fig. 5 is the block diagram according to the another kind of device accessing wireless network shown in an exemplary embodiment,
As it is shown in figure 5, on the basis of above-mentioned embodiment illustrated in fig. 4, in one embodiment, device also can wrap
Include:
Sending module 440, the DHCP client being configured to control in mobile device is to WAP
In Dynamic Host Configuration Protocol server send for obtaining the request message of IP address;
Receiver module 450, is configured to receive Dynamic Host Configuration Protocol server according to asking that sending module 440 sends
Seek the response message that message returns;
Distribution determines module 460, is configured as the response message that receiver module 450 receives and represents and refuse
Absolutely during distribution IP address, determine WAP to refuse to mobile device and distribute an IP address.
In one embodiment, device may also include that
Parsing module 470, is configured to parse the LAN port address of WAP from response message
And subnet mask;
Computing module 480, the LAN port address and the subnet that are configured to parse parsing module 470 are covered
Code carries out and calculates, and obtains the network identity of LAN.
In one embodiment, generation module 410 comprises the steps that
Address determines submodule 411, is configured to the network mark of the LAN set up according to WAP
Know, the IP address that can use in determining LAN;
Generating submodule 412, being configured to can in address determines the LAN that submodule 411 determines
One IP address of stochastic generation in the IP address used.
In one embodiment, address takies and determines that module 420 comprises the steps that
First sends submodule 421, and the DHCP client being configured to control in mobile device is to wireless
Dynamic Host Configuration Protocol server in access point sends and confirms message, wherein, confirms to carry IP address in message;
Second sends submodule 422, is configured as receiving Dynamic Host Configuration Protocol server and sends son according to first
When the confirmation that the confirmation message that module 421 sends returns uses message, send ARP broadcast, in order to
Determine that IP address is the most occupied;
First determines submodule 423, is configured to send submodule 422 without equipment response second
The ARP broadcast sent, it is determined that IP address is unoccupied, if there being equipment response second to send
The ARP broadcast that submodule 422 sends, it is determined that IP address is occupied, and generation module 410 is controlled
Mobile device processed performs one IP address of network identity generation of the LAN set up according to WAP
Step;
Second determines submodule 424, is configured as receiving Dynamic Host Configuration Protocol server and sends son according to first
When the refusal that the confirmation message that module 421 sends returns uses message, determine that IP address is occupied, control
Generation module 410 performs one IP address of network identity generation of the LAN set up according to WAP
Step.
About the device in above-described embodiment, the concrete mode that wherein modules performs to operate is having
Close in the embodiment of the method and be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is according to a kind of frame being applicable to access the device of wireless network shown in an exemplary embodiment
Figure.Such as, device 600 can be mobile device, such as smart mobile phone, panel computer etc..
With reference to Fig. 6, device 600 can include following one or more assembly: processes assembly 602, storage
Device 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, input/output (I/O)
Interface 612, sensor cluster 614, and communications component 616.
Process assembly 602 and generally control the integrated operation of device 600, such as with display, call,
The operation that data communication, camera operation and record operation are associated.Treatment element 602 can include one
Or multiple processor 620 performs instruction, to complete all or part of step of above-mentioned method.Additionally,
Process assembly 602 and can include one or more module, it is simple to process between assembly 602 and other assemblies
Mutual.Such as, processing component 602 can include multi-media module, to facilitate multimedia groupware 608
And process between assembly 602 mutual.
Memorizer 604 is configured to store various types of data to support the operation at equipment 600.This
The example of a little data includes any application program for operation on device 600 or the instruction of method, connection
It is personal data, telephone book data, message, picture, video etc..Memorizer 604 can be by any type
Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM
(SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is read-only
Memorizer (EPROM), programmable read only memory (PROM), read only memory (ROM),
Magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 606 is device 600 provide electric power.Electric power assembly 606 can include
Power-supply management system, one or more power supplys, and other with generate for device 600, manage and distribute electricity
The assembly that power is associated.
The screen of one output interface of offer that multimedia groupware 608 is included between device 600 and user.
In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).As
Really screen includes that touch panel, screen may be implemented as touch screen, to receive the input letter from user
Number.Touch panel includes that one or more touch sensor touches with sensing, slides and on touch panel
Gesture.Touch sensor can not only sense touch or the border of sliding action, but also detect and touch
Or slide relevant persistent period and pressure.In certain embodiments, multimedia groupware 608 includes
One front-facing camera and/or post-positioned pick-up head.When equipment 600 is in operator scheme, such as screening-mode or
During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each
Front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and optics
Zoom capabilities.
Audio-frequency assembly 610 is configured to output and/or input audio signal.Such as, audio-frequency assembly 610 wraps
Include a mike (MIC), when device 600 is in operator scheme, such as call model, logging mode
During with speech recognition mode, mike is configured to receive external audio signal.The audio signal received
Can be further stored at memorizer 604 or send via communications component 616.In certain embodiments,
Audio-frequency assembly 610 also includes a speaker, is used for exporting audio signal.
I/O interface 612 provides interface, above-mentioned periphery for processing between assembly 602 and peripheral interface module
Interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: homepage is pressed
Button, volume button, start button and locking press button.
Sensor cluster 614 includes one or more sensor, for providing various aspects for device 600
State estimation.Such as, what sensor cluster 614 can detect equipment 600 opens/closed mode,
The relative localization of assembly, such as assembly are display and the keypad of device 600, sensor cluster 614
Can also detect device 600 or the position change of 600 1 assemblies of device, user contacts with device 600
Presence or absence, device 600 orientation or acceleration/deceleration and the variations in temperature of device 600.Sensor
Assembly 614 can include proximity transducer, is configured to detect when not having any physical contact attached
The existence of nearly object.Sensor cluster 614 can also include optical sensor, as CMOS or CCD schemes
As sensor, for using in imaging applications.In certain embodiments, this sensor cluster 614 is also
Acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensing can be included
Device.
Communications component 616 is configured to facilitate wired or wireless mode between device 600 and other equipment
Communication.Device 600 can access wireless network based on communication standard, such as WIFI, 2G or 3G, or
Combinations thereof.In one exemplary embodiment, communication component 616 via broadcast channel receive from
The broadcast singal of external broadcasting management system or broadcast related information.In one exemplary embodiment, logical
Letter parts 616 also include near-field communication (NFC) module, to promote junction service.Such as, at NFC
Module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB)
Technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 600 can be by one or more application specific integrated circuits
(ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), can compile
Journey logical device (PLD), field programmable gate array (FPGA), controller, microcontroller, micro-
Processor or other electronic components realize, and are used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage including instruction is additionally provided
Medium, such as, include the memorizer 604 of instruction, and above-mentioned instruction can be held by the processor 620 of device 600
Row is to complete said method.Such as, non-transitory computer-readable recording medium can be ROM, random
Access memorizer (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art, after considering description and putting into practice disclosure disclosed herein, will readily occur to this
Other embodiment disclosed.The application is intended to any modification, purposes or the adaptability of the disclosure
Change, these modification, purposes or adaptations are followed the general principle of the disclosure and include these public affairs
Open undocumented common knowledge in the art or conventional techniques means.Description and embodiments only by
Being considered as exemplary, the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure be not limited to described above and illustrated in the accompanying drawings accurately
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by institute
Attached claim limits.
Claims (11)
1. the method accessing wireless network, application is on the mobile apparatus, it is characterised in that described side
Method includes:
When WAP is refused to described mobile device one IP address of distribution, wireless connect according to described
The network identity of the LAN that access point is set up generates an IP address;
Determine that described IP address is the most occupied;
If described IP address is unoccupied, then controls described mobile device and accessed by described IP address
Wireless network.
Method the most according to claim 1, it is characterised in that described method also includes:
Control the DHCP service in described WAP of the DHCP client in described mobile device
Device sends the request message for obtaining described IP address;
Receive the response message that described Dynamic Host Configuration Protocol server returns according to described request message;
When described response message represents that refusal distributes described IP address, determine that described WAP is refused
An IP address is distributed to described mobile device.
Method the most according to claim 2, it is characterised in that described method also includes:
LAN port address and the subnet mask of described WAP is parsed from described response message;
Described LAN port address and described subnet mask carried out and calculates, obtaining the net of described LAN
Network identifies.
Method the most according to claim 1, it is characterised in that described according to described WAP
The network identity of the LAN set up generates an IP address, including:
According to the network identity of the LAN that described WAP is set up, can in determining described LAN
The IP address used;
One IP address of stochastic generation in the IP address that can use in described LAN.
Method the most according to claim 1, it is characterised in that described determine that described IP address is
No occupied, including:
Control the DHCP service in described WAP of the DHCP client in described mobile device
Device sends and confirms message, wherein, carries described IP address in described confirmation message;
When receiving described Dynamic Host Configuration Protocol server and using message according to the confirmation that described confirmation message returns,
Send ARP broadcast, the most occupied in order to determine described IP address;
Without ARP broadcast described in equipment response, it is determined that described IP address is unoccupied,
If there being ARP broadcast described in equipment response, it is determined that described IP address is occupied, control described
Mobile device performs the network identity generation one of the described LAN set up according to described WAP
The step of IP address;
When receiving described Dynamic Host Configuration Protocol server and using message according to the refusal that described confirmation message returns,
Determine that described IP address is occupied, control described mobile device and perform described to build according to described WAP
The network identity of vertical LAN generates the step of an IP address.
6. accessing a device for wireless network, application is on the mobile apparatus, it is characterised in that described dress
Put and include:
Generation module, be configured as WAP refuse distribution to mobile device one IP address time,
One IP address of network identity generation according to the LAN that described WAP is set up;
Address takies and determines module, is configured to determine that described IP address that described generation module generates whether
Occupied;
AM access module, takies determine that module determines that described IP address is the most occupied if being configured to described address
With, then control described mobile device and access wireless network by described IP address.
Device the most according to claim 6, it is characterised in that described device also includes:
Sending module, the DHCP client being configured to control in described mobile device wireless connects to described
Dynamic Host Configuration Protocol server in access point sends the request message for obtaining described IP address;
Receiver module, is configured to receive the institute that described Dynamic Host Configuration Protocol server sends according to described sending module
State the response message that request message returns;
Distribution determines module, is configured as the described response message that described receiver module receives and represents and refuse
When distributing described IP address absolutely, determine described WAP to refuse to described mobile device and distribute an IP
Address.
Device the most according to claim 7, it is characterised in that described device also includes:
Parsing module, is configured to parse the LAN of described WAP from described response message
Port address and subnet mask;
Computing module, is configured to the described LAN port address that parsed by described parsing module and described
Subnet mask carries out and calculates, and obtains the network identity of described LAN.
Device the most according to claim 6, it is characterised in that described generation module includes:
Address determines submodule, is configured to the network mark of the LAN set up according to described WAP
Know, the IP address that can use in determining described LAN;
Generating submodule, being configured to can in described address determines the described LAN that submodule determines
One IP address of stochastic generation in the IP address used.
Device the most according to claim 6, it is characterised in that described address takies and determines module
Including:
First sends submodule, and the DHCP client being configured to control in described mobile device is to described
Dynamic Host Configuration Protocol server in WAP sends and confirms message, wherein, carries in described confirmation message
Described IP address;
Second sends submodule, is configured as receiving described Dynamic Host Configuration Protocol server according to described first
When the confirmation that the described confirmation message sending submodule to send returns uses message, send ARP broadcast,
The most occupied in order to determine described IP address;
First determines submodule, is configured to send submodule without described in equipment response second and sends
Described ARP broadcast, it is determined that described IP address is unoccupied, if had described in equipment response
Second sends the described ARP broadcast that submodule sends, it is determined that described IP address is occupied, institute
State generation module to control described mobile device and perform the described LAN set up according to described WAP
Network identity generates the step of an IP address;
Second determines submodule, is configured as receiving described Dynamic Host Configuration Protocol server according to described first
When the refusal that the described confirmation message sending submodule to send returns uses message, determine that described IP address is occupied
With, control described mobile device and perform the network mark of the described LAN set up according to described WAP
Know the step generating an IP address.
11. 1 kinds of devices accessing wireless network, it is characterised in that described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When WAP is refused to mobile device one IP address of distribution, according to described WAP
The network identity of the LAN set up generates an IP address;
Determine that described IP address is the most occupied;
If described IP address is unoccupied, then controls described mobile device and accessed by described IP address
Wireless network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610249087.5A CN105933465B (en) | 2016-04-20 | 2016-04-20 | Access the method and device of wireless network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610249087.5A CN105933465B (en) | 2016-04-20 | 2016-04-20 | Access the method and device of wireless network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105933465A true CN105933465A (en) | 2016-09-07 |
CN105933465B CN105933465B (en) | 2019-04-30 |
Family
ID=56839327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610249087.5A Active CN105933465B (en) | 2016-04-20 | 2016-04-20 | Access the method and device of wireless network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105933465B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106686153A (en) * | 2016-11-21 | 2017-05-17 | 广州视源电子科技股份有限公司 | Starting method and device of wireless hotspot service |
CN108712513A (en) * | 2018-03-27 | 2018-10-26 | 广东欧珀移动通信有限公司 | network address setting method, device, terminal device and storage medium |
CN111246454A (en) * | 2018-11-29 | 2020-06-05 | 千寻位置网络有限公司 | Internet access method and device for iOS device, iOS device and interaction system |
CN113573023A (en) * | 2021-07-27 | 2021-10-29 | 长视科技股份有限公司 | Camera network distribution method and device, computer equipment and storage medium |
CN113612867A (en) * | 2021-08-05 | 2021-11-05 | 北京千丁互联科技有限公司 | Community networking communication method, device and readable storage medium |
CN117692432A (en) * | 2023-06-14 | 2024-03-12 | 荣耀终端有限公司 | Network connection method and related equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848823A (en) * | 2005-04-15 | 2006-10-18 | 华为技术有限公司 | System and method for intercommunicating with mobile network short message based on IP switch-in network |
CN1937632A (en) * | 2005-09-23 | 2007-03-28 | 中兴通讯股份有限公司 | Address distributing method for broadband wireless access system |
CN102118453A (en) * | 2009-12-31 | 2011-07-06 | 华为技术有限公司 | Method, service device, client and communication system for automatic configuration of IP address |
CN103957288A (en) * | 2014-04-28 | 2014-07-30 | 福建星网锐捷网络有限公司 | Method, device and equipment for IP address dynamic allocation |
CN104219173A (en) * | 2014-09-10 | 2014-12-17 | 珠海市君天电子科技有限公司 | Local area network connection method, device and system based on DHCP (dynamic host configuration protocol) |
CN105357330A (en) * | 2015-10-22 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Method and system for preventing IP address conflict of network devices |
-
2016
- 2016-04-20 CN CN201610249087.5A patent/CN105933465B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848823A (en) * | 2005-04-15 | 2006-10-18 | 华为技术有限公司 | System and method for intercommunicating with mobile network short message based on IP switch-in network |
CN1937632A (en) * | 2005-09-23 | 2007-03-28 | 中兴通讯股份有限公司 | Address distributing method for broadband wireless access system |
CN102118453A (en) * | 2009-12-31 | 2011-07-06 | 华为技术有限公司 | Method, service device, client and communication system for automatic configuration of IP address |
CN103957288A (en) * | 2014-04-28 | 2014-07-30 | 福建星网锐捷网络有限公司 | Method, device and equipment for IP address dynamic allocation |
CN104219173A (en) * | 2014-09-10 | 2014-12-17 | 珠海市君天电子科技有限公司 | Local area network connection method, device and system based on DHCP (dynamic host configuration protocol) |
CN105357330A (en) * | 2015-10-22 | 2016-02-24 | 上海斐讯数据通信技术有限公司 | Method and system for preventing IP address conflict of network devices |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106686153A (en) * | 2016-11-21 | 2017-05-17 | 广州视源电子科技股份有限公司 | Starting method and device of wireless hotspot service |
CN108712513A (en) * | 2018-03-27 | 2018-10-26 | 广东欧珀移动通信有限公司 | network address setting method, device, terminal device and storage medium |
CN111246454A (en) * | 2018-11-29 | 2020-06-05 | 千寻位置网络有限公司 | Internet access method and device for iOS device, iOS device and interaction system |
CN113573023A (en) * | 2021-07-27 | 2021-10-29 | 长视科技股份有限公司 | Camera network distribution method and device, computer equipment and storage medium |
CN113612867A (en) * | 2021-08-05 | 2021-11-05 | 北京千丁互联科技有限公司 | Community networking communication method, device and readable storage medium |
CN117692432A (en) * | 2023-06-14 | 2024-03-12 | 荣耀终端有限公司 | Network connection method and related equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105933465B (en) | 2019-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104468837B (en) | The binding method and device of smart machine | |
CN104159275B (en) | Method for connecting network and device | |
CN105933465A (en) | Method and device for accessing wireless network | |
CN105487389A (en) | Method and device for controlling intelligent equipment | |
CN105243318A (en) | User equipment control right determining method and apparatus and terminal device | |
EP3276910B1 (en) | Bluetooth-based identity recognition method and device | |
CN104936304A (en) | Intelligent equipment binding method, intelligent equipment, and server | |
CN106209800B (en) | Equipment Authority sharing method and apparatus | |
CN104732380A (en) | Method and device for conducting account transfer processing | |
CN104735057A (en) | Sharing device control right method and device | |
CN106375479B (en) | Data sharing method and device | |
CN104765990A (en) | Setting method and device for management account of intelligent device | |
CN105516508A (en) | Method and device for activating virtual SIM card | |
CN104378501A (en) | Phone number naming method and device | |
CN104618511A (en) | Intelligent device detection method and device | |
CN105162728A (en) | Network access method, network access device and network access system | |
CN106209604A (en) | Add the method and device of good friend | |
CN104735670A (en) | Network access method and device | |
CN104093216A (en) | Method and device for wireless data transmission | |
CN107393528B (en) | Voice control method and device | |
CN106371327A (en) | Control right sharing method and device | |
CN105873179A (en) | Wireless network accessing method and device | |
CN105515923A (en) | Equipment control method and device | |
CN105491518A (en) | Method and device for social reminding based on wearable devices | |
CN106535192A (en) | Method and device for realizing access of smart equipment to router and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |