CN103220283A - Method, equipment and system for network sharing - Google Patents

Method, equipment and system for network sharing Download PDF

Info

Publication number
CN103220283A
CN103220283A CN2013101189745A CN201310118974A CN103220283A CN 103220283 A CN103220283 A CN 103220283A CN 2013101189745 A CN2013101189745 A CN 2013101189745A CN 201310118974 A CN201310118974 A CN 201310118974A CN 103220283 A CN103220283 A CN 103220283A
Authority
CN
China
Prior art keywords
network
shared
rndis
interface card
terminal
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
CN2013101189745A
Other languages
Chinese (zh)
Other versions
CN103220283B (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 Xiaomi Technology Co Ltd
Original Assignee
Beijing Xiaomi 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 Xiaomi Technology Co Ltd filed Critical Beijing Xiaomi Technology Co Ltd
Priority to CN201310118974.5A priority Critical patent/CN103220283B/en
Publication of CN103220283A publication Critical patent/CN103220283A/en
Application granted granted Critical
Publication of CN103220283B publication Critical patent/CN103220283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method, equipment and a system for network sharing and belongs to the technical field of communication. The method comprises the following steps of: receiving a calling request of preset application on network; acquiring a current network connection type; and when the current network connection type is connection of a PC (Personal Computer) shared network, converting the PC shared network into the preset network and enabling the preset application to learn that the local network connection is preset network connection and the calling of the preset application is allowed. According to the method, the equipment and the system disclosed by the invention, the PC shared network is converted into the preset network, so that the preset application can be normally executed and the problem that the preset application cannot be normally used in the PC shared network is solved.

Description

Method, equipment and system that network is shared
Technical field
The present invention relates to communication technical field, method, equipment and system that particularly a kind of network is shared.
Background technology
Along with the development of the smart mobile phone with Android system, increasing user brings into use surfing Internet with cell phone.The user uses the approach of surfing Internet with cell phone mainly to comprise two kinds at present: the one, and data connect, and the 2nd, WI-FI(wireless fidelity, Wireless Fidelity) connect.Wherein, it is the 2G(Second Generation that walks operator that data connect, second generation mobile communication technology)/3G(3rd-generation, the 3G (Third Generation) Moblie technology) network, it is by connecting wireless router that WI-FI connects.First kind of high network speed of mode rate is slow, the second way have or not circuit by restriction, if user place does not have wireless route just can not surf the Net by WI-FI, so this dual mode all can not well satisfy user's demand.
Propose a kind of mobile phone at present and shared PC(Personal Computer, personal computer) network access of network, the user can be with mobile phone by USB(Universal Serial BUS, the conventional data bus) line is connected on the PC, the network settings at manual configuration PC and mobile phone two ends then, and then reach the purpose that mobile phone is shared PC network.This mode neither needs to walk the network of operator, does not also have the restriction of wireless route, provides more choices for the user uses surfing Internet with cell phone.
But, present many APP(Application, the third party application of smart mobile phone) use be based on all that data connect or WI-FI connects.When the user triggers APP, APP can detect the connection type of current network earlier, if the application of this APP is based on the WI-FI connection, when not detecting the connected mode of this network, can forbid the execution of this APP, if user's use this moment is the connected mode that mobile phone is shared PC network, the user can normally surf the Net, but APP can not discern this internetwork connection mode, has so just influenced the normal use of APP in the shared PC network of mobile phone.
Summary of the invention
In order to solve the problem that APP can not normally use in the PC shared network, method, equipment and system that the embodiment of the invention provides a kind of network to share.Described technical scheme is as follows:
On the one hand, the method that provides a kind of network to share, described method comprises:
Receive the default call request of using network;
Obtain current network connection type;
When described current network connection type is the connection of personal computer PC shared network, described PC shared network is converted to default network, make described default application know that local network is connected to described default network and allows calling of described default application.
On the other hand, provide a kind of terminal, described terminal links to each other with personal computer PC by general-purpose serial bus USB, comprising:
Receiver module is used to receive the default call request of using network;
Acquisition module is used to obtain current network connection type;
Modular converter, be used for when described current network connection type is the connection of personal computer PC shared network, described PC shared network is converted to default network, makes described default application know that local network is connected to described default network connection and allows calling of described default application.
On the other hand, the system that also provides a kind of network to share, comprising: aforesaid terminal and personal computer PC, described terminal links to each other by general-purpose serial bus USB with described PC.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is: when receiving call request, whether judge described call request from application layer, if described call request is the call request from application layer, then obtain current network connection type; When described current network connection type is the connection of PC shared network, described PC shared network is converted to default network, make described application layer know that local network is connected to the execution that described default network connects and allow described default application.Thereby solved the problem that current some application program can not normally be used in the PC shared network.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the shared method flow diagram of a kind of network that provides in the embodiment of the invention one;
Fig. 2 is the shared method flow diagram of a kind of network that provides in the embodiment of the invention two;
Fig. 3 is a kind of shared method flow diagram of network of creating that provides in the embodiment of the invention three;
Fig. 4 is a kind of shared method flow diagram of network of closing that provides in the embodiment of the invention three;
Fig. 5 is the structural representation of a kind of terminal of providing in the embodiment of the invention four;
Fig. 6 is the structural representation of the another kind of terminal that provides in the embodiment of the invention four;
Fig. 7 is the structural representation of the another kind of terminal that provides in the embodiment of the invention four;
Fig. 8 is the schematic diagram of the system shared of a kind of network of providing in the embodiment of the invention five.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
The method of network connection of the embodiment of the invention can run on the operating system platform that is used for portable removable smart machine that the exploitation of Android(Google is installed), the operating system platform that is used for portable removable smart machine of iOS(Apple exploitation), the operating system platform that is used for portable removable smart machine of Windows Phone(Microsoft exploitation) terminal of operating system such as, this terminal can be a mobile phone, palmtop PC, in panel computer or the like any one, can comprise central processing unit in this terminal, memory, switching device, power supply, the clock signal maker, image processor, combination in any in the Sound Processor Unit etc., above-mentioned central processing unit, memory, switching device, power supply, the clock signal maker, image processor, combination in any in the Sound Processor Unit etc. is used for realizing the function of the method for network connection of embodiments of the invention.
First and second execution sequences of not representing successively that relate in the present embodiment are just in order to illustrate each self-corresponding information of distinct device.
Embodiment one
Referring to Fig. 1, the method that provides a kind of network to share in the present embodiment comprises:
101, receive the default call request of using network;
102, obtain current network connection type;
103, when described current network connection type is the connection of personal computer PC shared network, described PC shared network is converted to default network, makes described default application know that local network is connected to described default network connection and allows calling of described default application.
In another embodiment, describedly obtain current network connection type, comprising:
When described call request during, obtain current network connection type from application layer.
In another embodiment, described described PC shared network is converted to default network, comprises:
Call default application programming interfaces;
By described preset interface the sign of described PC shared network is revised as the sign of default network, to realize that described PC shared network is converted to described default network.
In another embodiment, described default network comprises: Wireless Fidelity WI-FI network.
In another embodiment, described method also comprises:
When receiving the request of creating the PC shared network, enable the network share service of general-purpose serial bus USB, set up shared network local and the PC end.
In another embodiment, the shared network of described foundation and PC end comprises:
Create telecommunication network driving interface standard RNDIS network interface card, and will return the message of creating described RNDIS network interface card to the PC end, PC being held the network of described PC end is shared the dynamic host configuration protocol DHCP function of giving described RNDIS network interface card and closing described RNDIS network interface card, is terminal distribution the 2nd RNDIS network information and DNS information also with the RNDIS network information that described PC end is set;
Receive the configuration order that described PC end issues, described configuration order comprises: described the 2nd RNDIS network information and described DNS information;
According to described configuration order described the 2nd RNDIS network information and DNS information are set on described terminal, to set up the shared network of local and described PC end.
In another embodiment, described method also comprises:
When receiving the request that disconnects the PC shared network, the network share service of removing to enable USB disconnects shared network local and the PC end.
In another embodiment, the shared network of described disconnection and PC end comprises:
Deletion RNDIS network interface card, and will return the message of deleting described RNDIS network interface card to the PC end makes reset described RNDIS network interface card and remove the shared relationship of described PC end network and described RNDIS network interface card of PC end.
The beneficial effect of present embodiment is: receive the default call request of using network; Obtain current network connection type; When described current network connection type is the connection of PC shared network, described PC shared network is converted to default network, make described should preset to use know that local network is connected to described default network and connects and allow calling of described default application, thereby solved the problem that current some application program can not normally be used in the PC shared network.
Embodiment two
The method that provides a kind of network to share in the embodiment of the invention, only support the problem of certain type network at present part A PP, in the present embodiment when the user is in the PC shared network and connects, when triggering the application of APP, the PC shared network is converted to the default network that APP can support, so just can realizes normal used of APP in the PC shared network.The system that terminal is used in the present embodiment includes but not limited to: Android system etc., this present embodiment is not done concrete qualification.In the present embodiment, default network type includes but not limited to: data connection and/or WI-FI connection etc., this present embodiment is not done concrete qualification.Be that WI-FI is connected to example and describes with the default network type of supporting of using in the present embodiment.
Referring to Fig. 2, method flow comprises:
201, when the default application on the terminal is triggered, the default application to the call request of network connection service module transmission to network.
Whether in this step, default being applied in before the execution inquired about current network type earlier, determine to continue to carry out according to the current network type again.Concrete, after default application is triggered, initiate function call request to the network connection service module by the application layer of system, whether be the network connection type that default application can be supported to check current network connection type.
In the concrete implementation, application layer includes but not limited to the function call request that the network connection service module sends: check whether connection requests of WI-FI, or check the request of current activation network type, this present embodiment is not done concrete qualification.
202, the network connection service module receives the default call request of using network, and whether judges this call request from application layer, if then obtain local network connection type.
In this step, when receiving function call request, earlier judge that whether this function is from application layer, if this function call is from application layer, then obtain current network connection type,, then function call request is handled by present mode if this function call is from system, similar with correlation technique herein, this is repeated no more in the present embodiment.
203, when described current network connection type is the connection of PC shared network, described PC shared network is converted to default network, makes described default application know that local network is connected to described default network connection and allows calling of described default application.
In the present embodiment, the PC shared network is converted to default network, comprises: call default application programming interfaces; By described preset interface the sign of described PC shared network is revised as the sign of default network, to realize that described PC shared network is converted to described default network.Wherein, the interface of default application program comprises the interface relevant with network connection type.
In the present embodiment, after the network connection service module is revised as the sign of PC shared network default network identity, to inform that by preset interface application layer current network type is the WI-FI network, when application layer knows that current network connection type is the WI-FI connection type, this network type is informed default the application, default like this being applied in known when the current network type is the WI-FI network, just can call function wherein, makes default application normally to use.
The beneficial effect of present embodiment is: receive the default call request of using network; Obtain current network connection type; When described current network connection type is the connection of PC shared network, described PC shared network is converted to default network, make described should preset to use know that local network is connected to described default network and connects and allow calling of described default application, thereby solved the problem that current some application program can not normally be used in the PC shared network.
Embodiment three
The method that provides a kind of network to share in the embodiment of the invention is connected by data wire terminal with the PC end, do not need the user that network parameter manually is set, and only needs to trigger the PC shared network sign of PC end, just enough can trigger the PC end and be connected with the network of terminal.Wherein, the shared network that terminal and PC end is created in the foregoing description two can be to create by the method in the present embodiment, also can be the PC shared network of creating by other method, and this present embodiment is not done concrete qualification.
Referring to Fig. 3, method flow comprises:
301, the PC shared network service module of PC end on terminal sends the request of creating the PC shared network.
In the present embodiment, the sign of PC shared network is set at the PC end, when the user triggers this sign, the PC end initiates to create the request of PC shared network to terminal by USB, comprise in this request and enable the order that PC shares online, make PC shared network service module when receiving request to create, enable the network share service of USB.
302, PC shared network service module receives the request of creating the PC shared network, enables the network share service of USB.
303, the network connection service module creation RNDIS(Remote Network Driver Interface Specification on the terminal, telecommunication network driving interface standard) network interface card.
In this step, PC shared network service module is when receiving request to create, and informing network Connection Service module is opened the network share service of USB, and creates the RNDIS network interface card, returns the message that the RNDIS network interface card has been created to the PC end simultaneously.
304, the notice of the network connection service module on terminal PC end RNDIS network interface card is created.
305, the PC end shares local network to the RNDIS network interface card, and closes the DHCP(Dynamic Host Configuration Protocol of this network interface card, and DynamicHost is provided with agreement) function.
306, the PC end is provided with the local RNDIS network information.
Wherein, the RNDIS network information comprises network IP etc., and is similar with correlation technique herein, and this present embodiment is repeated no more.
307, the PC end is the terminal distribution RNDIS network information, and obtains relevant DNS information.
308, the PC end issues the configuration order of PC shared network to terminal.
In the present embodiment, PC end is the terminal distribution RNDIS network information, and obtains DNS information, and the mode by configuration order is handed down to terminal.
309, PC network share service module is provided with the RNDIS network information and corresponding D NS according to the configuration order that receives.
Wherein, the process that the RNDIS network information is set is the process of change terminal default gateway.
310, PC network share service module informing network connection management service module PC shared network successful connection.
311, the network connection management service module of terminal is updated to the shared online of PC with the current network connection status, and the variation of notice application layer network connection state.
In the present embodiment, start after the connection of PC shared network, the variation of notice application layer network connection state makes application layer upgrade the sign of current network connection status, the user knows that by the connection identifier of this network state current network connects, can surf the Net.
In the present embodiment, after having created the shared online connection of PC, the flow process that terminal IP packet is externally transmitted comprises: 1) terminal forwarding IP packet; 2) the IP packet sends to the default gateway of RNDIS network interface and terminal network through the RNDIS network interface; 3) the network connection service module is intercepted and captured the IP packet at default gateway place, and the IP packet is forwarded to the local network connection of PC end.Wherein, terminal receives the flow process of IP packet for transmitting the adverse current journey of packet, repeats no more in this present embodiment.
In the present embodiment,, when the user closes the shared online of PC, can start following flow process referring to Fig. 4:
1, the PC end sends to PC network share service module by USB interface and goes to enable the shared online order of PC;
In this step, the user triggers PC and shares online and close sign, after the PC end detects this sign and is triggered, sends to PC network share service module and to close the request that PC shares online, comprises in this request that enabling PC shares online order.
2, the shared service on net module of the PC on the terminal receives and goes to enable the shared online order of PC, and informing network Connection Service module is closed USB shared network function;
3, network connection service module deletion RNDIS network interface card upgrades current network connection state, the variation of notifying the application layer network to connect simultaneously;
When application layer is known the variation of network connection, upgrade the network connection identifier, unavailable to inform user's current network.
4, the network connection service module is held the change notification that network connects to PC.
5, PC holds the RNDIS network interface card that resets, and removes the shared relationship of local network and RNDIS network interface card.
The beneficial effect of present embodiment is: when the user triggers the shared online of PC, multiplexing PC shares the passage that online is set up, PC holds automatic triggering terminal to create the RNDIS network interface card, and it is shared to the shared online of RNDIS network interface card realization PC by outer net is connected, wherein do not need user's manual configuration network to connect, simple to operate, be easy to realize, for the user provides a kind of broadband access network mode.
Embodiment four
Referring to Fig. 5, a kind of terminal is provided in the present embodiment, this terminal links to each other with PC by USB, comprising: receiver module 401, acquisition module 402 and modular converter 403.
Receiver module 401 is used to receive the default call request of using network;
Acquisition module 402 is used to obtain current network connection type;
Modular converter 403, be used for when described current network connection type is the connection of personal computer PC shared network, described PC shared network is converted to default network, makes described default application know that local network is connected to described default network connection and allows calling of described default application.
In another embodiment, described acquisition module 402 comprises:
Call unit is used for obtaining current network connection type when described call request during from application layer.
In another embodiment, referring to Fig. 6, described modular converter 403 comprises:
Call unit 403a is used to call default application programming interfaces;
Revise unit 403b, be used for the sign of described PC shared network being revised as the sign of default network, to realize that described PC shared network is converted to described default network by described default application programming interfaces.
In another embodiment, described default network comprises: Wireless Fidelity WI-FI network.
In another embodiment, referring to Fig. 7, described terminal also comprises:
Network connects creation module 404, is used for enabling the network share service of USB when receiving the request of creating the PC shared network, sets up shared network local and the PC end.
In another embodiment, referring to Fig. 7, described network connects creation module 404, comprising:
Creating unit 404a, be used to create telecommunication network driving interface standard RNDIS network interface card, and will return the message of creating described RNDIS network interface card to the PC end, described PC being held the network of described PC end is shared the dynamic host configuration protocol DHCP function of giving described RNDIS network interface card and closing described RNDIS network interface card, is terminal distribution the 2nd RNDIS network information and domain name system DNS information also with the RNDIS network information that described PC end is set;
Receiving element 404b is used to receive the configuration order that described PC end issues, and described configuration order comprises: described the 2nd RNDIS network information and described DNS information;
Dispensing unit 404c is used for according to described configuration order described the 2nd RNDIS network information and DNS information being set on described terminal, to set up the shared network of local and described PC end.
In another embodiment, referring to Fig. 7, described terminal also comprises:
Network connection closed module 405 is used for when receiving the request that disconnects the PC shared network, and the network share service of removing to enable USB disconnects shared network local and the PC end.
In another embodiment, referring to Fig. 7, described network connection closed module 405 comprises:
Delete cells 405a is used to delete the RNDIS network interface card, and will return the message of deleting described RNDIS network interface card to PC end, makes reset described RNDIS network interface card and remove the shared relationship of described PC end network and described RNDIS network interface card of PC end.
The beneficial effect of present embodiment is: receive the default call request of using network; Obtain current network connection type; When described current network connection type is the connection of PC shared network, described PC shared network is converted to default network, make described should preset to use know that local network is connected to described default network and connects and allow calling of described default application, thereby solved the problem that current some application program can not normally be used in the PC shared network.
Embodiment five
Referring to Fig. 8, the system that provides a kind of network to share in the present embodiment, comprising: as embodiment four described terminal 400 and personal computer PC 500, described terminal 400 links to each other by general-purpose serial bus USB with described PC500.
Described PC is used for sending the request of creating the PC shared network to described terminal;
Described terminal is used for enabling the network share service of general-purpose serial bus USB when receiving the request of described establishment PC shared network, sets up the shared network of local and described PC end.
In another embodiment, described PC also be used for when receive that described terminal returns create the message of telecommunication network driving interface standard RNDIS network interface card the time, the network of described PC end is shared the DHCP function of giving described RNDIS network interface card and closing described RNDIS network interface card, also be described terminal distribution the one RNDIS network information and DNS information with the RNDIS network information that described PC end is set, and a described RNDIS network information and described DNS information are sent to described terminal by configuration order.
In another embodiment, described PC also is used for sending the request that disconnects the PC shared network to described terminal;
Described terminal also is used for when receiving the request that disconnects described PC shared network, and the network share service of removing to enable USB disconnects shared network local and the PC end.
In another embodiment, described PC also be used for when receive that described terminal returns delete the message of described RNDIS network interface card the time, described RNDIS network interface card and remove the shared relationship of described PC end network and described RNDIS network interface card resets.
The beneficial effect of present embodiment is: receive the default call request of using network; Obtain current network connection type; When described current network connection type is the connection of PC shared network, described PC shared network is converted to default network, make described should preset to use know that local network is connected to described default network and connects and allow calling of described default application, thereby solved the problem that current some application program can not normally be used in the PC shared network.
Need to prove: the system that terminal that the foregoing description provides and network are shared, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the internal structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.
In addition, the method embodiment that system that the network that the foregoing description provides is shared and terminal and network are shared belongs to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
The all or part of step that one of ordinary skill in the art will appreciate that realization the foregoing description can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (21)

1. the method shared of a network is characterized in that described method comprises:
Receive the default call request of using network;
Obtain current network connection type;
When described current network connection type is the connection of personal computer PC shared network, described PC shared network is converted to default network, make described default application know that local network is connected to described default network and allows calling of described default application.
2. method according to claim 1 is characterized in that, describedly obtains current network connection type, in the following way:
When described call request during, obtain current network connection type from application layer.
3. method according to claim 1 is characterized in that, described described PC shared network is converted to default network, in the following way:
Call default application programming interfaces;
By described preset interface the sign of described PC shared network is revised as the sign of default network, to realize that described PC shared network is converted to described default network.
4. method according to claim 1 is characterized in that, described default network comprises: Wireless Fidelity WI-FI network.
5. method according to claim 1 is characterized in that, described method also comprises:
When receiving the request of creating the PC shared network, enable the network share service of general-purpose serial bus USB, set up shared network local and the PC end.
6. method according to claim 5 is characterized in that, the shared network of described foundation and PC end, in the following way:
Create telecommunication network driving interface standard RNDIS network interface card, and will return the message of creating described RNDIS network interface card to the PC end, PC being held the network of described PC end is shared the dynamic host configuration protocol DHCP function of giving described RNDIS network interface card and closing described RNDIS network interface card, is terminal distribution the 2nd RNDIS network information and DNS information also with the RNDIS network information that described PC end is set;
Receive the configuration order that described PC end issues, described configuration order comprises: described the 2nd RNDIS network information and described DNS information;
According to described configuration order described the 2nd RNDIS network information and DNS information are set on described terminal, to set up the shared network of local and described PC end.
7. method according to claim 1 is characterized in that, described method also comprises:
When receiving the request that disconnects the PC shared network, the network share service of removing to enable USB disconnects shared network local and the PC end.
8. method according to claim 7 is characterized in that, the shared network of described disconnection and PC end, in the following way:
Deletion RNDIS network interface card, and will return the message of deleting described RNDIS network interface card to the PC end makes reset described RNDIS network interface card and remove the shared relationship of described PC end network and described RNDIS network interface card of PC end.
9. a terminal is characterized in that, described terminal links to each other with personal computer PC by general-purpose serial bus USB, comprising:
Receiver module is used to receive the default call request of using network;
Acquisition module is used to obtain current network connection type;
Modular converter, be used for when described current network connection type is the connection of personal computer PC shared network, described PC shared network is converted to default network, makes described default application know that local network is connected to described default network connection and allows calling of described default application.
10. terminal according to claim 9 is characterized in that, described acquisition module comprises:
Call unit is used for obtaining current network connection type when described call request during from application layer.
11. terminal according to claim 9 is characterized in that, described modular converter comprises:
Call unit is used to call default application programming interfaces;
Revise the unit, be used for the sign of described PC shared network being revised as the sign of default network, to realize that described PC shared network is converted to described default network by described default application programming interfaces.
12. terminal according to claim 9 is characterized in that, described default network comprises: Wireless Fidelity WI-FI network.
13. terminal according to claim 9 is characterized in that, described terminal also comprises:
Network connects creation module, is used for enabling the network share service of USB when receiving the request of creating the PC shared network, sets up shared network local and the PC end.
14. terminal according to claim 13 is characterized in that, described network connects creation module, comprising:
Creating unit, be used to create telecommunication network driving interface standard RNDIS network interface card, and will return the message of creating described RNDIS network interface card to the PC end, described PC being held the network of described PC end is shared the dynamic host configuration protocol DHCP function of giving described RNDIS network interface card and closing described RNDIS network interface card, is terminal distribution the 2nd RNDIS network information and domain name system DNS information also with the RNDIS network information that described PC end is set;
Receiving element is used to receive the configuration order that described PC end issues, and described configuration order comprises: described the 2nd RNDIS network information and described DNS information;
Dispensing unit is used for according to described configuration order described the 2nd RNDIS network information and DNS information being set on described terminal, to set up the shared network of local and described PC end.
15. terminal according to claim 9 is characterized in that, described terminal also comprises:
Network connection closed module is used for when receiving the request that disconnects the PC shared network, and the network share service of removing to enable USB disconnects shared network local and the PC end.
16. terminal according to claim 15 is characterized in that, described network connection closed module comprises:
Delete cells is used to delete the RNDIS network interface card, and will return the message of deleting described RNDIS network interface card to PC end, makes reset described RNDIS network interface card and remove the shared relationship of described PC end network and described RNDIS network interface card of PC end.
17. the system that network is shared, it is characterized in that described system comprises: as claim 8-14 each described terminal and personal computer PC, described terminal links to each other by general-purpose serial bus USB with described PC.
18. system according to claim 17 is characterized in that,
Described PC is used for sending the request of creating the PC shared network to described terminal;
Described terminal is used for enabling the network share service of general-purpose serial bus USB when receiving the request of described establishment PC shared network, sets up the shared network of local and described PC end.
19. system according to claim 18 is characterized in that,
Described PC also be used for when receive that described terminal returns create the message of telecommunication network driving interface standard RNDIS network interface card the time, the network of described PC end is shared the DHCP function of giving described RNDIS network interface card and closing described RNDIS network interface card, also be described terminal distribution the one RNDIS network information and DNS information with the RNDIS network information that described PC end is set, and a described RNDIS network information and described DNS information are sent to described terminal by configuration order.
20. system according to claim 17 is characterized in that,
Described PC also is used for sending the request that disconnects the PC shared network to described terminal;
Described terminal also is used for when receiving the request that disconnects described PC shared network, and the network share service of removing to enable USB disconnects shared network local and the PC end.
21. system according to claim 20 is characterized in that,
Described PC also be used for when receive that described terminal returns delete the message of described RNDIS network interface card the time, described RNDIS network interface card and remove the shared relationship of described PC end network and described RNDIS network interface card resets.
CN201310118974.5A 2013-04-08 2013-04-08 The method of network share, equipment and system Active CN103220283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310118974.5A CN103220283B (en) 2013-04-08 2013-04-08 The method of network share, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310118974.5A CN103220283B (en) 2013-04-08 2013-04-08 The method of network share, equipment and system

Publications (2)

Publication Number Publication Date
CN103220283A true CN103220283A (en) 2013-07-24
CN103220283B CN103220283B (en) 2017-03-01

Family

ID=48817747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310118974.5A Active CN103220283B (en) 2013-04-08 2013-04-08 The method of network share, equipment and system

Country Status (1)

Country Link
CN (1) CN103220283B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532802A (en) * 2013-10-11 2014-01-22 小米科技有限责任公司 Method and device for network sharing, and terminal equipment
CN103559031A (en) * 2013-10-29 2014-02-05 乐视致新电子科技(天津)有限公司 Compatible method of application program and electronic equipment
CN104333867A (en) * 2014-12-02 2015-02-04 上海斐讯数据通信技术有限公司 Method and device for sharing PC network by virtue of mobile phone
CN106651555A (en) * 2016-09-28 2017-05-10 山东浪潮商用系统有限公司 Method for online billing machine to share network, online billing machine, and system for online billing machine to share network
CN108494639A (en) * 2018-02-09 2018-09-04 维沃移动通信有限公司 Network access method and mobile terminal
CN113543147A (en) * 2021-07-16 2021-10-22 杭州迈冲科技有限公司 Ethernet sharing method based on Android system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860534A (en) * 2010-05-20 2010-10-13 北京星网锐捷网络技术有限公司 Method and system for switching network, access equipment and authentication server
CN101980578A (en) * 2010-10-15 2011-02-23 华为终端有限公司 Method for sharing mobile network and mobile terminal
CN102056329A (en) * 2009-11-04 2011-05-11 中国移动通信集团公司 Method and device for connecting and managing multiple APs (access points)
CN102394920A (en) * 2011-10-24 2012-03-28 深圳市智慧宇宙管理咨询有限公司 Method, mobile terminal and computer for sharing computer network
WO2013013578A1 (en) * 2011-07-27 2013-01-31 华为终端有限公司 Method for updating data card, personal computer and data card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102056329A (en) * 2009-11-04 2011-05-11 中国移动通信集团公司 Method and device for connecting and managing multiple APs (access points)
CN101860534A (en) * 2010-05-20 2010-10-13 北京星网锐捷网络技术有限公司 Method and system for switching network, access equipment and authentication server
CN101980578A (en) * 2010-10-15 2011-02-23 华为终端有限公司 Method for sharing mobile network and mobile terminal
WO2013013578A1 (en) * 2011-07-27 2013-01-31 华为终端有限公司 Method for updating data card, personal computer and data card
CN102394920A (en) * 2011-10-24 2012-03-28 深圳市智慧宇宙管理咨询有限公司 Method, mobile terminal and computer for sharing computer network

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532802A (en) * 2013-10-11 2014-01-22 小米科技有限责任公司 Method and device for network sharing, and terminal equipment
CN103559031A (en) * 2013-10-29 2014-02-05 乐视致新电子科技(天津)有限公司 Compatible method of application program and electronic equipment
CN104333867A (en) * 2014-12-02 2015-02-04 上海斐讯数据通信技术有限公司 Method and device for sharing PC network by virtue of mobile phone
CN106651555A (en) * 2016-09-28 2017-05-10 山东浪潮商用系统有限公司 Method for online billing machine to share network, online billing machine, and system for online billing machine to share network
CN108494639A (en) * 2018-02-09 2018-09-04 维沃移动通信有限公司 Network access method and mobile terminal
CN113543147A (en) * 2021-07-16 2021-10-22 杭州迈冲科技有限公司 Ethernet sharing method based on Android system
CN113543147B (en) * 2021-07-16 2024-02-13 杭州迈冲科技有限公司 Ethernet sharing method based on Android system

Also Published As

Publication number Publication date
CN103220283B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN110995554A (en) Method and device for configuring and accessing intelligent household electrical appliance network and storage medium
CN104254070B (en) WiFi cut-in method, intelligent terminal and routing device
CN103220283A (en) Method, equipment and system for network sharing
CN106789468A (en) A kind of appliances equipment control method and system based on intelligent terminal
CN106462424A (en) Method for updating terminal system, terminal and system
CN103079286A (en) Method and device for intelligently disconnecting wifi (wireless fidelity) hot points
CN101977382A (en) Audio and video integrated control circuit and method for accessing access point
CN109981360B (en) Internet of things equipment site opening method, device and system and storage medium
CN103731562B (en) For the method and apparatus of smart machine Adaptive matching bluetooth equipment
CN101702836A (en) Method and device for establishing dial-up service
CN105072149A (en) Method and device for building remote communication through proxy gateway
CN103763754A (en) Method, device and system for processing data
CN102148876A (en) Access point switching method and device on iOS
CN102111728B (en) Network connection management module and method of mobile terminal
CN104918298A (en) Network connection control method and apparatus, and mobile terminal
CN109246762A (en) A kind of local service shunt method and device
CN104519482A (en) Equipment parameter configuration method and device
CN102833782A (en) Method, device and system for acquiring error code information
CN104202737A (en) Method for saving traffic of wireless router terminal
CN103987075A (en) Method for adding Internet access device with mobile phone APP
CN105721189A (en) Network port configuration method and device for network equipment
CN102710672B (en) The access method of data card form web page control inerface and system
CN106452828A (en) Provision protocol transmission-based terminal configuration method and system
CN105072148A (en) Method and device for building connection with terminal
CN103051484B (en) Session service processing method, system and Session Border Controll

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Xiaomi Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant