CN104902544A - Method and device for sharing hotspot device network - Google Patents

Method and device for sharing hotspot device network Download PDF

Info

Publication number
CN104902544A
CN104902544A CN201510260215.1A CN201510260215A CN104902544A CN 104902544 A CN104902544 A CN 104902544A CN 201510260215 A CN201510260215 A CN 201510260215A CN 104902544 A CN104902544 A CN 104902544A
Authority
CN
China
Prior art keywords
network
slave devices
hotspot device
address
interface card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510260215.1A
Other languages
Chinese (zh)
Other versions
CN104902544B (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.)
Beijing Ziguang Zhanrui Communication Technology Co Ltd
Original Assignee
Beijing Spreadtrum Hi Tech Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Spreadtrum Hi Tech Communications Technology Co Ltd filed Critical Beijing Spreadtrum Hi Tech Communications Technology Co Ltd
Priority to CN201510260215.1A priority Critical patent/CN104902544B/en
Publication of CN104902544A publication Critical patent/CN104902544A/en
Application granted granted Critical
Publication of CN104902544B publication Critical patent/CN104902544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The invention provides a method and a device for sharing a hotspot device network. The method comprises the following steps of arranging a network card communicated with an uplink network to an external network card when detecting that the uplink network is connected; adding an IP (Internet Protocol) address distributed to slave equipment; scanning the slave equipment; when the slave equipment is successfully connected at a link layer, updating an address resolution protocol table and a routing table, and applying the IP address of the slave equipment to the slave equipment to update the address resolution protocol table and the routing table; arranging the network card communicated with the slave equipment to an internal network card; and establishing an address mapping relationship between an IP address corresponding to the internal network card and an IP address corresponding to the external network card. According to the method and the device, operations of a user in a process of sharing the hotspot device network can be reduced, and the user experience is improved.

Description

A kind of method of hotspot device network sharing and device
Technical field
The present invention relates to networking technology area, particularly relate to a kind of method and device of hotspot device network sharing.
Background technology
In real life, user usually can run into the scene needing to carry out network sharing.Such as, time family goes on a tour, only have a SIM card of a kinsfolk to handle flow package business, but other kinsfolks also need online.
Traditional network sharing technology is normally when the mobile network of certain hotspot device is available, and described hotspot device can set up a mobile focus, arranges the title of focus and password for shared network.Other hotspot device then can by the mobile focus of scanning, and the title according to the focus arranged selects corresponding focus, and just can connect after inputting password.
But above-mentioned network analysis process, user needs first to set up mobile focus, arranges title and the password of focus, also need scan hot spot afterwards and input password, the process user operation of whole network sharing is very loaded down with trivial details, and easily input error, consuming time longer, affect Consumer's Experience.
Summary of the invention
The problem that the present invention solves is the operation of user in the process how reducing hotspot device network sharing, promotes Consumer's Experience.
For solving the problem, the embodiment of the present invention provides a kind of method of hotspot device network sharing, and described method comprises:
When detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network;
Add the IP address distributing to slave devices;
Scanning slave devices;
When with described slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table;
Be inner network interface card by the Network card setup communicated with described slave devices;
Address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card.
Alternatively, described uplink network comprises following at least one: 2G network, 3G network, 4G network, 5G network and Wi-Fi network.
Alternatively, the method for the network sharing of described hotspot device, also comprises: arrange the attribute of described hotspot device for can share described uplink network.
Alternatively, the described attribute arranging described hotspot device, for can share described uplink network, comprising: arranging described hotspot device as the wish value of main process equipment is to share the value of described uplink network.
Alternatively, described to arrange described hotspot device as the wish value of main process equipment be to share the value of described uplink network, comprising: arranging described hotspot device as the wish value of main process equipment is maximum.
Alternatively, described address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card, comprise: by network address translation, set up the mapping relations between IP address corresponding to described inner network interface card and IP address corresponding to described outside network interface card.
Embodiments provide a kind of device of hotspot device network sharing, described device comprises:
First setting unit, be suitable for when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network;
First dispensing unit, is suitable for adding the IP address distributing to slave devices;
Scanning element, is suitable for scanning described slave devices;
Updating block, be suitable for when with described slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table;
Second setting unit, being suitable for the Network card setup communicated in described slave devices is inner network interface card;
Second dispensing unit, is suitable for IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card to set up address mapping relation.
Alternatively, described uplink network comprises following at least one: 2G network, 3G network, 4G network, 5G network and Wi-Fi network.
Alternatively, the device of described hotspot device network sharing, also comprises: the 3rd setting unit, is suitable for arranging the attribute of described hotspot device for can share described uplink network.
Alternatively, described 3rd setting unit, being suitable for arranging described hotspot device as the wish value of main process equipment is to share the value of described uplink network.
Alternatively, described 3rd setting unit, being suitable for arranging described hotspot device as the wish value of main process equipment is maximum.
Alternatively, described second dispensing unit, is suitable for by network address translation, sets up the mapping relations between IP address corresponding to described inner network interface card and IP address corresponding to described outside network interface card.
Compared with prior art, technical scheme of the present invention has the following advantages:
By when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network, add the IP address distributing to slave devices, when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table, be inner network interface card by the Network card setup communicated with described slave devices, address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card.These operations are all that hotspot device is run automatically, wherein, by adding the IP address distributing to slave devices, scanning slave devices, when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table.Thus can skip the process according to DHCP mutual final distributing IP address repeatedly, therefore the speed of whole hotspot device network sharing can be improved.
And user is in whole network sharing process, what only needs did is exactly open oneself corresponding focus separately, then described main process equipment will scan slave devices, just can realize network sharing, thus the process of whole network sharing can make user operation very simple, and is not easy input error, consuming time shorter, therefore can Consumer's Experience be promoted.
Further, by when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network, do not distinguish the type of uplink network, no matter uplink network is 2G network, 3G network, 4G network, 5G network or Wi-Fi network, can share web, not by the restriction of uplink network type.
Further, by arranging the attribute of described hotspot device for described uplink network can be shared, hotspot device institute's role in network sharing process can be distributed by arranging, thus make the more intelligent and hommization of whole network sharing.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for a kind of hotspot device network sharing in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for another kind of hotspot device network sharing in the embodiment of the present invention;
Fig. 3 is the structural representation of the device of a kind of hotspot device network sharing in the embodiment of the present invention;
Fig. 4 is the structural representation of the device of another kind of hotspot device network sharing in the embodiment of the present invention.
Embodiment
For the network sharing process of the hotspot device existed in prior art, the operation of user is very loaded down with trivial details, and easily input error, consuming time longer, affect the problem of Consumer's Experience, in the embodiment of the present invention, automatically network sharing is realized essentially by equipment, user is in whole network sharing process, what only needs did is exactly open oneself corresponding focus separately, then described hotspot device will scan slave devices, just network sharing can be realized, thus the process of whole network sharing can make user operation very simple, and be not easy input error, consuming time shorter, promote Consumer's Experience.
For enabling above-mentioned purpose of the present invention, feature and advantage more become apparent, and are described in detail specific embodiments of the invention below in conjunction with accompanying drawing.
Fig. 1 shows the flow chart of the method for a kind of hotspot device network sharing in the embodiment of the present invention, and as shown in Figure 1, hotspot device can carry out network sharing in the following way:
S101: when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network.
In concrete enforcement, when detect connect with uplink network time, according to the difference of the type of uplink network, outside network interface card can be set to by the corresponding network interface card that described uplink network communicates.
S102: add the IP address distributing to slave devices.
In concrete enforcement, the IP address that slave devices is distributed in expection can be added.
In an embodiment of the present invention, in the self-defining part of manufacturer in point-to-point communication information field (Point to Point Information Element, P2P IE), the IP address of expecting and distributing to next slave devices can be added.
S103: scanning slave devices.
In concrete enforcement, user opens described main process equipment and the corresponding focus of described slave devices, and now, described main process equipment will scan slave devices, and described slave devices is sent to the invitation adding share web.
In concrete enforcement, focus can be opened by the mode such as button, voice.
S104: when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table.
In concrete enforcement, in S103 step, described main process equipment automatic scan slave devices, described slave devices is sent to the invitation adding share web, and the user of slave devices only needs to accept this invitation, then described main process equipment will determine the successful connection at link layer of described main process equipment and described slave devices, in such S102 step add the IP address distributing to slave devices and just can be transferred to described slave devices.Afterwards, described main process equipment will scheduler analytic protocol table and routing table, and described slave devices, also according to described IP address correspondingly scheduler analytic protocol table and routing table.
By adding the IP address distributing to slave devices, scanning slave devices, also have when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table.Thus can skip the process according to DHCP mutual final distributing IP address repeatedly, therefore the speed of whole hotspot device network sharing can be improved.
S105: be inner network interface card by the Network card setup communicated with described slave devices.
In concrete enforcement, needing the communication of setting up network sharing between described main process equipment and described slave devices, is inner network interface card the Network card setup in the communication process of described network sharing.
S106: address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card.
In an embodiment of the present invention, by network address translation (Network Address Translation, NAT), set up the mapping relations between IP address corresponding to described inner network interface card and IP address corresponding to described outside network interface card.
Because establish mapping relations between the IP address that described inner network interface card is corresponding and IP address corresponding to described outside network interface card, thus make main process equipment can share connected described uplink network, namely described slave devices also can carry out network service by main process equipment and described uplink network.
More than by when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network, add the IP address distributing to slave devices, scanning slave devices, when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table, be inner network interface card by the Network card setup communicated with described slave devices, address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card.
User is in whole network sharing process, what only needs did is exactly open oneself corresponding focus button separately, then described hotspot device will scan slave devices, just network sharing can be realized, thus the process of whole network sharing can make user operation very simple, and be not easy input error, and consuming time shorter, promote Consumer's Experience.
The embodiment of the present invention additionally provides the method for another kind of hotspot device network sharing, with reference to Fig. 2, is described in detail below by way of concrete steps:
S201: judge whether be connected with 2G network/3G network/4G network/5G network.
In concrete enforcement, if detect with for when in 2G network, 3G network, 4G network and 5G network, the uplink network of at least one connects, then perform S202; Otherwise, perform S203.
S202: corresponding for 2G network/3G network/4G network/5G network network interface card is set as outside network interface card.
In concrete enforcement, the Network card setup communicated with the uplink network of at least one in described 2G network, 3G network, 4G network and 5G network is outside network interface card by main process equipment.
S203: judge whether whether be connected with Wi-Fi network.
In concrete enforcement, if detect when connecting with the uplink network for Wi-Fi network, then perform S204; If detected when not connecting with the uplink network for Wi-Fi, then perform S201.
S204: corresponding for Wi-Fi network network interface card is set as outside network interface card.
In concrete enforcement, the Network card setup communicated with the uplink network for described Wi-Fi network is outside network interface card by described main process equipment.
In concrete enforcement, by the step of above S201-S204, outside network interface card can be set.
Being connected with uplink network once detect by this, is just outside network interface card by the Network card setup communicated with described uplink network.And the type of uplink network need not be distinguished, can make no matter uplink network is at least one in 2G network, 3G network, 4G network and 5G network, or when being Wi-Fi network, described hotspot device can share oneself network.
S205: be provided as main process equipment attribute for can uplink network be shared.
In concrete enforcement, arranging described hotspot device as the wish value of main process equipment is to share described uplink network: the value of at least one in 2G network, 3G network, 4G network and 5G network.In an embodiment of the present invention, arranging described hotspot device as the wish value of main process equipment is maximum.
In October, 2010, Wi-Fi Alliance (Wi-Fi Alliance) issues Wi-Fi Direct white paper, describes about the essential information of this technology, feature and function in white paper.Wi-Fi Direct standard is referred to and allows equipment in wireless network without the need to being interconnected by wireless router.Similar with Bluetooth technology, this standard allows wireless device to interconnect with point-to-point form, and then has than bluetooth in transmission speed with transmission range and significantly promote.In recent years, increasing smart machine starts to support Wi-Fi Direct.
In Wi-Fi Direct agreement, main process equipment (Group Owner, GO) plays the part of the role of focus in network sharing process, slave devices (Group Client, GC) play the part of in network sharing process client computer role.According to the agreement of described Wi-Fi Direct, the reasonable value scope of the described wish value as main process equipment is the natural number of 0 to 15, and therefore, in an embodiment of the present invention, arranging described hotspot device as the wish value of main process equipment is 15.
Be understandable that, in concrete enforcement, also can arrange described hotspot device as the wish value of main process equipment is other values, and described wish value is larger, represents that described hotspot device plays the part of the wish of host role in network sharing process stronger.Such as, as long as A equipment is not less than the wish value of the described hosted equipment of B equipment, described A equipment just can be shared with B equipment the uplink network of oneself.
When S206 step: add the IP address distributing to slave devices.
In concrete enforcement, can in P2P IE the self-defining part of manufacturer, add the IP address that expection distributes to slave devices.In concrete enforcement, described slave devices may be multiple, and correspondingly, the IP address distributing to slave devices also can for multiple.
S207: scan hot spot equipment.
In an embodiment of the present invention, user opens described main process equipment and the corresponding focus button of described slave devices, and now, described main process equipment will scan slave devices, and described slave devices is sent to the invitation adding share web.
S208: whether with the successful connection of slave devices link layer.
In concrete enforcement, in step S207, described main process equipment sends the invitation adding share web can to described slave devices, if described slave devices accepts described invitation, is then determined at the successful connection of described slave devices link layer, then performs S209; Otherwise, if described slave devices does not accept the invitation of described main process equipment, then perform S207.
S209: hotspot device and slave devices scheduler analytic protocol table and routing table respectively.
In concrete enforcement.If the link layer successful connection of described main process equipment and described slave devices, then described slave devices just can receive the IP address that main process equipment described in S206 distributes to described slave devices.Then, described hotspot device and slave devices correspondingly will upgrade oneself address analysis protocol table and routing table respectively, both respectively described IP address and corresponding physical address were established a connection, and the corresponding table upgrading the path arriving particular network terminal.
By the self-defining part of manufacturer in P2P IE, add and expect the IP address distributed to next slave devices, when with slave devices after link layer successful connection, described hotspot device and slave devices scheduler analytic protocol table and routing table respectively.Thus can skip the process according to DHCP mutual final distributing IP address repeatedly, therefore the speed of whole hotspot device network sharing can be improved.
S210: be inner network interface card by the Network card setup communicated with slave devices.
In an embodiment of the present invention, main process equipment and slave devices are advised the Network card setup that network sharing communicates is inner network interface card.
S211: mapping relations are set up in IP address corresponding for inner network interface card and IP address corresponding to outside network interface card.
In concrete enforcement, by network address translation, set up the mapping relations between IP address corresponding to described inner network interface card and IP address corresponding to described outside network interface card.By when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network, add the IP address distributing to slave devices, when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table, be inner network interface card by the Network card setup communicated with described slave devices, address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card.These operations are all that hotspot device is run automatically, wherein, by adding the IP address distributing to slave devices, scanning slave devices, when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table.Thus can skip the process according to DHCP mutual final distributing IP address repeatedly, therefore the speed of whole hotspot device network sharing can be improved.
User is in whole network sharing process, what only needs did is exactly open oneself corresponding focus button separately, then described main process equipment will scan slave devices, and send invitation to slave devices, and slave devices only needs to accept described invitation, just can realize network sharing, thus the process of whole network sharing can make user operation very simple, and be not easy input error, and consuming time shorter, promote Consumer's Experience.
Be understandable that, in concrete enforcement, as required, in the various embodiments described above, any one or kinds of schemes can be combined.
In order to make those skilled in the art understand better and realize the present invention, in the embodiment of the present invention, additionally provide the device of corresponding hotspot device network sharing.Referring to accompanying drawing, be described in detail by specific embodiment.
With reference to the structural representation of the device of the hotspot device network sharing shown in Fig. 3, in an embodiment of the present invention, the device 30 of hotspot device network sharing comprises: the first setting unit 301, first dispensing unit 302, scanning element 303, updating block 304, second setting unit 305, second dispensing unit 306, wherein:
Described first setting unit 301, be suitable for when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network; Described uplink network comprises following at least one: 2G network, 3G network, 4G network, 5G network and Wi-Fi network.
Described first dispensing unit 302, is suitable for adding the IP address distributing to slave devices.
In concrete enforcement, described first setting unit 301 and described first dispensing unit 302 couple, and after described first setting unit 301 completes the setting of described outside network interface card, described first dispensing unit 302, adds the IP address distributing to slave devices.
Described scanning element 303, is suitable for scanning described slave devices.
In an embodiment of the present invention, when user opens described main process equipment and the corresponding focus of described slave devices, now, described main process equipment will scan slave devices, and described slave devices is sent to the invitation adding share web.
Described updating block 304, be suitable for when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, described IP address is suitable for described slave devices scheduler analytic protocol table and routing table.
In concrete enforcement, after described scanning element 303 scans described slave devices, if described slave devices receives invitation, then just determine with described slave devices in link layer successful connection.Then described updating block 304 scheduler analytic protocol table and routing table, the described IP address distributed by described first dispensing unit 302 is suitable for described slave devices scheduler analytic protocol table and routing table.
Described second setting unit 305, being suitable for the Network card setup communicated with described slave devices is inner network interface card.In concrete enforcement, described second dispensing unit 305, is suitable for by network address translation, sets up the mapping relations between IP address corresponding to described inner network interface card and IP address corresponding to described outside network interface card.
In an embodiment of the present invention, when described updating block 304 completes scheduler analytic protocol table and routing table, then the Network card setup communicated with described slave devices is inner network interface card by described second dispensing unit 305.
Described second dispensing unit 306, is suitable for IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card to set up address mapping relation.
In concrete enforcement, address mapping relation is set up in the IP address that the inside network interface card arranged by described second setting unit 305 is corresponding and IP address corresponding to the described outside network interface card that described first setting unit 301 is arranged.
By when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network, add the IP address distributing to slave devices, when with slave devices after link layer successful connection, described hotspot device and slave devices scheduler analytic protocol table and routing table respectively, be inner network interface card by the Network card setup communicated with described slave devices, address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card.These operations are all that hotspot device is run automatically, wherein, by adding the IP address distributing to slave devices, scanning slave devices, when with slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table.Thus can skip the process according to DHCP mutual final distributing IP address repeatedly, therefore the speed of whole hotspot device network sharing can be improved.
User is in whole network sharing process, what only needs did is exactly open oneself corresponding focus button separately, then described hotspot device will scan slave devices, and send invitation to slave devices, and slave devices only needs to accept described invitation, just can realize network sharing, thus the process of whole network sharing can make user operation very simple, and be not easy input error, and consuming time shorter, promote Consumer's Experience.
In an alternative embodiment of the invention, the structural representation of the device of another kind of hotspot device network sharing as shown in Figure 4.Compared with above-described embodiment, unique difference is, the device 40 of described hotspot device network sharing also comprises: the 3rd setting unit 401, is suitable for arranging the attribute of described hotspot device for can share described uplink network.
In concrete enforcement, described 3rd setting unit 401 couples with described first setting unit 301 and described first dispensing unit 302 respectively, and after the Network card setup communicated with described uplink network is outside network interface card by described first setting unit 301, arrange the attribute of described hotspot device for can share described uplink network, then described first dispensing unit 302 adds the IP address distributing to slave devices.
In concrete enforcement, described 3rd setting unit 401, being suitable for arranging described hotspot device as the wish value of main process equipment is to share the value of described uplink network.
In an embodiment of the present invention, described 3rd setting unit 401, being suitable for arranging described hotspot device as the wish value of main process equipment is maximum.
In concrete enforcement, in order to make the more intelligent and hommization of whole network sharing, can arrange and distribute described hotspot device institute's role in network sharing process.Such as, described hotspot device can select the main process equipment as network sharing, also can select the slave devices as network sharing.
So the method for above-mentioned hotspot device network sharing, also comprise: the attribute of described hotspot device is set for can share described uplink network.
In an embodiment of the present invention, the described attribute arranging described hotspot device is for can share described uplink network, and arranging described hotspot device exactly as the wish value of main process equipment is to share the value of described uplink network.Described hotspot device is the natural number of 0 to 15 as the span of the wish value of main process equipment.Arranging described hotspot device as the wish value of main process equipment is to share the value of described uplink network, and arranging described hotspot device as the wish value of main process equipment is maximum, is 15.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in in computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
Although the present invention discloses as above, the present invention is not defined in this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, and therefore protection scope of the present invention should be as the criterion with claim limited range.

Claims (12)

1. a method for hotspot device network sharing, is characterized in that, comprising:
When detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network;
Add the IP address distributing to slave devices;
Scanning slave devices;
When with described slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table;
Be inner network interface card by the Network card setup communicated with described slave devices;
Address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card.
2. the method for hotspot device network sharing according to claim 1, is characterized in that, described uplink network comprises following at least one:
2G network, 3G network, 4G network, 5G network and Wi-Fi network.
3. the method for hotspot device network sharing according to claim 1, is characterized in that, also comprise: arrange the attribute of described hotspot device for can share described uplink network.
4. the method for hotspot device network sharing according to claim 3, it is characterized in that, the described attribute arranging described hotspot device, for can share described uplink network, comprising: arranging described hotspot device as the wish value of main process equipment is to share the value of described uplink network.
5. the method for hotspot device network sharing according to claim 4, it is characterized in that, described to arrange described hotspot device as the wish value of main process equipment be to share the value of described uplink network, comprising: arranging described hotspot device as the wish value of main process equipment is maximum.
6. the method for hotspot device network sharing according to claim 1, is characterized in that, described address mapping relation is set up in IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card, comprising:
By network address translation, set up the mapping relations between IP address corresponding to described inner network interface card and IP address corresponding to described outside network interface card.
7. a device for hotspot device network sharing, is characterized in that, comprising:
First setting unit, be suitable for when detect connect with uplink network time, be outside network interface card by the Network card setup communicated with described uplink network;
First dispensing unit, is suitable for adding the IP address distributing to slave devices;
Scanning element, is suitable for scanning described slave devices;
Updating block, be suitable for when with described slave devices after link layer successful connection, scheduler analytic protocol table and routing table, and the IP address of described slave devices is suitable for described slave devices scheduler analytic protocol table and routing table;
Second setting unit, being suitable for the Network card setup communicated in described slave devices is inner network interface card;
Second dispensing unit, is suitable for IP address corresponding for described inner network interface card and IP address corresponding to described outside network interface card to set up address mapping relation.
8. the device of hotspot device network sharing according to claim 7, is characterized in that, described uplink network comprises following at least one:
2G network, 3G network, 4G network, 5G network and Wi-Fi network.
9. the device of hotspot device network sharing according to claim 7, is characterized in that, also comprise:
3rd setting unit, is suitable for arranging the attribute of described hotspot device for can share described uplink network.
10. the device of hotspot device network sharing according to claim 9, is characterized in that, described 3rd setting unit, and being suitable for arranging described hotspot device as the wish value of main process equipment is to share the value of described uplink network.
The device of 11. hotspot device network sharings according to claim 10, is characterized in that, described 3rd setting unit, and being suitable for arranging described hotspot device as the wish value of main process equipment is maximum.
The device of 12. hotspot device network sharings according to claim 7, it is characterized in that, described second dispensing unit, is suitable for by network address translation, sets up the mapping relations between IP address corresponding to described inner network interface card and IP address corresponding to described outside network interface card.
CN201510260215.1A 2015-05-20 2015-05-20 A kind of method and device of hotspot device network sharing Active CN104902544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510260215.1A CN104902544B (en) 2015-05-20 2015-05-20 A kind of method and device of hotspot device network sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510260215.1A CN104902544B (en) 2015-05-20 2015-05-20 A kind of method and device of hotspot device network sharing

Publications (2)

Publication Number Publication Date
CN104902544A true CN104902544A (en) 2015-09-09
CN104902544B CN104902544B (en) 2018-11-16

Family

ID=54034874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510260215.1A Active CN104902544B (en) 2015-05-20 2015-05-20 A kind of method and device of hotspot device network sharing

Country Status (1)

Country Link
CN (1) CN104902544B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711181A (en) * 2012-06-05 2012-10-03 深圳市中兴移动通信有限公司 Method for mobile terminal to realize network shunt by utilizing multilink
CN103281799A (en) * 2013-05-31 2013-09-04 Tcl通讯(宁波)有限公司 Network connection switching method based on mobile phone hot spots and mobile phone
CN103906170A (en) * 2014-04-17 2014-07-02 谷晓鹏 Method for setting hardware Wi-Fi access point information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711181A (en) * 2012-06-05 2012-10-03 深圳市中兴移动通信有限公司 Method for mobile terminal to realize network shunt by utilizing multilink
CN103281799A (en) * 2013-05-31 2013-09-04 Tcl通讯(宁波)有限公司 Network connection switching method based on mobile phone hot spots and mobile phone
CN103906170A (en) * 2014-04-17 2014-07-02 谷晓鹏 Method for setting hardware Wi-Fi access point information

Also Published As

Publication number Publication date
CN104902544B (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN101621314B (en) Bluetooth mobile phone and pairing and binding method thereof
JP4833995B2 (en) Mobile online game system and communication method between mobile game terminals
EP2467969B1 (en) Method and apparatus for remote management of device
CN110121902B (en) Communication establishment method and terminal
KR101680715B1 (en) Apparatus and method of registring personal network
CN104380700A (en) System and method for persistent wireless docking
CN101094250A (en) Methods and apparatus for maintaining network addresses
KR101683292B1 (en) Apparatus and method for composing personal network using pn routing table
CN104702608A (en) WiFi sharing system
CN104333610A (en) IPv6 address allocation method and device
KR20140020179A (en) Apparatus and method for connecting service reflected in user intent
CN104936258A (en) Network access method, terminal and system
CN103906055A (en) Service data distribution method and service data distribution system
CN102710629B (en) Method for connecting network and system
CN107592639A (en) A kind of terminal device adds the method and system of router white list
WO2017181626A1 (en) Shared neighborhood network establishing method, use method, and shared neighborhood network system
CN102694814B (en) Have the high-definition video player of wireless networking capabilities and WAP (wireless access point) function concurrently
CN112492618A (en) Network sharing method and device, electronic equipment and storage medium
CN113891317A (en) Network distribution method and network distribution device of intelligent equipment and electronic equipment
CN110278558B (en) Message interaction method and WLAN system
CN103415086A (en) Method for achieving file transmission application based on mobile terminal private network
CN104902544A (en) Method and device for sharing hotspot device network
CN106470252B (en) The method and communication terminal of application program inquiry IP address
CN105282822A (en) Method and device for connecting with encrypted hot spots based on terminal SIM card
CN101715183A (en) Network access method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 100089 18 / F, block B, Zhizhen building, No.7, Zhichun Road, Haidian District, Beijing

Patentee after: Beijing Ziguang zhanrui Communication Technology Co.,Ltd.

Address before: 100084, Room 516, building A, Tsinghua Science Park, Beijing, Haidian District

Patentee before: BEIJING SPREADTRUM HI-TECH COMMUNICATIONS TECHNOLOGY Co.,Ltd.