CN106161147B - Establish the method and device of network connection - Google Patents

Establish the method and device of network connection Download PDF

Info

Publication number
CN106161147B
CN106161147B CN201510148795.5A CN201510148795A CN106161147B CN 106161147 B CN106161147 B CN 106161147B CN 201510148795 A CN201510148795 A CN 201510148795A CN 106161147 B CN106161147 B CN 106161147B
Authority
CN
China
Prior art keywords
gateway
networked devices
physical address
device identification
identity information
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.)
Active
Application number
CN201510148795.5A
Other languages
Chinese (zh)
Other versions
CN106161147A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510148795.5A priority Critical patent/CN106161147B/en
Publication of CN106161147A publication Critical patent/CN106161147A/en
Application granted granted Critical
Publication of CN106161147B publication Critical patent/CN106161147B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of method and devices for establishing network connection, belong to field of computer technology.Method includes: the physical address for receiving at least carrying gateway that gateway is sent and the physical address checking request to networked devices;When the physical address according to gateway, the physical address to networked devices, first database and the second database, judge that gateway with after networked devices belong to same user, sends instruction message to gateway.The corresponding relationship of the device identification and physical address corresponding relationship and device identification and subscriber identity information that are provided the present invention is based on server, determine gateway and the ownership to networked devices, and determine gateway with after networked devices belong to same user, the instruction message for establishing connection is sent to gateway, the setting operation of any complexity is executed without user, gateway and the automatic connection to networked devices can be realized, operation complexity is not only simplified, and improves the information security for establishing each equipment of connection.

Description

Establish the method and device of network connection
Technical field
The present invention relates to computer field, in particular to a kind of method and device for establishing network connection.
Background technique
With the development of computer technology, more and more there is network connecting function, e.g., intelligent camera to networked devices Head, intelligent air condition, Intelligent home theater, Intelligent lamp etc..When being connected to network to networked devices, user passes through the net in terminal Network browser can know the working condition to networked devices at any time.For example, user is mounted with intelligent video camera head in office, and will The intelligent video camera head is connected to network, and user can check intelligent video camera head by web browser on PC whenever and wherever possible The picture of shooting.And in the process, how to establish to the connection between networked devices and network, can become watch intelligence The key of the picture of energy camera shooting.
For establishing the connection between intelligent video camera head and network, user needs first will be intelligent by cable and router Camera is connected to local area network, however according to the guidance of network settings, the intelligence is taken the photograph on the setting page of intelligent video camera head As head is attached setting, finally intelligent video camera head is connected in network.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
It is above-mentioned establish intelligent video camera head it is connected to the network during, user needs accurately drawing according to network settings It leads and is configured, it is cumbersome, and complexity is higher.
Summary of the invention
In order to solve the problems, such as the relevant technologies, the embodiment of the invention provides a kind of method for establishing network connection and dresses It sets.The technical solution is as follows:
In a first aspect, providing a kind of method for establishing connection, which comprises
The checking request that gateway is sent is received, the physical address of the gateway and described is at least carried in the checking request Physical address to networked devices;
According to the physical address of the gateway, described to the physical address of networked devices, first database and the second data Library, corresponding first subscriber identity information of physical address and the physical address to networked devices for inquiring the gateway are corresponding Second user identity information, pair between the device identification and physical address of each equipment is stored in the first database It should be related to, the corresponding relationship between the device identification and subscriber identity information of each equipment is stored in second database;
If the gateway belongs to same user to networked devices with described, Xiang Suoshu gateway sends instruction message, the finger Show that message is used to indicate the gateway and the physical address to networked devices is added to connection list.
Second aspect provides a kind of method for establishing network connection, which comprises
Receive connection request to networked devices, at least carried in the connection request it is described to networked devices physically Location;
Based on the connection request, checking request is sent to server, is at least carried in the checking request described wait join The physical address of net equipment and the physical address of gateway;
When receiving the instruction message that the server is sent, connection is established to networked devices with described, the instruction disappears Breath, to the physical address of networked devices and the physical address of gateway, is determining the gateway and institute according to described by the server State transmission when networked devices belong to same user.
The third aspect, provides a kind of for establishing the server of network connection, and the server includes:
First receiving module at least carries the net in the checking request for receiving the checking request of gateway transmission The physical address of pass and the physical address to networked devices;
The server is also used to the physical address according to the gateway, the physical address to networked devices, first Database and the second database are inquired corresponding first subscriber identity information of physical address of the gateway and described are set wait network The corresponding second user identity information of standby physical address, store in the first database device identification of each equipment with Corresponding relationship between physical address stores device identification and the subscriber identity information of each equipment in second database Between corresponding relationship;
First sending module, for it ought be determined according to first subscriber identity information and the second user information described in Gateway belongs to same user to networked devices with described, and Xiang Suoshu gateway sends instruction message, and the instruction message is used to indicate The physical address to networked devices is added to connection list by the gateway.
Fourth aspect, provides a kind of gateway, and the gateway includes:
Receiving module at least carries described wait join for receiving the connection request to networked devices in the connection request The physical address of net equipment;
First sending module sends checking request to server, in the checking request for being based on the connection request It at least carries described to the physical address of networked devices and the physical address of gateway;
Link block, for connecting with described established to networked devices when receiving the instruction message that the server is sent It connects, the instruction message is described to the physical address of networked devices and the physical address of gateway in basis by the server, really The fixed gateway and transmission when networked devices belong to same user.
Technical solution provided in an embodiment of the present invention has the benefit that
Device identification and physical address corresponding relationship and device identification and subscriber identity information based on server offer Corresponding relationship is capable of determining that gateway and the ownership to networked devices, and is determining gateway and belonging to same use to networked devices Behind family, the instruction message for establishing connection is sent to gateway, the setting operation of any complexity is executed without user It realizes gateway and the automatic connection to networked devices, not only simplifies operation complexity, and improve and establish each of connection The information security of equipment.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the schematic diagram of implementation environment involved in the method provided in an embodiment of the present invention for establishing network connection;
Fig. 2 is a kind of method flow diagram for establishing network connection provided by one embodiment of the present invention;
Fig. 3 is a kind of method flow diagram for foundation network connection that another embodiment of the present invention provides;
Fig. 4 is a kind of method flow diagram for foundation network connection that another embodiment of the present invention provides;
Fig. 5 is that another embodiment of the present invention provides the schematic diagram for establishing method for connecting network;
Fig. 6 is a kind of structural schematic diagram for server that another embodiment of the present invention provides;
Fig. 7 is a kind of structural schematic diagram for gateway that another embodiment of the present invention provides;
Fig. 8 is a kind of structural schematic diagram of the terminal for foundation network connection that another embodiment of the present invention provides;
Fig. 9 is the block diagram of the device for the foundation network connection that another embodiment of the present invention provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
It with the development of computer technology, is more and more connectable in network to networked devices, for example, intelligence electricity Lamp, intelligent small household appliances, intelligent electric meter, Intelligent home theater, intelligent network adapter, reset button (reset button or reboot button) etc. Deng.Usually these need to carry out a series of connection setting when networked devices when being connected in network, and process operation is multiple It is miscellaneous, need user to have certain network knowledge, learning cost is higher, and in the provisioning process, be easy to cause omission or fault, even The success rate connect is lower.
In order to simplify the complexity of connection, the present embodiment provides a kind of foundation based on implementation environment shown in FIG. 1 The method of network connection.Referring to Fig. 1, the implementation environment is by producer's shipment data library 101, businessman's shipment data library 102, server 103, gateway 104, form to networked devices 105, to networked devices 106, to networked devices 107 and mobile terminal 108.
In the present embodiment, equipment manufacturer is producing each when networked devices, all can will be each to networked devices Mark of allocating a device and physical address are written in a chip, and when networked devices dispatch from the factory, equipment manufacturer can be incited somebody to action It is each recorded in corresponding table to the device identification of networked devices with physical address, and by the equipment mark to networked devices of record Know and uploads to producer's shipment data library 101 with the corresponding table of physical address, in all embodiments of invention, producer's shipment data Library 101 is first database.Network service interface according to device identification inquiry physical address is provided simultaneously.Equipment vendor exists It treats in networked devices sales process, also will record subscriber identity information of the purchase to each user of networked devices, for example, with The name at family, identification card number, passport No., telephone number, Instant Messenger signal etc. information, and by each equipment to networked devices Mark uploads to businessman's shipment data library 102 with the corresponding table of subscriber identity information, in all embodiments of invention, Shang Jiafa Goods database 102 is the second database.The network interface identified by subscriber identity information query facility is provided simultaneously for user.
In the present embodiment, server 103 may have access to producer's shipment data library 101 and businessman's shipment data library 102, and from Data are got in producer's shipment data library 101 and businessman's shipment data library 102.The gateway 104 can be router, lead to It crosses software and opens the host of routing function or the network switch with L3 Switching function.The present embodiment is with gateway 104 is are illustrated for router.It can be to networked devices 105, to networked devices 106, to networked devices 107 with knowledge The equipment of other function.For example, the wireless network camera, network printer, network facsimile machine, wireless should be can be to networked devices Network node, instrument and meter or signal repeater etc..Mobile terminal 108 is with the electronic equipment for issuing function.The electronics Equipment can be smart phone, tablet computer, remote controler, projector, E-book reader, Intelligent flashlight and on knee portable Computer etc..
In the present embodiment, it is all had to networked devices 105, to networked devices 106, to networked devices 107 and gateway logical Cross the ability that network mode or radio frequency method are communicated with other equipment.
Above-mentioned producer's shipment data library 101, businessman's shipment data library 102, server 103 can be by cable networks or wireless Network is attached.
In conjunction with above-mentioned implementation environment shown in FIG. 1, the embodiment of the invention provides a kind of method for establishing network connection, ginsengs See that Fig. 2, method flow provided in an embodiment of the present invention include:
201, the checking request that gateway is sent is received, at least carries the physical address of gateway in the checking request and wait network The physical address of equipment.
202, according to the physical address of gateway, the physical address to networked devices, first database and the second database, sentence Suspension closes and whether belongs to same user to networked devices, and device identification and the object of each equipment are stored in the first database The corresponding relationship between address is managed, between the device identification and subscriber identity information that each equipment is stored in second database Corresponding relationship.
If 203, gateway with to networked devices belong to same user, send instruction message to gateway, which is used for Indicate that the physical address to networked devices is added to connection list by gateway.
In method provided in an embodiment of the present invention, the device identification and physical address corresponding relationship that are provided based on server and The corresponding relationship of device identification and subscriber identity information is capable of determining that gateway and the ownership to networked devices, and is determining net It closes with after networked devices belong to same user, sends the instruction message for establishing connection to gateway, held without user The setting operation of any complexity of row, can be realized gateway and the automatic connection to networked devices, not only simplifies operation complexity, And improve the information security for establishing each equipment of connection.
In another embodiment of the present invention, according to the physical address of gateway, to networked devices physical address, first Database and the second database judge gateway and whether belong to same user to networked devices, comprising:
Corresponding first device identification of physical address for inquiring gateway from first database and the physics to networked devices Corresponding second device identification in address;
Corresponding first subscriber identity information of the first device identification and the second device identification pair are inquired from the second database The second user identity information answered;
First subscriber identity information is compared with second user identity information;
If the first subscriber identity information is identical as second user identity information, it is determined that gateway and belong to together to networked devices One user.
In another embodiment of the present invention, the physical address corresponding first that gateway is inquired from first database is set Standby mark and corresponding second device identification of physical address to networked devices, comprising:
Inquiry request is sent to first database, at least carries the physical address of gateway in inquiry request and to networked devices Physical address inquire the physics of gateway by first database from the corresponding relationship of the device identification of storage and physical address Corresponding first device identification in address and corresponding second device identification of physical address to networked devices;
Receive the first device identification and the second device identification that first database is sent.
In another embodiment of the present invention, corresponding first user of the first device identification is inquired from the second database Identity information and the corresponding second user identity information of the second device identification, comprising:
Inquiry request is sent to the second database, at least carries the first device identification and the second equipment mark in inquiry request Know, by the second database from the corresponding relationship of the device identification of storage and subscriber identity information, inquires the first device identification pair The corresponding second user identity information of the first subscriber identity information and the second device identification answered;
Receive the first subscriber identity information and second user identity information of the transmission of the second database.
In another embodiment of the present invention, first database is safeguarded by equipment manufacturer.
In another embodiment of the present invention, the second database is safeguarded by equipment vendor.
In another embodiment of the present invention, this method further include:
The inquiry request of third user is received, the subscriber identity information of third user is at least carried in inquiry request;
According to third subscriber identity information, the corresponding third equipment of third subscriber identity information is inquired from the second database Mark;
According to third device identification, the corresponding physical address of third device identification is inquired from the first data,
Third device identification and the corresponding physical address of third device identification are sent to third user.
In another embodiment of the present invention, after sending instruction message to gateway, further includes:
The locking request that fourth user is sent is received, at least carries fourth user identity information in locking request;
According to fourth user identity information, corresponding 4th equipment of fourth user identity information is inquired from the second database Mark;
By the corresponding 4th networked devices locking of the 4th device identification.
In another embodiment of the present invention, it by after the corresponding 4th networked devices locking of the 4th device identification, goes back Include:
When detecting that the 4th networked devices establish connection, the IP address of the 4th networked devices is obtained;
According to the IP address of the 4th networked devices, the 4th networked devices are positioned.
In another embodiment of the present invention, after sending instruction message to gateway, further includes:
When the operating system for detecting local terminal has update, update is sent to the networked devices for establishing connection with gateway and is disappeared Breath is updated according to update message the operating system of itself by networked devices.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
In conjunction with above-mentioned implementation environment shown in FIG. 1, the embodiment of the invention provides a kind of method for establishing network connection, ginsengs See that Fig. 3, method flow provided in this embodiment include:
301, the connection request to networked devices is received, the physical address to networked devices is at least carried in connection request.
302, it is based on connection request, checking request is sent to server, is at least carried to networked devices in checking request The physical address of physical address and gateway.
303, when receiving the instruction message that server is sent, connection is established with to networked devices, the instruction message is by taking Device be engaged according to the physical address of networked devices and the physical address of gateway, determines gateway and belongs to same use to networked devices It is sent when family.
Method provided in an embodiment of the present invention, receives the instruction message that server is sent, which is server base In the device identification of offer and physical address corresponding relationship and the corresponding relationship of device identification and subscriber identity information, can determine Gateway and the ownership to networked devices out, and determining gateway and transmission when networked devices belong to same user, and then basis The instruction message establishes connection with to networked devices.Due to executing any complexity without user during this establishes connection Setting operation, gateway and the automatic connection to networked devices can be realized, therefore, not only simplify operation complexity, and Improve the information security for establishing each equipment of connection.
In another embodiment of the present invention, before receiving to the connection request of networked devices, further includes:
It broadcasts the message to being sent to networked devices, broadcast message is for notifying to the networked devices gateway to be attachable net It closes.
It in another embodiment of the present invention, is network connection or bluetooth connection with the connection established to networked devices.
In another embodiment of the present invention, it is established after connection with to networked devices, further includes:
It sends a notification message to networked devices, notification message has established connection with gateway to networked devices for notifying.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer It repeats one by one.
In conjunction with above-mentioned implementation environment shown in FIG. 1, the embodiment of the invention provides a kind of method for establishing network connection, ginsengs See Fig. 4, for executing the present embodiment to networked devices, gateway and server, method flow packet provided in an embodiment of the present invention It includes:
401, under open state, attachable gateway is inquired to networked devices.
In the present embodiment, have to networked devices and gateway and carried out by radio frequency method or network mode and other equipment The ability of communication, be based on this kind of ability, to networked devices under open state, for example, to networked devices in the process of running or To by device discovery procedure, attachable gateway be identified from surrounding devices, with this under networked devices init state Meanwhile gateway can also broadcast the message to sending to networked devices, mutually find with to networked devices.
For to ability possessed by networked devices and gateway, the mode of gateway can be connected to networked devices inquiry, just like Under it is several:
First way, after networked devices booting after, automatically into inquiry state, inquire after around be in open state net It closes, and using the gateway inquired after as attachable gateway.
The second way, gateway regularly send broadcast message, after networked devices are switched on, receive gateway transmission around Broadcast message broadcast message is carried out into source gateway as attachable gateway and according to the broadcast message received.
In open state to networked devices around the third mode, gateway detection, a certain set wait network when detecting It is standby to be in open state, be in sending to networked devices for open state to this and broadcast the message, when receive gateway send it is wide When broadcasting message, broadcast message should be carried out into source gateway as attachable net to networked devices according to the broadcast source received It closes.
Attachable gateway is checked for the ease of user, will also show attachable net in the display interface to networked devices The attribute information of pass, for example, attachable gateway name, attachable gateway configuration parameters etc..In practical applications, wait join Net equipment may inquire multiple attachable gateways, when showing these attachable gateways in the display interface at this time, can press It is shown according to gateway and the distance to networked devices, for example, showing the distance gateway nearest to networked devices most Front shows the distance gateway farthest to networked devices backmost;It can also be according to whether setting password, by not set company The gateway for connecing password is shown up front, and the gateway for being provided with connection password is shown backmost;It can also believe according to gateway Number transmitting power shown, shown up front for example, the strongest gateway of signal will be emitted, the weaker net of signal will be emitted Pass is shown in backmost.It is, of course, also possible to be shown using other modes, no longer illustrate one by one herein.
402, connection request is sent to any attachable gateway to networked devices, at least carried in the connection request wait join The physical address of net equipment.
In computer field, gateway is gateway, is the critical point an of network and another network connection, Ren Yishe For to be connected in network, requires elder generation and gateway establishes connection.Therefore, when user thinks that network will be connected to networked devices In, user needs to choose an attachable gateway on the display interface to networked devices, and sends to the gateway of the selection Connection request.Wherein, the physical address etc. to networked devices can be carried in connection request, physical address can be MAC (Media Access Control, media access control) address etc..
403, it is based on connection request, which sends checking request to server, at least carry in the checking request wait join The physical address of net equipment and the physical address of gateway.
In the present embodiment, gateway could be established after the link order for receiving server transmission with to networked devices Connection, and the premise that server sends link order is to be verified to gateway with to networked devices.Therefore, in order to Networked devices establish connection, and after receiving the connection request to networked devices transmission, gateway, which needs to send to server, to be tested Card request, so that server after receiving the checking request, can verify this connection.Wherein, in checking request At least carry to the physical address of networked devices and the physical address of gateway.
404, when receive gateway transmission checking request, server according to the physical address of gateway, to networked devices Physical address, first database and the second database judge the gateway and to networked devices whether belong to same user, if so, Then follow the steps 405.
In the present embodiment, in production, equipment manufacturer's each equipment can will allocate a device for each equipment Mark and physical address, when equipment factory, equipment manufacturer will record device identification and the physical address of each equipment, and will The device identification of record and the corresponding relationship of physical address upload to first database, which needs equipment manufacturer It is safeguarded, for example, regularly updating, inspecting periodically, upgrade-system etc..Simultaneously for the ease of user query, equipment manufacturer The network service interface that physical address is inquired according to device identification is also provided for user.In addition, each equipment sale when, if Standby retailer will record the subscriber identity information of each user of purchase of equipment, for example, name, identification card number, passport No., phone Number, Instant Messenger signal etc., and the corresponding relationship of the device identification of each equipment and subscriber identity information is uploaded to second Database, second database need the retailer of equipment to safeguard, for example, regularly updating, inspecting periodically, upgrade-system etc. Deng.Simultaneously for the ease of user query, equipment vendor also provides the net identified by subscriber identity information query facility for user Network service interface.Certainly, in order to reduce workload, reduce working strength, equipment vendor can also be identified record, uploading device Work with subscriber identity information corresponding relationship transfers to third party to execute, the object which can be as equipment vendor delivery Stream company etc..
Since the safety communicated between the distinct device of same user is higher, carried out between the distinct device of different user There may be the hidden danger of leakage privacy of user for communication, and server treats networked devices in the present embodiment and can gateway the company of foundation The verifying done connect, in order to ensure user information safety, and it is corresponding due to store device identification in first database The corresponding subscriber identity information of device identification is store in physical address, the second database, therefore, based on first database and the Two databases, when receive gateway transmission checking request when, server can according to the physical address of gateway, to networked devices Physical address, first database and the second database judge gateway and whether belong to same user to networked devices.
Include but is not limited to such as under type when specific verifying:
(1), server inquires corresponding first device identification of physical address of gateway from first database and wait network Corresponding second device identification of the physical address of equipment.
Due to carried in checking request be physical address and gateway to networked devices physical address, and in order to judge Whether belong to same user to networked devices and gateway out, needs to get to the corresponding subscriber identity information of networked devices and net Corresponding subscriber identity information is closed, and stores the corresponding relationship between device identification and physical address in first database, the It stores the corresponding relationship between device identification and subscriber identity information in two databases, therefore, when receiving checking request, takes Business device needs to send inquiry request to first database.The physical address of gateway is at least carried in the inquiry request and is set wait network Standby physical address.When first database receives inquiry request, first database can from the device identification of storage with physically In the corresponding relationship of location, inquires corresponding first device identification of physical address of gateway and the physical address to networked devices corresponds to The second device identification, and the first device identification inquired and the second device identification are sent to server.
(2), corresponding first subscriber identity information of the first device identification and the second equipment mark are inquired from the second database Know corresponding second user identity information.
Based on the first device identification and the second device identification received, server will send inquiry to the second database and ask It asks.The first device identification and the second device identification inquired is at least carried in the inquiry request.When receiving inquiry request, Under the triggering of inquiry request, the second database can be from the corresponding relationship of the device identification of storage and subscriber identity information, inquiry Corresponding first subscriber identity information of first device identification and the corresponding second user identity information of the second device identification, and will look into The first subscriber identity information and second user identity information ask are sent to server.
(3), the first subscriber identity information is compared with second user identity information, if the first subscriber identity information with Second user identity information is identical, it is determined that gateway with to networked devices belong to same user.
Based on the first subscriber identity information and second user identity information received, server can be by the first user identity Information is compared with second user identity information, if the first subscriber identity information is identical as second user identity information, really Determine gateway and belongs to same user to networked devices.
In addition, when the first subscriber identity information and when second user identity information difference, server determine gateway with wait join Net equipment is not belonging to same user, and the checking request that gateway is sent can be ignored in server at this time, can also refuse gateway transmission Checking request, and refuse information is returned to gateway.Certainly, server can also take other modes, and the present embodiment comparison is not made It is specific to limit.It, at this time should be to due to not establishing connection with the gateway of selection in preset duration to networked devices in this process Networked devices will send connection request to other attachable gateways, until successful connection.If connecting to networked devices with all The gateway connect is not connected with successfully, and user, which can press, to be treated networked devices to the reset key on networked devices and reset, to adopt Other modes are taken to be attached with network.
It should be noted that the content in filled in identity information may not when buying networked devices every time due to user It is identical to the greatest extent, for example, the subscriber identity information that user when buying gateway in October, 2014, fills in is name, identification card number, mobile phone Number, Instant Messenger signal, for user when buying intelligent sound in December, 2014, the subscriber identity information filled in is name, identity card Number, cell-phone number, passport No., when user wants the intelligent sound newly bought and gateway establishing connection, server is from the second number It is name, identification card number, cell-phone number, Instant Messenger signal according to the first subscriber identity information is got in library, the second identity information is Name, identification card number, cell-phone number, passport No. substantially should although the first identity information and the second identity information be not identical Gateway and intelligent sound really belong to same user.For this kind of situation, server, can be by the first identity information when being verified It is compared with information same type of in the second identity information, when the information of some type is identical, it is determined that first uses Family identity information is identical as second user identity information, that is to say gateway and belongs to same user to networked devices.It is multiple when having The information of type correspond to it is identical, and the number of information type be more than default value, it is determined that the first subscriber identity information and second Subscriber identity information is identical, that is to say gateway and belongs to same user to networked devices.
It should be noted that above-mentioned be attached verifying to send connection request trigger the server to gateway to networked devices For be illustrated, in practical applications, if user want will to networked devices by being connected in network with gateway, user also It, by mobile terminal accessing server, can be inquired under user name with trigger the server when networked devices are in open state Be not attached in network to networked devices, and by mobile terminal display interface trigger inquiry instruction, inquire these and wait joining The device identification of net equipment and corresponding physical address, and then trigger the server sends link order to the gateway under user name, When these are when networked devices send connection request to gateway, gateway is not necessarily to the verifying of server, directly can wait networking with these Equipment establishes connection.In the process, for the ease of user query its under one's name to networked devices the case where, server will also receive The inquiry request of third user at least carries the subscriber identity information of third user in the inquiry request, according to third user's body Part information, server can inquire the corresponding third device identification of third subscriber identity information from the second database, later, according to Third device identification, server inquire the corresponding physical address of third device identification from the first data, and then by third equipment Mark and the corresponding physical address of third device identification are sent to third user.Certainly, third user can also be by other means Obtain identification codes such as the two dimensional code in third device identification, such as scanning third equipment etc..
405, server sends instruction message to the gateway.
When judging gateway and to networked devices belong to same user, server will send instruction message to gateway, this refers to Show that message is used to indicate gateway and the physical address to networked devices is added to connection list.The connection list can be gateway Memory linkage pond records multiple physical address to networked devices, and indicates that gateway waits for networked devices physically with these Connection relationship between location, for example, gateway corresponding networked devices of any physical address in receiving connection list can be indicated When the connection request of transmission, allows the networked devices to access, may further indicate that gateway is corresponding with physical address any in list Net equipment keeps connection etc..By the connection list, networked devices, can also in the case where off-mode or power-off suddenly Complete to be arranged with the connection of gateway, and gateway also need not active poll or connection networked devices, can not only save electric energy, but also Improve service performance and the safety of gateway.
406, when receiving the instruction message that server is sent, the gateway with to networked devices establish connection.
When the instruction message for receiving gateway transmission, this is waited for that the physical address of networked devices is added to connection list by gateway In, and wait for that networked devices establish connection with this.In the present embodiment, gateway and the connection established to networked devices can be network Connection can also connect for the near radios such as bluetooth connection, infrared.It is, of course, also possible to be the connection of other forms, this implementation Example does not limit this specifically.
After waiting for that networked devices establish connection with this, gateway can also wait for that networked devices send a notification message to this, this is logical Know message for notify to networked devices established connection with gateway so that user passes through after receiving the notification message Terminal browser checks that this waits for the working condition of networked devices.For example, user is mounted with intelligent video camera head in office, and pass through The intelligent video camera head is connected to network by method provided in this embodiment, can also be whenever and wherever possible a when user goes on business in other places The picture of intelligent video camera head shooting is checked on people's computer by web browser.
In order to avoid networked devices because loss causes user information to be revealed, connection in network is connected to when fourth user is any After net device losses, fourth user can also send locking request to server, at least carry fourth user body in the locking request Part information.When receiving the locking request of fourth user transmission, server can be according to fourth user identity information, from the second number It networks according to corresponding 4th device identification of inquiry fourth user identity information in library, and then by the 4th device identification the corresponding 4th Equipment locking, so that other users are difficult to use the 4th networked devices, even if other users can be used the 4th networking and set Standby, when detecting that the 4th networked devices establish connection, server can also obtain the IP address of the 4th networked devices, and according to this The IP address of 4th networked devices positions the 4th networked devices, so that user can recover the 4th networked devices.
Since the system version of server is to constantly update, after the system version of server updates, networked devices can The case where can connect to network can be will appear not, networked devices need for the operating system of itself to be updated at this time, for this purpose, working as When detecting the operating system of local terminal has update, server can send update message to the networked devices for establishing connection with gateway, So that networked devices can update the operating system of itself according to update message.
In order to be best understood from the process connecting to networked devices with gateway, will be illustrated for Fig. 5 below.
Equipment manufacturer will record the device identification of each equipment and the corresponding table of MAC when producing each equipment, and will The device identification of record uploads to producer's shipment data library, i.e. first database in the present embodiment with the corresponding table of MAC.Each For equipment in sale, equipment vendor equally will record the subscriber identity information of each user of purchase of equipment, and set each Standby device identification uploads to businessman's shipment data library with the corresponding table of subscriber identity information, i.e., the second data in the present embodiment Library.After networked devices booting, gateway wakes up networked devices by sending broadcast message to networked devices, so that networked devices are inquired To attachable gateway.If user wants for the networked devices to be connected in network, user can by mobile terminal accessing server, Know unregistered networked devices under one's name, so inquire networked devices device identification and corresponding physical address.Certainly, it uses Family can also choose a gateway on the display interface of networked devices, and send connection request to the gateway, based on what is received Connection request, gateway ask the verifying that the physical address of the physical address and gateway that at least carry networked devices is sent to server It asks, after receiving the instruction message of server return, shakes hands with the networked devices and complete connection.
Method provided in an embodiment of the present invention, device identification and the physical address corresponding relationship provided based on server and is set The corresponding relationship of standby mark and subscriber identity information, is capable of determining that gateway and the ownership to networked devices, and determining gateway With after networked devices belong to same user, the instruction message for establishing connection is sent to gateway, is executed without user The setting of any complexity operates, and gateway and the automatic connection to networked devices can be realized, not only simplify operation complexity, and And improve the information security for establishing each equipment of connection.On this basis, method provided in this embodiment is also supported pair To networked devices locking, recover, further increase information security.
Referring to Fig. 6, the embodiment of the invention provides a kind of server, which includes:
First receiving module 601 at least carries gateway in the checking request for receiving the checking request of gateway transmission Physical address and physical address to networked devices;
Judgment module 602, for the physical address according to gateway, the physical address to networked devices, first database and Second database judges gateway and whether belongs to same user to networked devices, each equipment is stored in the first database Device identification and physical address between corresponding relationship, the device identification and use of each equipment are stored in second database Corresponding relationship between the identity information of family.
First sending module 603 sends instruction to gateway and disappears for belonging to same user when gateway and to networked devices Breath, the instruction message are used to indicate gateway and the physical address to networked devices are added to connection list.
In another embodiment of the present invention, judgment module 602, comprising:
First query unit, for from first database inquire gateway corresponding first device identification of physical address and Corresponding second device identification of physical address to networked devices;
Second query unit, for inquiring corresponding first subscriber identity information of the first device identification from the second database And the second corresponding second user identity information of device identification;
Comparing unit, for the first subscriber identity information to be compared with second user identity information;
Determination unit, for when the first subscriber identity information is identical with second user identity information, determine gateway and to Networked devices belong to same user.
In another embodiment of the present invention, the first query unit is looked into for sending inquiry request to first database It askes in request and at least carries the physical address of gateway and the physical address to networked devices, by first database from the equipment of storage Mark inquires corresponding first device identification of physical address of gateway and to networked devices with the corresponding relationship of physical address Corresponding second device identification of physical address;Receive the first device identification and the second device identification that first database is sent.
In another embodiment of the present invention, the second query unit is looked into for sending inquiry request to the second database It askes in request and at least carries the first device identification and the second device identification, device identification and user by the second database from storage In the corresponding relationship of identity information, corresponding first subscriber identity information of the first device identification of inquiry and the second device identification are corresponding Second user identity information;Receive the first subscriber identity information and second user identity information of the transmission of the second database.
In another embodiment of the present invention, the first query unit the device identification for inquiring each equipment with physically Used first database is safeguarded by equipment manufacturer when corresponding relationship between location.
In another embodiment of the present invention, the second query unit is in device identification and the user's body for inquiring each equipment Used second database is safeguarded by equipment vendor when corresponding relationship between part information.
In another embodiment of the present invention, server further include:
Second receiving module at least carries third user's in inquiry request for receiving the inquiry request of third user Subscriber identity information;
First enquiry module, for inquiring third user identity from the second database according to third subscriber identity information The corresponding third device identification of information;
Second enquiry module, for it is corresponding to inquire third device identification from the first data according to third device identification Physical address,
Second sending module, for third device identification and the corresponding physical address of third device identification to be sent to third User.
In another embodiment of the present invention, the server, further includes:
Third receiving module at least carries the 4th use for receiving the locking request of fourth user transmission in locking request Family identity information;
Third enquiry module, for inquiring fourth user identity from the second database according to fourth user identity information Corresponding 4th device identification of information;
Equipment locking module, for locking corresponding 4th networked devices of the 4th device identification.
In another embodiment of the present invention, the server, further includes:
Module is obtained, for obtaining the IP address of the 4th networked devices when detecting that the 4th networked devices establish connection;
Locating module positions the 4th networked devices for the IP address according to the 4th networked devices.
In another embodiment of the present invention, the server, further includes:
Third sending module, for when the operating system for detecting local terminal has update, to the connection for establishing connection with gateway Net equipment sends update message, and the operating system of itself is updated according to update message by networked devices.
In conclusion server provided in an embodiment of the present invention, the device identification provided based on server and physical address The corresponding relationship of corresponding relationship and device identification and subscriber identity information is capable of determining that gateway and the ownership to networked devices, And determining gateway and after networked devices belong to same user, sending the instruction message for establishing connection to gateway, thus The setting operation that any complexity is executed without user, can be realized gateway and the automatic connection to networked devices, not only simplifies Operation complexity, and improve the information security for establishing each equipment of connection.
Referring to Fig. 7, the embodiment of the invention provides a kind of gateway, which includes:
Receiving module 701 is at least carried in the connection request and is set wait network for receiving the connection request to networked devices Standby physical address;
First sending module 702 sends checking request to server, in the checking request extremely for being based on connection request It is few to carry to the physical address of networked devices and the physical address of gateway;
Link block 703 should for establishing connection with to networked devices when receiving the instruction message that server is sent Instruction message, according to the physical address of networked devices and the physical address of gateway, determines that gateway is set with wait network by server For transmission when belonging to same user.
In another embodiment of the present invention, the gateway, further includes:
Second sending module, for sending broadcast message to networked devices, broadcast message is for notifying to networked devices Gateway is attachable gateway.
In another embodiment of the present invention, the connection that link block is established is network connection or bluetooth connection.
In another embodiment of the present invention, the gateway, further includes:
Third sending module, for sending a notification message to networked devices, notification message is for notifying to networked devices Connection is established with gateway.
Gateway provided in an embodiment of the present invention, receives the instruction message that server is sent, which is server base In the device identification of offer and physical address corresponding relationship and the corresponding relationship of device identification and subscriber identity information, can determine Gateway and the ownership to networked devices out, and determining gateway and transmission when networked devices belong to same user, and then basis The instruction message establishes connection with to networked devices.Due to executing any complexity without user during this establishes connection Setting operation, gateway and the automatic connection to networked devices can be realized, therefore, not only simplify operation complexity, and Improve the information security for establishing each equipment of connection.
Referring to Fig. 8, it illustrates the structural schematic diagrams for the terminal that network connection is established involved in the embodiment of the present invention, should The method for the foundation network connection that terminal can be used for implementing providing in above-described embodiment.Specifically:
Terminal 800 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meter The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (Wireless Fidelity, Wireless Fidelity) module 170, the processing for including one or more than one processing core The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 8 is not constituted pair The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband CodeDivision Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 800 According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 800 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearby After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch event Corresponding visual output is provided on display panel 141.Although in fig. 8, touch sensitive surface 131 and display panel 141 are conducts Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 800 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 800 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 800 can also configure, herein It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 800.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110 End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 800.
WiFi belongs to short range wireless transmission technology, and terminal 800 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 8 is shown WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 800, it can according to need completely Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 800, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 800, to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Optionally, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 800 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 800 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal 800 is touch-screen display, and terminal 800 further includes having memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with Upper processor executes.The one or more programs include instructions for performing the following operations:
The connection request to networked devices is received, the physical address to networked devices is at least carried in connection request;
Based on connection request, checking request is sent to server, the physics to networked devices is at least carried in checking request The physical address of address and gateway;
When receiving the instruction message that server is sent, connection is established with to networked devices, the instruction message is by server According to the physical address of networked devices and the physical address of gateway, gateway is determined and when networked devices belong to same user It sends.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of terminal, also include instructions for performing the following operations:
Before receiving to the connection request of networked devices, further includes:
It broadcasts the message to being sent to networked devices, broadcast message is for notifying to networked devices gateway to be attachable net It closes.
Assuming that above-mentioned is second of possible embodiment, then provided based on second of possible embodiment The third possible embodiment in, be network connection or bluetooth connection with the connection established to networked devices.
Assuming that above-mentioned is the third possible embodiment, then provided based on the third possible embodiment The 4th kind of possible embodiment in, in the memory of terminal, also include instructions for performing the following operations:
It is established after connection with to networked devices, further includes:
It sends a notification message to networked devices, notification message has established connection with gateway to networked devices for notifying.
Terminal provided in an embodiment of the present invention, receives the instruction message that server is sent, which is server base In the device identification of offer and physical address corresponding relationship and the corresponding relationship of device identification and subscriber identity information, can determine Gateway and the ownership to networked devices out, and determining gateway and transmission when networked devices belong to same user, and then basis The instruction message sends connection response to networked devices, to establish connection with to networked devices according to the connection response. Due to during this establishes connection, the setting operation of any complexity is executed without user, can be realized gateway with wait network Therefore the automatic connection of equipment not only simplifies operation complexity, and improve the information peace for each equipment for establishing connection Quan Xing.
The embodiment of the invention also provides a kind of computer readable storage medium, which be can be Computer readable storage medium included in memory in above-described embodiment;It is also possible to individualism, eventually without supplying Computer readable storage medium in end.The computer-readable recording medium storage has one or more than one program, this one A or more than one program is used to execute the method for establishing network connection, this method by one or more than one processor Include:
The connection request to networked devices is received, the physical address to networked devices is at least carried in connection request;
Based on connection request, checking request is sent to server, the physics to networked devices is at least carried in checking request The physical address of address and gateway;
When receiving the instruction message that server is sent, connection is established with to networked devices, the instruction message is by server According to the physical address of networked devices and the physical address of gateway, gateway is determined and when networked devices belong to same user It sends;
Based on connection response, connection is established with to networked devices.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of terminal, also include instructions for performing the following operations:
Before receiving to the connection request of networked devices, further includes:
It broadcasts the message to being sent to networked devices, broadcast message is for notifying to networked devices gateway to be attachable net It closes.
Assuming that above-mentioned is second of possible embodiment, then provided based on second of possible embodiment The third possible embodiment in, be network connection or bluetooth connection with the connection established to networked devices.
Assuming that above-mentioned is the third possible embodiment, then provided based on the third possible embodiment The 4th kind of possible embodiment in, in the memory of terminal, also include instructions for performing the following operations:
It is established after connection with to networked devices, further includes:
It sends a notification message to networked devices, notification message has established connection with gateway to networked devices for notifying.
Computer readable storage medium provided in an embodiment of the present invention receives the instruction message that server is sent, the instruction Message is pair of the server based on the device identification and physical address corresponding relationship and device identification and subscriber identity information that provide It should be related to, be capable of determining that gateway and the ownership to networked devices, and determining gateway and belonging to same user to networked devices When send, and then according to the instruction message, establish connection with to networked devices.Due to being not necessarily to during this establishes connection User executes the setting operation of any complexity, and gateway can be realized and therefore not only simplify with the automatic connection to networked devices Operation complexity, and improve the information security for establishing each equipment of connection.
A kind of graphical user interface is provided in the embodiment of the present invention, which is used in the terminal for establishing connection On, it includes touch-screen display, memory and for executing one or more than one which, which establishes network connection terminal, One or more than one processor of program;The graphical user interface includes:
The connection request to networked devices is received, the physical address to networked devices is at least carried in connection request;
Based on connection request, checking request is sent to server, the physics to networked devices is at least carried in checking request The physical address of address and gateway;
When receiving the instruction message that server is sent, connection is established with to networked devices, the instruction message is by server According to the physical address of networked devices and the physical address of gateway, gateway is determined and when networked devices belong to same user It sends;
Based on connection response, connection is established with to networked devices.
Graphical user interface provided in an embodiment of the present invention, receives the instruction message that server is sent, which is Device identification of the server based on offer and physical address corresponding relationship and the corresponding relationship of device identification and subscriber identity information, It is capable of determining that gateway and the ownership to networked devices, and is determining gateway and transmission when networked devices belong to same user, And then according to the instruction message, connection is established with to networked devices.Due to being executed without user during this establishes connection The setting of any complexity operates, and gateway and the automatic connection to networked devices can be realized, therefore, not only simplify complicated for operation Degree, and improve the information security for establishing each equipment of connection.
Fig. 9 is shown according to an exemplary embodiment a kind of for establishing the block diagram of the device 900 of network connection.Example Such as, device 900 may be provided as one and establish connection server.Referring to Fig. 9, device 900 includes processing component 922, into one Step includes one or more processors, and the memory resource as representated by memory 932, and being used to store can be by processing component The instruction of 922 execution, such as application program.The application program stored in memory 932 may include one or more Each correspond to one group of instruction module.In addition, processing component 922 is configured as executing instruction, to execute above-mentioned build The method of vertical connection, this method comprises:
The checking request that gateway is sent is received, at least carries the physical address of gateway in checking request and to networked devices Physical address;
According to the physical address of gateway, the physical address to networked devices, first database and the second database, net is judged It closes and whether belongs to same user to networked devices, device identification and the physical address of each equipment are stored in first database Between corresponding relationship, the corresponding pass between the device identification of each equipment and subscriber identity information is stored in the second database System;
If gateway with to networked devices belong to same user, send instruction message to gateway, which is used to indicate Physical address to networked devices is added to connection list by gateway.
In another embodiment of the present invention, according to the physical address of gateway, to networked devices physical address, first Database and the second database judge gateway and whether belong to same user to networked devices, comprising:
Corresponding first device identification of physical address for inquiring gateway from first database and the physics to networked devices Corresponding second device identification in address;
Corresponding first subscriber identity information of the first device identification and the second device identification pair are inquired from the second database The second user identity information answered;
First subscriber identity information is compared with second user identity information;
If the first subscriber identity information is identical as second user identity information, it is determined that gateway and belong to together to networked devices One user.
In another embodiment of the present invention, the physical address corresponding first that gateway is inquired from first database is set Standby mark and corresponding second device identification of physical address to networked devices, comprising:
Inquiry request is sent to first database, at least carries the physical address of gateway in inquiry request and to networked devices Physical address inquire the physics of gateway by first database from the corresponding relationship of the device identification of storage and physical address Corresponding first device identification in address and corresponding second device identification of physical address to networked devices;
Receive the first device identification and the second device identification that first database is sent.
In another embodiment of the present invention, corresponding first user of the first device identification is inquired from the second database Identity information and the corresponding second user identity information of the second device identification, comprising:
Inquiry request is sent to the second database, at least carries the first device identification and the second equipment mark in inquiry request Know, by the second database from the corresponding relationship of the device identification of storage and subscriber identity information, inquires the first device identification pair The corresponding second user identity information of the first subscriber identity information and the second device identification answered;
Receive the first subscriber identity information and second user identity information of the transmission of the second database.
In another embodiment of the present invention, first database is safeguarded by equipment manufacturer.
In another embodiment of the present invention, the second database is safeguarded by equipment vendor.
In another embodiment of the present invention, this method further include:
The inquiry request of third user is received, the subscriber identity information of third user is at least carried in inquiry request;
According to third subscriber identity information, the corresponding third equipment of third subscriber identity information is inquired from the second database Mark;
According to third device identification, the corresponding physical address of third device identification is inquired from the first data,
Third device identification and the corresponding physical address of third device identification are sent to third user.
In another embodiment of the present invention, after sending instruction message to gateway, further includes:
The locking request that fourth user is sent is received, at least carries fourth user identity information in locking request;
According to fourth user identity information, corresponding 4th equipment of fourth user identity information is inquired from the second database Mark;
By the corresponding 4th networked devices locking of the 4th device identification.
In another embodiment of the present invention, it by after the corresponding 4th networked devices locking of the 4th device identification, goes back Include:
When detecting that the 4th networked devices establish connection, the IP address of the 4th networked devices is obtained;
According to the IP address of the 4th networked devices, the 4th networked devices are positioned.
In another embodiment of the present invention, after sending instruction message to gateway, further includes:
When the operating system for detecting local terminal has update, update is sent to the networked devices for establishing connection with gateway and is disappeared Breath is updated according to update message the operating system of itself by networked devices.
Server provided in an embodiment of the present invention, based on server provide device identification and physical address corresponding relationship and The corresponding relationship of device identification and subscriber identity information is capable of determining that gateway and the ownership to networked devices, and is determining net It closes with after networked devices belong to same user, sends the instruction message for establishing connection to gateway, held without user The setting operation of any complexity of row, can be realized gateway and the automatic connection to networked devices, not only simplifies operation complexity, And improve the information security for establishing each equipment of connection.
It should be understood that server provided by the above embodiment, gateway be when establishing connection, only with above-mentioned each function mould The division progress of block can according to need and for example, in practical application by above-mentioned function distribution by different functional modules It completes, i.e., the internal structure of server, gateway is divided into different functional modules, to complete whole described above or portion Divide function.In addition, server provided by the above embodiment, gateway belong to same design with the embodiment for establishing connection, it is specific Realization process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (26)

1. a kind of method for establishing network connection, which is characterized in that the described method includes:
The checking request that gateway is sent is received, the physical address of the gateway is at least carried in the checking request and is set wait network Standby physical address;
According to the physical address of the gateway, described to the physical address of networked devices, first database and the second database, look into Ask corresponding first subscriber identity information of physical address and the physical address to networked devices corresponding of the gateway Two subscriber identity informations store the corresponding pass between the device identification of each equipment and physical address in the first database System, the first database is safeguarded by equipment manufacturer, and the equipment mark of each equipment is stored in second database Know the corresponding relationship between subscriber identity information;
When determining the gateway and described to networked devices according to first subscriber identity information and the second user information Belong to same user, Xiang Suoshu gateway sends instruction message, and the instruction message is used to indicate the gateway for described wait network The physical address of equipment is added to connection list.
2. the method according to claim 1, wherein the physical address according to the gateway, described wait join Physical address, first database and the second database of net equipment inquire corresponding first user of physical address of the gateway Identity information and the corresponding second user identity information of the physical address to networked devices, comprising:
Corresponding first device identification of physical address of the gateway is inquired from the first database and described is set wait network Corresponding second device identification of standby physical address;
Corresponding first subscriber identity information of first device identification is inquired from second database and described second is set It is standby to identify corresponding second user identity information;
Using corresponding first subscriber identity information of first device identification as the physical address of the gateway corresponding first Subscriber identity information, using the corresponding second user identity information of second device identification as the physics to networked devices The corresponding second user identity information in address.
3. according to the method described in claim 2, it is characterized in that, described inquire the gateway from the first database Corresponding first device identification of physical address and corresponding second device identification of the physical address to networked devices, comprising:
Inquiry request is sent to the first database, physical address and the institute of the gateway are at least carried in the inquiry request The physical address to networked devices is stated, by the first database from the device identification of storage and the corresponding relationship of physical address In, inquire corresponding first device identification of physical address and the physical address to networked devices corresponding of the gateway Two device identifications;
Receive the first device identification and the second device identification that the first database is sent.
4. according to the method described in claim 2, it is characterized in that, described inquire described first from second database and set It is standby to identify corresponding first subscriber identity information and the corresponding second user identity information of second device identification, comprising:
Inquiry request is sent to second database, first device identification and described is at least carried in the inquiry request Second device identification, by second database from the corresponding relationship of the device identification of storage and subscriber identity information, inquiry Corresponding first subscriber identity information of first device identification and the corresponding second user identity letter of second device identification Breath;
Receive the first subscriber identity information and second user identity information that second database is sent.
5. according to claim 1 to method described in any claim in 4, which is characterized in that second database is by setting Standby retailer safeguards.
6. the method according to claim 1, wherein the method also includes:
The inquiry request of third user is received, the subscriber identity information of third user is at least carried in the inquiry request;
According to the third subscriber identity information, the corresponding third of third subscriber identity information is inquired from second database Device identification;
According to the third device identification, the corresponding physical address of the third device identification is inquired from first data,
The third device identification and the corresponding physical address of the third device identification are sent to the third user.
7. the method according to claim 1, wherein also being wrapped after the transmission instruction message to the gateway It includes:
The locking request that fourth user is sent is received, at least carries the fourth user identity information in the locking request;
According to the fourth user identity information, it is corresponding that the fourth user identity information is inquired from second database 4th device identification;
4th device identification the corresponding 4th is locked to networked devices.
8. the method according to the description of claim 7 is characterized in that it is described by the 4th device identification the corresponding 4th wait join After the locking of net equipment, further includes:
When detecting the 4th when networked devices establish connection, the 4th IP address to networked devices is obtained;
According to the 4th IP address to networked devices, positioned to the described 4th to networked devices.
9. the method according to claim 1, wherein also being wrapped after the transmission instruction message to the gateway It includes:
When the operating system for detecting local terminal has update, update is sent to the networked devices for establishing connection with the gateway and is disappeared Breath is updated according to the update message operating system of itself by the networked devices.
10. a kind of method for establishing network connection, which is characterized in that the described method includes:
The connection request to networked devices is received, at least carries the physical address to networked devices in the connection request;
Based on the connection request, to server transmission checking request, in the checking request, at least carrying is described sets wait network The physical address of standby physical address and gateway;
When receiving the instruction message that the server is sent, the physical address to networked devices is added to connection list In, and connection is established to networked devices with described, the instruction message is described to networked devices in basis by the server The physical address of physical address and gateway determines the gateway and transmission when networked devices belong to same user, described The Memory linkage pond that list is gateway is connected, records multiple physical address to networked devices, and indicate that gateway is set with wait network Connection relationship between standby physical address.
11. according to the method described in claim 10, it is characterized in that, it is described reception to the connection request of networked devices before, Further include:
It broadcasts the message to described sent to networked devices, the broadcast message described is to gateway described in networked devices for notifying Attachable gateway.
12. according to the method described in claim 10, it is characterized in that, the described and described connection established to networked devices is net Network connection or bluetooth connection.
13. according to the method described in claim 10, it is characterized in that, it is described with it is described establish connection to networked devices after, Further include:
Send a notification message to described to networked devices, the notification message for notify it is described to networked devices with the net Connection is established in pass.
14. a kind of for establishing the server of network connection, which is characterized in that the server includes:
First receiving module at least carries the gateway in the checking request for receiving the checking request of gateway transmission Physical address and physical address to networked devices;
The server is also used to the physical address according to the gateway, the physical address to networked devices, the first data Library and the second database inquire corresponding first subscriber identity information of physical address of the gateway and described to networked devices Physical address corresponding second user identity information stores device identification and the physics of each equipment in the first database Corresponding relationship between address, the first database are safeguarded by equipment manufacturer, are stored in second database Corresponding relationship between the device identification and subscriber identity information of each equipment;
First sending module determines the gateway according to first subscriber identity information and the second user information for working as Belong to same user to networked devices with described, Xiang Suoshu gateway sends instruction message, and the instruction message is used to indicate described The physical address to networked devices is added to connection list by gateway.
15. server according to claim 14, which is characterized in that the server is also used to from first data Corresponding first device identification of physical address and the physical address to networked devices that the gateway is inquired in library are corresponding Second device identification;Corresponding first subscriber identity information of first device identification and institute are inquired from second database State the corresponding second user identity information of the second device identification;By corresponding first subscriber identity information of first device identification Corresponding first subscriber identity information of physical address as the gateway;By the corresponding second user of second device identification Identity information is as the corresponding second user identity information of physical address to networked devices.
16. server according to claim 15, which is characterized in that the server is also used to first data Library sends inquiry request, and the physical address and the physics to networked devices of the gateway are at least carried in the inquiry request The object of the gateway is inquired by the first database from the corresponding relationship of the device identification of storage and physical address in address Manage corresponding first device identification in address and corresponding second device identification of the physical address to networked devices;Described in reception The first device identification and the second device identification that first database is sent.
17. server according to claim 15, which is characterized in that the server is also used to second data Library sends inquiry request, first device identification and second device identification is at least carried in the inquiry request, by institute The second database is stated from the corresponding relationship of the device identification of storage and subscriber identity information, inquires first device identification pair The first subscriber identity information and the corresponding second user identity information of second device identification answered;Receive second data The first subscriber identity information and second user identity information that library is sent.
18. server described in any claim in 4 to 17 according to claim 1, which is characterized in that the server is being looked into Used second database is ask when the corresponding relationship between the device identification and subscriber identity information of each equipment by setting Standby retailer safeguards.
19. server according to claim 14, which is characterized in that the server further include:
Second receiving module at least carries third user's in the inquiry request for receiving the inquiry request of third user Subscriber identity information;
First enquiry module, for inquiring third user from second database according to the third subscriber identity information The corresponding third device identification of identity information;
Second enquiry module, for inquiring the third equipment mark from first data according to the third device identification Know corresponding physical address;
Second sending module, for the third device identification and the corresponding physical address of the third device identification to be sent to The third user.
20. server according to claim 14, which is characterized in that the server, further includes:
Third receiving module at least carries described for receiving the locking request of fourth user transmission, in the locking request Four subscriber identity informations;
Third enquiry module, for inquiring the described 4th from second database according to the fourth user identity information Corresponding 4th device identification of subscriber identity information;
Equipment locking module, for locking corresponding 4th networked devices of the 4th device identification.
21. server according to claim 20, which is characterized in that the server, further includes:
Module is obtained, for obtaining the IP address of the 4th networked devices when detecting that the 4th networked devices establish connection;
Locating module positions the 4th networked devices for the IP address according to the 4th networked devices.
22. server according to claim 14, which is characterized in that the server, further includes:
Third sending module, for when the operating system for detecting local terminal has update, to the connection for establishing connection with the gateway Net equipment sends update message, and the operating system of itself is updated according to the update message by the networked devices.
23. a kind of for establishing the gateway of network connection, which is characterized in that the gateway includes:
Receiving module is at least carried for receiving the connection request to networked devices, in the connection request and described is set wait network Standby physical address;
First sending module sends checking request to server, in the checking request at least for being based on the connection request It carries described to the physical address of networked devices and the physical address of gateway;
Link block, for when receiving the instruction message that the server is sent, by the physical address to networked devices It is added in connection list, and establishes connection to networked devices with described, the instruction message is by the server according to institute The physical address for stating the physical address and gateway to networked devices determines that the gateway belongs to same use to networked devices with described It is sent when family, the connection list is the Memory linkage pond of gateway, records multiple physical address to networked devices, and indicate net It closes and to the connection relationship between the physical address of networked devices.
24. gateway according to claim 23, which is characterized in that the gateway, further includes:
Second sending module, for broadcasting the message to described sent to networked devices, the broadcast message for notify it is described to Gateway described in networked devices is attachable gateway.
25. gateway according to claim 23, which is characterized in that the connection that the link block is established be network connection or Bluetooth connection.
26. gateway according to claim 23, which is characterized in that the gateway, further includes:
Third sending module, for sending a notification message to described to networked devices, the notification message for notify it is described to Networked devices establish connection with the gateway.
CN201510148795.5A 2015-03-31 2015-03-31 Establish the method and device of network connection Active CN106161147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510148795.5A CN106161147B (en) 2015-03-31 2015-03-31 Establish the method and device of network connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510148795.5A CN106161147B (en) 2015-03-31 2015-03-31 Establish the method and device of network connection

Publications (2)

Publication Number Publication Date
CN106161147A CN106161147A (en) 2016-11-23
CN106161147B true CN106161147B (en) 2019-08-06

Family

ID=57337749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510148795.5A Active CN106161147B (en) 2015-03-31 2015-03-31 Establish the method and device of network connection

Country Status (1)

Country Link
CN (1) CN106161147B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919842B (en) * 2017-03-13 2020-06-02 湖州贝格信息安全科技有限公司 Computer security protection method and computer
CN111132849B (en) * 2017-09-26 2021-11-26 惠普印迪格公司 Scraping structure, generation method thereof, storage resource and system
CN111212428A (en) * 2018-11-22 2020-05-29 九阳股份有限公司 Method for accessing household appliance to wireless local area network and household appliance
CN109922160B (en) * 2019-03-28 2021-07-06 全球能源互联网研究院有限公司 Terminal secure access method, device and system based on power Internet of things
CN114070878B (en) * 2022-01-13 2022-06-24 阿里云计算有限公司 Network connection processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842000A (en) * 2005-03-29 2006-10-04 华为技术有限公司 Method for realizing access authentication of WLAN
CN103517273A (en) * 2013-10-09 2014-01-15 中国联合网络通信集团有限公司 Authentication method, managing platform and Internet-of-Things equipment
CN103929796A (en) * 2013-12-31 2014-07-16 小米科技有限责任公司 Access point sharing method and device
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device
CN104363631A (en) * 2014-10-24 2015-02-18 小米科技有限责任公司 Connection method, device and system of wireless router

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140097923A (en) * 2013-01-30 2014-08-07 한국전자통신연구원 Method for control of service equipment and apparatus for performing the method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842000A (en) * 2005-03-29 2006-10-04 华为技术有限公司 Method for realizing access authentication of WLAN
CN103517273A (en) * 2013-10-09 2014-01-15 中国联合网络通信集团有限公司 Authentication method, managing platform and Internet-of-Things equipment
CN103929796A (en) * 2013-12-31 2014-07-16 小米科技有限责任公司 Access point sharing method and device
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device
CN104363631A (en) * 2014-10-24 2015-02-18 小米科技有限责任公司 Connection method, device and system of wireless router

Also Published As

Publication number Publication date
CN106161147A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN105824958B (en) A kind of methods, devices and systems of inquiry log
CN103294515B (en) A kind of methods, devices and systems for obtaining application program
CN107181651A (en) Intelligent home device collocation method and device
CN106878120A (en) Device management method and device
CN106161176A (en) Cluster conversation message treatment method and device
CN104426963B (en) The method and terminal of associated terminal
CN106161147B (en) Establish the method and device of network connection
CN105634881A (en) Application scene recommending method and device
CN103475996A (en) Network connecting method, network sharing method and devices
CN103458408A (en) Network connection method and network sharing method and device
CN106791955B (en) A kind of method and system of determining live streaming duration
CN104093189A (en) Multimedia playing device network initialization method, system, device and terminal
CN104135728B (en) Method for connecting network and device
CN103310004A (en) Method, device and equipment for displaying number of unread messages
CN106953785A (en) Intelligent home device adding method and device
CN105491135B (en) Establish the method and device of data connection
CN104581993B (en) It is wirelessly connected the method and terminal of the method established, data transmission
CN103310009A (en) Method, device and terminal for updating webpage data
CN107147549A (en) Intelligent home device networking method and device
CN105207880A (en) Group recommendation method and apparatus
CN103491421B (en) Content displaying method, device and intelligent television
CN106162811B (en) Method and device for establishing network connection
CN104363590A (en) Access point connection method and device
CN105630517A (en) Configuration information setting method, configuration information setting device and communication system
CN109495769A (en) Video communication method, terminal, smart television, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant