CN106162811B - Method and device for establishing network connection - Google Patents
Method and device for establishing network connection Download PDFInfo
- Publication number
- CN106162811B CN106162811B CN201510150080.3A CN201510150080A CN106162811B CN 106162811 B CN106162811 B CN 106162811B CN 201510150080 A CN201510150080 A CN 201510150080A CN 106162811 B CN106162811 B CN 106162811B
- Authority
- CN
- China
- Prior art keywords
- radio frequency
- gateway
- frequency identification
- physical address
- equipment
- 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
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and a device for establishing network connection, and belongs to the technical field of computers. The method comprises the following steps: broadcasting a probe signal; receiving a response signal which is returned by the networking equipment and at least carries the radio frequency identification; sending a query request to a server according to the received radio frequency identification; when a physical address sent by a server is received, determining a designated gateway according to a response signal; and sending an indication message to the specified gateway, wherein the indication message is used for indicating the specified gateway to add the physical address corresponding to the radio frequency identification into the connection list. The invention inquires the physical address corresponding to the radio frequency identification from the server based on the corresponding relation between the radio frequency identification and the physical address stored in the server, and sends an indication message for establishing connection with the networking equipment to the designated gateway after determining the designated gateway according to the response signal sent by the networking equipment. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for establishing a connection.
Background
With the development of computer technology, more and more networking devices have network connection functions, such as intelligent cameras, intelligent air conditioners, intelligent home theaters, intelligent lamps and lanterns, etc. When the networking device is connected to the network, the user can know the working state of the networking device at any time through the network browser on the terminal. For example, a user installs an intelligent camera in an office and connects the intelligent camera to a network, and the user can view a picture shot by the intelligent camera on a personal computer through a network browser at any time and any place. In the process, how to establish the connection between the networking equipment and the network becomes the key to see the picture shot by the intelligent camera.
Taking establishing the connection between the intelligent camera and the network as an example, the user needs to connect the intelligent camera to the local area network by means of the network cable and the router, and then, according to the guidance set by the network, the connection setting is performed on the setting page of the intelligent camera, and finally, the intelligent camera is connected to the network.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
in the process of establishing the connection between the intelligent camera and the network, a user needs to accurately set according to the guidance of network setting, and the method is complex in operation and high in complexity.
Disclosure of Invention
In order to solve the problems of the related art, embodiments of the present invention provide a method and an apparatus for establishing a network connection. The technical scheme is as follows:
in a first aspect, a method for establishing a connection is provided, where the method includes:
broadcasting a probe signal;
receiving a response signal returned by the networking equipment, wherein the response signal at least carries the radio frequency identification of the networking equipment;
sending an inquiry request to a server according to a received radio frequency identification, and inquiring a physical address corresponding to the radio frequency identification from a first database by the server, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
when a physical address sent by the server is received, determining a designated gateway according to the response signal;
and sending an indication message to the designated gateway, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into a connection list.
In a second aspect, a method for establishing a connection is provided, the method comprising:
receiving an inquiry request sent by radio frequency equipment, wherein the inquiry request at least carries a radio frequency identification of networking equipment;
according to the received radio frequency identification, a physical address corresponding to the radio frequency identification is inquired from a first database, and the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
and sending the physical address corresponding to the radio frequency identification to radio frequency equipment, and sending an indication message to an appointed gateway by the radio frequency equipment, wherein the appointed gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the appointed gateway to add the physical address corresponding to the radio frequency identification into a connection list.
In a third aspect, a radio frequency device is provided, which includes:
a broadcasting module for broadcasting a probe signal;
the receiving module is used for receiving a response signal returned by the networking equipment, wherein the response signal at least carries the radio frequency identification of the networking equipment;
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending an inquiry request to a server according to a received radio frequency identification, the server inquires a physical address corresponding to the radio frequency identification from a first database, and the first database is used for storing a corresponding relation between the radio frequency identification and the physical address;
the determining module is used for determining the designated gateway according to the response signal when receiving the physical address sent by the server;
and the second sending module is used for sending a connection instruction to the designated gateway, the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the connection instruction is used for indicating the designated gateway to establish connection with the networking equipment corresponding to the radio frequency identification.
In a fourth aspect, a server is provided, the server comprising:
the first receiving module is used for receiving an inquiry request sent by radio frequency equipment, wherein the inquiry request at least carries a radio frequency identification of networking equipment;
the first query module is used for querying a physical address corresponding to the radio frequency identification from a first database according to the received radio frequency identification, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
the first sending module is used for sending the physical address corresponding to the radio frequency identification to the radio frequency equipment, the radio frequency equipment sends an indication message to a designated gateway, the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into a connection list.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
based on the corresponding relation between the radio frequency identification and the physical address stored in the server, the physical address corresponding to the radio frequency identification is inquired from the server, and after the appointed gateway is determined according to the response signal sent by the networking equipment, an indication message used for establishing connection with the networking equipment is sent to the appointed gateway. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment related to a method for establishing a connection according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for establishing a network connection according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for establishing a network connection according to another embodiment of the present invention;
fig. 4 is a flowchart of a method for establishing a network connection according to another embodiment of the present invention;
FIG. 5 is a flow chart of a method of establishing a network connection according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a radio frequency device according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal for establishing a network connection according to another embodiment of the present invention;
fig. 9 is a block diagram of an apparatus for establishing a network connection according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
With the development of computer technology, more and more networked devices can be connected into a network, for example, smart lights, smart small appliances, smart meters, smart home theaters, network cards, reset buttons (reset buttons or reset buttons), and the like. Generally, when the networking devices are connected to the network, a series of connection settings need to be performed, the process is complex to operate, a user needs to have certain network knowledge, the learning cost is high, in the setting process, omission or errors are easily caused, and the success rate of connection is low.
In order to simplify the complexity of the connection, the present embodiment provides a method for establishing a network connection based on the implementation environment shown in fig. 1. Referring to fig. 1, the implementation environment is composed of a server 101, a radio frequency device 102, a gateway device 103, a networking device 104, a networking device 105, and a networking device 106.
In this embodiment, when each piece of networking equipment is produced by an equipment manufacturer, a radio frequency chip is installed for each piece of networking equipment, when the networking equipment leaves a factory, the radio frequency identification and the physical address of each piece of networking equipment are recorded in the corresponding table, the radio frequency identification and the physical address are recorded in the corresponding table and uploaded to the server 101, and meanwhile, a network service interface for inquiring the physical address according to the radio frequency identification is provided.
In this embodiment, the server 101 stores attribute information of each device, such as a radio frequency identifier, a physical address, and user identity information of the device. The Radio frequency device 102 may be used to identify a networking device equipped with a Radio frequency chip, and the Radio frequency device 102 may be an identifiable iBeacon mobile phone, an identifiable RFID (Radio frequency identification) card reader, or the like. The gateway device 103 may communicate with the server 101, and the gateway device 103 may be a router, a host with a routing function turned on by software, or a network switch with a three-layer switching function. In this embodiment, the gateway device 103 is taken as an example for explanation. The networking devices 104, 105, 106 may be devices with identification functionality. For example, the networking device may be a wireless network camera, a network printer, a network facsimile machine, a wireless network node, an instrument or a signal repeater, and so on. In this embodiment, the radio frequency device 102, the gateway device 103, the networking device 104, the networking device 105, and the networking device 106 all have the capability of communicating with other devices through a network mode or a radio frequency mode.
The server 101 and the rf device 102 may be connected through a wired network or a wireless network.
With reference to the implementation environment shown in fig. 1, an embodiment of the present invention provides a method for establishing a network connection, and referring to fig. 2, a flow of the method provided in this embodiment includes:
201. a probe signal is broadcast.
202. And receiving a response signal returned by the networking equipment, wherein the response signal at least carries the radio frequency identification of the networking equipment.
203. And sending an inquiry request to a server according to the received radio frequency identification, and inquiring a physical address corresponding to the radio frequency identification from a first database by the server, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address.
204. And when the physical address sent by the server is received, determining the designated gateway according to the response signal.
205. And sending an indication message to the designated gateway, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into the connection list.
The method provided by the embodiment of the invention inquires the physical address corresponding to the radio frequency identification from the server based on the corresponding relation between the radio frequency identification and the physical address stored in the server, and sends the indication message for establishing connection with the networking equipment to the designated gateway after the designated gateway is determined according to the response signal sent by the networking equipment. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
In another embodiment of the present invention, determining the designated gateway based on the response signal comprises:
according to the radio frequency identification, user identity information corresponding to the radio frequency identification is inquired from a second database, and the corresponding relation between each equipment identification and the user identity information is stored in the second database;
according to the user identity information, a gateway identifier corresponding to the user identity information is inquired from the second data;
and determining the gateway corresponding to the gateway identification as the designated gateway.
In another embodiment of the present invention, the response signal also carries a gateway identifier of the gateway to be accessed;
determining a designated gateway based on the response signal, comprising:
determining a gateway to be accessed according to the gateway identification of the gateway to be accessed;
and determining the gateway to be accessed as the designated gateway.
In another embodiment of the invention, the response signal also carries location based service information LBS information of the networked equipment;
determining a designated gateway based on the response signal, comprising:
determining a position area where the networking equipment corresponding to the radio frequency identification is located according to the LBS information;
querying gateways located in the location area;
and determining the gateway located in the position area as the designated gateway.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
With reference to the implementation environment shown in fig. 1, an embodiment of the present invention provides a method for establishing a network connection, and referring to fig. 3, a flow of the method provided in this embodiment includes:
301. and receiving an inquiry request sent by the radio frequency equipment, wherein the inquiry request at least carries the radio frequency identification of the networking equipment.
302. And inquiring a physical address corresponding to the radio frequency identification from a first database according to the received radio frequency identification, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address.
303. And sending the physical address corresponding to the radio frequency identification to the radio frequency equipment, sending an indication message to a designated gateway by the radio frequency equipment, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into the connection list.
The method provided by the embodiment of the invention comprises the steps of receiving an inquiry request which is sent by radio frequency equipment and at least carries a radio frequency identification of networking equipment, inquiring a physical address corresponding to the radio frequency identification, sending the inquired physical address to the radio frequency equipment, and sending an indication message to a designated gateway by the radio frequency equipment according to the physical address so as to enable the designated gateway to be connected with the networking equipment. In the process, the automatic connection between the gateway and the network equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
In another embodiment of the invention, the first database is maintained by the equipment manufacturer.
In another embodiment of the invention, the connection established by the gateway and the networking device corresponding to the radio frequency identification is designated as a network connection or a bluetooth connection.
In another embodiment of the present invention, the method further comprises:
and receiving the corresponding relation between the equipment identification of the sold equipment and the user identity information sent by the equipment seller, and storing the corresponding relation between the equipment identification and the user identity information in a second database.
In another embodiment of the present invention, after sending the physical address corresponding to the radio frequency identifier to the radio frequency device, the method further includes:
receiving a locking request sent by a user, wherein the locking request at least carries user identity information of the user;
according to the user identity information, inquiring equipment identification corresponding to the user identity information from a second database;
and locking the networking equipment corresponding to the equipment identification.
In another embodiment of the present invention, after locking the networked device corresponding to the device identifier, the method further includes:
when the networking equipment is detected to establish connection, the IP address of the networking equipment is obtained;
and positioning the networking equipment according to the IP address of the networking equipment.
In another embodiment of the present invention, after sending the physical address corresponding to the radio frequency identifier to the radio frequency device, the method further includes:
and when detecting that the operating system of the local terminal is updated, sending an update message to the networking equipment which establishes connection with the specified gateway, and updating the operating system of the networking equipment by the networking equipment according to the update message.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
With reference to the implementation environment shown in fig. 1, an embodiment of the present invention provides a method for establishing a network connection, and referring to fig. 4, the present invention takes a to-be-connected networking device, a radio frequency device, and a server to execute the embodiment as an example, and a flow of the method provided by the embodiment includes:
401. the radio frequency device broadcasts a probe signal.
In this embodiment, the rf device has the capability of communicating with other devices via rf or network, and based on this capability, the rf device can broadcast the probe signal to identify all the networked devices within its identifiable range when it is powered on. The detection signal broadcast by the radio frequency device at least carries the device identifier, the location information, and the like of the radio frequency device. The recognizable range of the radio frequency device is determined by the signal transmitting capability of the radio frequency device itself, and the recognizable range of the radio frequency device may be a circumferential range with the radio frequency device as a center and a preset distance as a radius, where the preset distance may be 2 meters, 3 meters, 6 meters, and the like, which is not limited in this embodiment.
402. When receiving the detection signal, the networking device returns a response signal, and the response signal at least carries the radio frequency identification of the networking device.
Since the networking device in this embodiment also has the capability of communicating with other devices in a radio frequency manner or a network manner, when the networking device is in a power-on state and is within the recognizable range of the radio frequency device, the networking device may receive the probe signal broadcast by the radio frequency device. When receiving the detection signal broadcast by the radio frequency device, the networking device not connected to the network returns a response signal to the radio frequency device to trigger the radio frequency device to execute the operation of selecting the gateway to be connected for the networking device. Wherein, the response signal at least carries the radio frequency identification of the networking device.
In addition, in this embodiment, after the networking device is powered on, connectable gateways can be queried, and specific querying methods include the following:
in the first mode, after the network device to be connected is started, the network device automatically enters an inquiry state, inquires the surrounding gateway in the starting state, and takes the inquired gateway as a connectable gateway.
In the second mode, the gateway sends the broadcast message at regular time, receives the broadcast message sent by the surrounding gateways after the networking equipment to be connected is started, and takes the source gateway of the broadcast message as a connectable gateway according to the received broadcast message.
And in the third mode, the gateway detects the surrounding networking equipment in the power-on state, when detecting that certain networking equipment is in the power-on state, the gateway sends the broadcast message to the networking equipment to be connected in the power-on state, and when receiving the broadcast message sent by the gateway, the networking equipment takes the source gateway of the broadcast message as a connectable gateway according to the received broadcast source.
403. When a response signal returned by the networking equipment is received, the radio frequency equipment sends an inquiry request to the server according to the received radio frequency identification, and the inquiry request at least carries the radio frequency identification of the networking equipment.
When receiving a response signal returned by the networking equipment, the radio frequency equipment sends an inquiry request to the server according to the radio frequency identification carried in the response signal so as to obtain the physical address of the networking equipment, and selects a gateway to be connected for the networking equipment according to the physical address of the networking equipment. The physical address of the networking device may be a Media Access Control (MAC) address, etc.
404. When receiving an inquiry request sent by the radio frequency equipment, the server inquires a physical address corresponding to the radio frequency identification from the first database according to the received radio frequency identification.
In this embodiment, when each device is produced, a device manufacturer installs a radio frequency chip for each networking device, the radio frequency chip records a radio frequency identifier and a corresponding physical address of each networking device, when the device leaves a factory, the device manufacturer uploads the corresponding relationship between the radio frequency identifier and the physical address of each device recorded in the radio frequency chip to a first database, and the first database is maintained by the device manufacturer, for example, the device manufacturer updates the first database regularly, checks regularly, upgrades the system, and the like. The storage form of the correspondence between the radio frequency identifier and the physical address in the first database may be a table form or a matrix form, which is not specifically limited in this embodiment. The following is an example of storing the correspondence between the rfid and the physical address in a table format, and is specifically shown in table 1.
TABLE 1
Networking device | Radio frequency identification | Physical address |
Networking device 1 | A | 08:00:20:0A:8C:6D |
Networking device two | B | 08:00:20:3A:5C:4D |
Networking device III | C | 08:00:20:4A:3C:6D |
Based on the correspondence between the radio frequency identifier and the physical address stored in the first database, when receiving an inquiry request sent by the radio frequency device, the server may inquire the physical address corresponding to the radio frequency identifier from the first data. Taking the table 1 as an example, if the radio frequency identifier received by the server is B, the server may query that the physical address corresponding to the radio frequency identifier B is 08:00:20:3A:5C:4D according to the correspondence between the radio frequency identifier and the physical address stored in the table 1.
405. And the server sends the physical address corresponding to the radio frequency identification to the radio frequency equipment.
After the server inquires the physical address corresponding to the radio frequency identification from the first database according to the received radio frequency identification, the server sends the physical address corresponding to the radio frequency identification to the radio frequency equipment, and the radio frequency equipment searches for a gateway connected with the networking equipment according to the physical address.
406. And when the physical address sent by the server is received, the radio frequency equipment determines the designated gateway according to the response signal.
And the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification.
Regarding the manner in which the rf device determines the designated gateway according to the response signal, the following manners are included, but not limited to:
in the first mode, the radio frequency device determines a gateway belonging to the same user as the networking device as a designated gateway.
For this way, when each device is sold, the device seller records user identity information of each user who purchases the device, such as name, identification number, passport number, telephone number, instant messaging number, and so on, and uploads the corresponding relationship between the radio frequency identification of each device and the user identity information to a second database, which is maintained by the device seller, for example, the device seller needs to update the second database periodically, check periodically, upgrade the system, and so on. Meanwhile, in order to facilitate the user query, the equipment seller also provides a network service interface for the user to query the radio frequency identification according to the user identity information.
Based on the second database, the radio frequency device may send an inquiry request to the server according to the radio frequency identifier carried in the response signal, and the server inquires the user identity information corresponding to the radio frequency identifier from the second database according to the radio frequency identifier.
In the second mode, the radio frequency device determines the gateway corresponding to the gateway identifier carrying the gateway to be accessed in the response signal as the designated gateway.
For this way, when each networking device that receives the probe signal returns a response signal to the radio frequency device, the response signal may carry the gateway identifier of the gateway to be accessed. Based on the gateway identifier of the gateway to be accessed, when the radio frequency device determines the designated gateway according to the response signal, the radio frequency device may determine the gateway to be accessed according to the gateway identifier of the gateway to be accessed, and further determine the gateway to be accessed as the designated gateway.
In a third mode, the radio frequency device determines a gateway located in a location area where the networking device is located as a designated gateway.
For this way, when each networking device receiving the probe signal returns a response signal to the radio frequency device, LBS information of the networking device may be carried in the response signal. Based on the LBS information, when the radio frequency equipment determines the designated gateway according to the response signal, the location area where the networking equipment corresponding to the radio frequency identification is located can be determined according to the LBS information, the gateway located in the location area is further inquired, and the gateway located in the location area is determined as the designated gateway.
407. And the radio frequency equipment sends an indication message to the specified gateway.
And when the specified gateway is determined, the radio frequency equipment sends an indication message to the specified gateway, wherein the indication message is used for indicating the specified gateway to add the physical address corresponding to the radio frequency identification into the connection list. The connection list may be a memory connection pool of the designated gateway, records physical addresses of a plurality of networking devices, and indicates a connection relationship between the designated gateway and the physical addresses of the networking devices, for example, may indicate that the designated gateway allows the networking device to access when receiving a connection request sent by the networking device corresponding to any physical address in the connection list, may also indicate that the designated gateway maintains a connection with the networking device corresponding to any physical address in the list, and so on. Through the connection list, the networking equipment can also complete the connection setting with the designated gateway under the condition of shutdown state or sudden power failure, and the designated gateway does not need to actively poll or connect the networking equipment, so that the electric energy can be saved, and the service performance and the safety of the gateway are improved.
408. And based on the received indication message, when a connection request sent by the networking equipment is received, the specified gateway establishes connection with the networking equipment.
And after receiving the indication message, the designated gateway adds the physical address corresponding to the radio frequency identification into the connection list. In addition, the designated gateway sends a message to the networking device corresponding to the radio frequency identification to inform the networking device that the designated gateway can be accessed.
And after receiving the connection request sent by the networking equipment, identifying the networking equipment sending the connection request, and when the physical address of the networking equipment sending the connection request is in the connection list, establishing connection with the networking equipment. In this embodiment, when the physical address of the networking device that sends the connection request is not in the connection list, the specified gateway may ignore the connection request sent by the networking device, and may also reject the connection request sent by the networking device and return a reject message to the networking device. Of course, the designated gateway may also take other forms, and this embodiment is not limited to this specifically. In the process, because the networking device does not establish connection with the selected gateway within the preset time length, the networking device sends connection requests to other connectable gateways until the connection is successful. If the networking device is not successfully connected with all connectable gateways, the user can press a reset key on the networking device to be connected to reset the networking device so as to connect with the network in other modes.
In this embodiment, the connection established between the gateway and the networking device may be a network connection, or may also be a short-distance wireless connection such as a bluetooth connection or an infrared connection. Of course, the connection established between the gateway and the networking device may also be in other forms, and this embodiment does not specifically limit this.
After the connection with the networking equipment is established, the appointed gateway also sends a notification message to the networking equipment, wherein the notification message is used for notifying the networking equipment that the connection with the gateway is established, so that the user can check the working condition of the networking equipment through the terminal browser after receiving the notification message. For example, a user installs an intelligent camera in an office, connects the intelligent camera to a network by the method provided by the embodiment, and can check the picture shot by the intelligent camera on a personal computer through a network browser anytime and anywhere when the user is on a business trip.
In order to avoid user information leakage caused by loss of the networking equipment, when any networking equipment connected to the network of the user is lost, the user can also send a locking request to the server, wherein the locking request at least carries user identity information. When receiving a locking request sent by a user, the server can inquire the equipment identifier corresponding to the user identity information from the second database according to the user identity information, and further lock the networking equipment corresponding to the equipment identifier, so that other users can hardly use the networking equipment.
Because the system version of the server is continuously updated, when the system version of the server is updated, the networking device may be unable to connect to the network, and the networking device needs to update its own operating system.
To better understand the process of connecting the networked devices to the gateway, the following description will proceed with reference to fig. 5 as an example.
The equipment manufacturer installs a radio frequency chip for each networking device, the radio frequency chip records the radio frequency identification and the corresponding physical address of each networking device, and when the equipment leaves a factory, the equipment manufacturer uploads the corresponding relationship of the radio frequency identification and the physical address of each device recorded in the radio frequency chip to the first database. After the networking device is powered on, the gateway wakes up the networking device by sending a broadcast message to the networking device so that the networking device queries the connectable gateway. Meanwhile, the radio frequency equipment broadcasts a detection signal, after a response signal returned by the networking equipment is received, according to the radio frequency identification carried in the response signal, the physical address of the networking equipment is inquired from the server, the designated gateway is determined, and a connection instruction is sent to the designated gateway, so that the designated gateway establishes connection with the networking equipment when receiving a connection request sent by the networking equipment.
In the method provided by this embodiment, based on the correspondence between the radio frequency identifier and the physical address stored in the server, the physical address corresponding to the radio frequency identifier is queried from the server, and after the specified gateway is determined according to the response signal sent by the networking device, an indication message for establishing connection with the networking device is sent to the specified gateway. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified. On this basis, the method provided by the embodiment also supports locking and retrieving of the networking device, and further improves information security.
Referring to fig. 6, an embodiment of the present invention provides a radio frequency device, including:
a broadcasting module 601, configured to broadcast a probe signal;
a receiving module 602, configured to receive a response signal returned by the networking device, where the response signal at least carries a radio frequency identifier of the networking device;
a first sending module 603, configured to send an inquiry request to a server according to the received radio frequency identifier, where the server inquires a physical address corresponding to the radio frequency identifier from a first database, where the first database is used to store a corresponding relationship between the radio frequency identifier and the physical address;
a determining module 604, configured to determine, when the physical address sent by the server is received, a designated gateway according to the response signal;
a second sending module 605, configured to send an indication message to a designated gateway, where the designated gateway is a gateway to be accessed of the networking device corresponding to the radio frequency identifier, and the indication message is used to indicate the designated gateway to add the physical address corresponding to the radio frequency identifier to the connection list.
In another embodiment of the present invention, the determining module 604 is configured to query, according to the radio frequency identifier, user identity information corresponding to the radio frequency identifier from a second database, where a corresponding relationship between each device identifier and the user identity information is stored in the second database; according to the user identity information, a gateway identifier corresponding to the user identity information is inquired from the second data; and determining the gateway corresponding to the gateway identification as the designated gateway.
In another embodiment of the present invention, the response signal also carries a gateway identifier of the gateway to be accessed;
a determining module 604, configured to determine a gateway to be accessed according to a gateway identifier of the gateway to be accessed;
and determining the gateway to be accessed as the designated gateway.
In another embodiment of the invention, the response signal also carries location based service information LBS information of the networked equipment;
a determining module 604, configured to determine, according to the LBS information, a location area where the networking device corresponding to the radio frequency identifier is located; querying gateways located in the location area; and determining the gateway located in the position area as the designated gateway.
In summary, the radio frequency device provided in the embodiment of the present invention queries, based on the correspondence between the radio frequency identifier and the physical address stored in the server, the physical address corresponding to the radio frequency identifier from the server, and sends an indication message for establishing a connection with the networking device to the designated gateway after determining the designated gateway according to the response signal sent by the networking device. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
Referring to fig. 7, an embodiment of the present invention provides a server, where the server includes:
a first receiving module 701, configured to receive an inquiry request sent by a radio frequency device, where the inquiry request at least carries a radio frequency identifier of a networking device;
a first query module 702, configured to query, according to a received radio frequency identifier, a physical address corresponding to the radio frequency identifier from a first database, where the first database is used to store a corresponding relationship between the radio frequency identifier and the physical address;
the first sending module 703 is configured to send the physical address corresponding to the radio frequency identifier to the radio frequency device, where the radio frequency device sends an indication message to a designated gateway, the designated gateway is a gateway to be accessed of the networking device corresponding to the radio frequency identifier, and the indication message is used to indicate the designated gateway to add the physical address corresponding to the radio frequency identifier to the connection list.
In another embodiment of the present invention, the first query module 702 queries a first database of physical addresses corresponding to rfids maintained by the device manufacturer.
In another embodiment of the present invention, the connection established by the networking device corresponding to the gateway and the radio frequency identifier, which is indicated by the connection instruction sent by the first sending module, is a network connection or a bluetooth connection.
In another embodiment of the present invention, the server further comprises:
and the second receiving module is used for receiving the corresponding relation between the equipment identifier of the sold equipment and the user identity information sent by the equipment seller and storing the corresponding relation between the equipment identifier and the user identity information in a second database.
In another embodiment of the present invention, the server further comprises:
the third receiving module is used for receiving a locking request sent by a user, wherein the locking request at least carries user identity information of the user;
the second query module is used for querying the equipment identifier corresponding to the user identity information from the second database according to the user identity information;
and the locking module is used for locking the networking equipment corresponding to the equipment identification.
In another embodiment of the present invention, the server further comprises:
the acquisition module is used for acquiring the IP address of the networking equipment when the networking equipment is detected to establish connection;
and the positioning module is used for positioning the networking equipment according to the IP address of the networking equipment.
In another embodiment of the present invention, the server further comprises:
and the second sending module is used for sending an updating message to the networking equipment which establishes connection with the specified gateway when the fact that the operating system of the local terminal is updated is detected, and the networking equipment updates the operating system of the networking equipment according to the updating message.
The server provided by the embodiment of the invention receives an inquiry request which is sent by radio frequency equipment and at least carries a radio frequency identification of networking equipment, inquires a physical address corresponding to the radio frequency identification, sends the inquired physical address to the radio frequency equipment, and sends an indication message to a designated gateway by the radio frequency equipment according to the physical address so as to establish connection between the designated gateway and the networking equipment. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
Referring to fig. 8, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown, where the terminal may be used to implement the method for establishing a network connection provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the terminal 800 may include components such as an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WiFi (Wireless Fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 800, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 800, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 8, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 800 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the terminal 800, further description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 800. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 800.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 800 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 800, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 800, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 800 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; optionally, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 800 further includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 800 may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the display unit of the terminal 800 is a touch screen display, and the terminal 800 further includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for:
broadcasting a probe signal;
receiving a response signal returned by the networking equipment, wherein the response signal at least carries the radio frequency identification of the networking equipment;
sending an inquiry request to a server according to the received radio frequency identification, and inquiring a physical address corresponding to the radio frequency identification from a first database by the server, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
when a physical address sent by a server is received, determining a designated gateway according to a response signal;
and sending an indication message to the designated gateway, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into the connection list.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
determining a designated gateway based on the response signal, comprising:
according to the radio frequency identification, user identity information corresponding to the radio frequency identification is inquired from a second database, and the corresponding relation between each equipment identification and the user identity information is stored in the second database;
according to the user identity information, a gateway identifier corresponding to the user identity information is inquired from the second data;
and determining the gateway corresponding to the gateway identification as the designated gateway.
Assuming that the above is the second possible implementation manner, in a third possible implementation manner provided on the basis of the second possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
the response signal also carries a gateway identifier of the gateway to be accessed;
determining a designated gateway based on the response signal, comprising:
determining a gateway to be accessed according to the gateway identification of the gateway to be accessed;
and determining the gateway to be accessed as the designated gateway.
Assuming that the above is the third possible implementation manner, in a fourth possible implementation manner provided on the basis of the third possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
the response signal also carries location based service information LBS information of the networking equipment;
determining a designated gateway based on the response signal, comprising:
determining a position area where the networking equipment corresponding to the radio frequency identification is located according to the LBS information;
querying gateways located in the location area;
and determining the gateway located in the position area as the designated gateway.
The terminal provided by the embodiment of the invention inquires the physical address corresponding to the radio frequency identification from the server based on the corresponding relation between the radio frequency identification and the physical address stored in the server, and sends the indication message for establishing connection with the networking equipment to the designated gateway after determining the designated gateway according to the response signal sent by the networking equipment. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be a computer-readable storage medium contained in the memory in the foregoing embodiment; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium stores one or more programs for use by one or more processors in performing a method of establishing a network connection, the method comprising:
broadcasting a probe signal;
receiving a response signal returned by the networking equipment, wherein the response signal at least carries the radio frequency identification of the networking equipment;
sending an inquiry request to a server according to the received radio frequency identification, and inquiring a physical address corresponding to the radio frequency identification from a first database by the server, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
when a physical address sent by a server is received, determining a designated gateway according to a response signal;
and sending an indication message to the designated gateway, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into the connection list.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
determining a designated gateway based on the response signal, comprising:
according to the radio frequency identification, user identity information corresponding to the radio frequency identification is inquired from a second database, and the corresponding relation between each equipment identification and the user identity information is stored in the second database;
according to the user identity information, a gateway identifier corresponding to the user identity information is inquired from the second data;
and determining the gateway corresponding to the gateway identification as the designated gateway.
Assuming that the above is the second possible implementation manner, in a third possible implementation manner provided on the basis of the second possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
the response signal also carries a gateway identifier of the gateway to be accessed;
determining a designated gateway based on the response signal, comprising:
determining a gateway to be accessed according to the gateway identification of the gateway to be accessed;
and determining the gateway to be accessed as the designated gateway.
Assuming that the above is the third possible implementation manner, in a fourth possible implementation manner provided on the basis of the third possible implementation manner, the memory of the terminal further includes instructions for performing the following operations:
the response signal also carries location based service information LBS information of the networking equipment;
determining a designated gateway based on the response signal, comprising:
determining a position area where the networking equipment corresponding to the radio frequency identification is located according to the LBS information;
querying gateways located in the location area;
determining gateways located in a location area as designated gateways
The computer-readable storage medium provided in the embodiment of the present invention queries, based on a correspondence between a radio frequency identifier and a physical address stored in a server, the physical address corresponding to the radio frequency identifier from the server, and sends an indication message for establishing a connection with a networking device to a designated gateway after determining the designated gateway according to a response signal sent by the networking device. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
The embodiment of the invention provides a graphical user interface, which is used for establishing a network connection terminal, wherein the terminal for executing the establishment of the connection comprises a touch screen display, a memory and one or more processors for executing one or more programs; the graphical user interface includes:
broadcasting a probe signal;
receiving a response signal returned by the networking equipment, wherein the response signal at least carries the radio frequency identification of the networking equipment;
sending an inquiry request to a server according to the received radio frequency identification, and inquiring a physical address corresponding to the radio frequency identification from a first database by the server, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
when a physical address sent by a server is received, determining a designated gateway according to a response signal;
and sending an indication message to the designated gateway, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into the connection list.
The graphical user interface provided by the embodiment of the invention inquires the physical address corresponding to the radio frequency identification from the server based on the corresponding relation between the radio frequency identification and the physical address stored in the server, and sends the indication message for establishing connection with the networking equipment to the specified gateway after the specified gateway is determined according to the response signal sent by the networking equipment. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
Fig. 9 is a block diagram illustrating an apparatus 900 for establishing a network connection in accordance with an example embodiment. For example, the apparatus 900 may be provided as an establish connection server. Referring to fig. 9, the apparatus 900 includes a processing component 922, which further includes one or more processors, and memory resources, represented by memory 932, for storing instructions, such as applications, that are executable by the processing component 922. The application programs stored in memory 932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 922 is configured to execute instructions to perform the above-described method of establishing a connection, the method comprising:
receiving an inquiry request sent by radio frequency equipment, wherein the inquiry request at least carries a radio frequency identification of the networking equipment;
according to the received radio frequency identification, inquiring a physical address corresponding to the radio frequency identification from a first database, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
and sending the physical address corresponding to the radio frequency identification to the radio frequency equipment, sending an indication message to a designated gateway by the radio frequency equipment, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into the connection list.
In another embodiment of the invention, the first database is maintained by the equipment manufacturer.
In another embodiment of the invention, the connection established by the gateway and the networking device corresponding to the radio frequency identification is designated as a network connection or a bluetooth connection.
In another embodiment of the present invention, the method further comprises:
and receiving the corresponding relation between the equipment identification of the sold equipment and the user identity information sent by the equipment seller, and storing the corresponding relation between the equipment identification and the user identity information in a second database.
In another embodiment of the present invention, after sending the physical address corresponding to the radio frequency identifier to the radio frequency device, the method further includes:
receiving a locking request sent by a user, wherein the locking request at least carries user identity information of the user;
according to the user identity information, inquiring equipment identification corresponding to the user identity information from a second database;
and locking the networking equipment corresponding to the equipment identification.
In another embodiment of the present invention, after locking the networked device corresponding to the device identifier, the method further includes:
when the networking equipment is detected to establish connection, the IP address of the networking equipment is obtained;
and positioning the networking equipment according to the IP address of the networking equipment.
In another embodiment of the present invention, after sending the physical address corresponding to the radio frequency identifier to the radio frequency device, the method further includes:
and when detecting that the operating system of the local terminal is updated, sending an update message to the networking equipment which establishes connection with the specified gateway, and updating the operating system of the networking equipment by the networking equipment according to the update message.
The server provided by the embodiment of the invention receives an inquiry request which is sent by radio frequency equipment and at least carries a radio frequency identification of networking equipment, inquires a physical address corresponding to the radio frequency identification, sends the inquired physical address to the radio frequency equipment, and sends an indication message to a designated gateway by the radio frequency equipment according to the physical address so as to establish connection between the designated gateway and the networking equipment. In the process, the automatic connection between the gateway and the networking equipment can be realized without any complicated setting operation performed by a user, and the operation complexity is simplified.
It should be noted that: when the radio frequency device and the server provided in the above embodiments establish a connection between the networking device and the gateway, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the radio frequency device is divided into different functional modules to complete all or part of the functions described above. In addition, the radio frequency device, the server and the method for establishing connection provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (26)
1. A method of establishing a network connection, the method comprising:
broadcasting a probe signal;
receiving a response signal returned by the networking equipment, wherein the response signal at least carries the radio frequency identification of the networking equipment;
sending an inquiry request to a server according to a received radio frequency identification, and inquiring a physical address corresponding to the radio frequency identification from a first database by the server, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
when a physical address sent by the server is received, determining a designated gateway according to the response signal;
and sending an indication message to the designated gateway, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into a connection list.
2. The method of claim 1, wherein determining the designated gateway based on the response signal comprises:
according to the radio frequency identification, user identity information corresponding to the radio frequency identification is inquired from a second database, and the corresponding relation between each radio frequency identification and the user identity information is stored in the second database;
according to the user identity information, a gateway identifier corresponding to the user identity information is inquired from the second data;
and determining the gateway corresponding to the gateway identification as a designated gateway.
3. The method according to claim 1, wherein the response signal further carries a gateway identifier of a gateway to be accessed;
the determining the designated gateway according to the response signal includes:
determining a gateway to be accessed according to the gateway identification of the gateway to be accessed;
and determining the gateway to be accessed as a designated gateway.
4. The method according to claim 1, wherein the response signal further carries location based service information, LBS, information of networked devices;
the determining the designated gateway according to the response signal includes:
according to the LBS information, determining a position area where networking equipment corresponding to the radio frequency identification is located;
querying gateways located within the location area;
and determining the gateway located in the position area as a designated gateway.
5. A method of establishing a network connection, the method comprising:
receiving an inquiry request sent by radio frequency equipment, wherein the inquiry request at least carries a radio frequency identification of networking equipment;
according to the received radio frequency identification, a physical address corresponding to the radio frequency identification is inquired from a first database, and the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
and sending the physical address corresponding to the radio frequency identification to radio frequency equipment, and sending an indication message to an appointed gateway by the radio frequency equipment, wherein the appointed gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the appointed gateway to add the physical address corresponding to the radio frequency identification into a connection list.
6. The method of claim 5, wherein the first database is maintained by a device manufacturer.
7. The method of claim 5, wherein the connection established by the designated gateway and the networking device corresponding to the radio frequency identification is a network connection.
8. The method of claim 5, further comprising:
receiving the corresponding relation between the radio frequency identification of the sold equipment and the user identity information sent by the equipment seller, and storing the corresponding relation between the radio frequency identification and the user identity information in a second database.
9. The method of claim 8, wherein after sending the physical address corresponding to the radio frequency identifier to the radio frequency device, further comprising:
receiving a locking request sent by a user, wherein the locking request at least carries user identity information of the user;
according to the user identity information, inquiring a radio frequency identification corresponding to the user identity information from the second database;
and locking the networking equipment corresponding to the radio frequency identification.
10. The method of claim 9, wherein after locking the networking device corresponding to the radio frequency identifier, further comprising:
when the networking equipment is detected to establish connection, the IP address of the networking equipment is obtained;
and positioning the networking equipment according to the IP address of the networking equipment.
11. The method of claim 5, wherein after sending the physical address corresponding to the radio frequency identifier to the radio frequency device, further comprising:
and when detecting that the operating system of the local terminal is updated, sending an updating message to the networking equipment which establishes connection with the specified gateway, and updating the operating system of the networking equipment according to the updating message by the networking equipment.
12. A radio frequency device, characterized in that the radio frequency device comprises:
a broadcasting module for broadcasting a probe signal;
the receiving module is used for receiving a response signal returned by the networking equipment, wherein the response signal at least carries the radio frequency identification of the networking equipment;
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending an inquiry request to a server according to a received radio frequency identification, the server inquires a physical address corresponding to the radio frequency identification from a first database, and the first database is used for storing a corresponding relation between the radio frequency identification and the physical address;
the determining module is used for determining the designated gateway according to the response signal when receiving the physical address sent by the server;
and the second sending module is used for sending an indication message to the designated gateway, wherein the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identifier, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identifier into a connection list.
13. The radio frequency device according to claim 12, wherein the determining module is configured to query, according to the radio frequency identifier, user identity information corresponding to the radio frequency identifier from a second database, where the second database stores a corresponding relationship between each radio frequency identifier and the user identity information; according to the user identity information, a gateway identifier corresponding to the user identity information is inquired from the second data; and determining the gateway corresponding to the gateway identification as a designated gateway.
14. The radio frequency device according to claim 12, wherein the response signal further carries a gateway identifier of a gateway to be accessed;
the determining module is used for determining the gateway to be accessed according to the gateway identification of the gateway to be accessed; and determining the gateway to be accessed as a designated gateway.
15. The radio frequency device according to claim 12, wherein the response signal further carries location based service information, LBS, information of a networked device;
the determining module is configured to determine, according to the LBS information, a location area where a networking device corresponding to the radio frequency identifier is located; querying gateways located within the location area; and determining the gateway located in the position area as a designated gateway.
16. A server, characterized in that the server comprises:
the first receiving module is used for receiving an inquiry request sent by radio frequency equipment, wherein the inquiry request at least carries a radio frequency identification of networking equipment;
the first query module is used for querying a physical address corresponding to the radio frequency identification from a first database according to the received radio frequency identification, wherein the first database is used for storing the corresponding relation between the radio frequency identification and the physical address;
the first sending module is used for sending the physical address corresponding to the radio frequency identification to the radio frequency equipment, the radio frequency equipment sends an indication message to a designated gateway, the designated gateway is a gateway to be accessed of the networking equipment corresponding to the radio frequency identification, and the indication message is used for indicating the designated gateway to add the physical address corresponding to the radio frequency identification into a connection list.
17. The server according to claim 16, wherein the first query module queries a first database of physical addresses corresponding to the rfids and is maintained by a device manufacturer.
18. The server according to claim 16, wherein the connection established by the specified gateway and the networking device corresponding to the radio frequency identifier, which is indicated by the connection instruction sent by the first sending module, is a network connection.
19. The server of claim 16, further comprising:
and the second receiving module is used for receiving the corresponding relation between the radio frequency identification of the sold equipment and the user identity information sent by the equipment seller and storing the corresponding relation between the radio frequency identification and the user identity information in a second database.
20. The server of claim 19, further comprising:
a third receiving module, configured to receive a locking request sent by a user, where the locking request at least carries user identity information of the user;
the second query module is used for querying the radio frequency identification corresponding to the user identity information from the second database according to the user identity information;
and the locking module is used for locking the networking equipment corresponding to the radio frequency identification.
21. The server of claim 20, further comprising:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring the IP address of the networking equipment when the networking equipment is detected to establish connection;
and the positioning module is used for positioning the networking equipment according to the IP address of the networking equipment.
22. The server of claim 16, further comprising:
and the second sending module is used for sending an updating message to the networking equipment which establishes connection with the specified gateway when the local operating system is detected to be updated, and the networking equipment updates the operating system according to the updating message.
23. A radio frequency device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the method of establishing a network connection according to any one of claims 1-4.
24. A server, characterized in that the server comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by the processor to implement the method of establishing a network connection according to any one of claims 5-11.
25. A computer readable medium, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the method of establishing a network connection according to any one of claims 1-4.
26. A computer readable medium, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the method of establishing a network connection according to any one of claims 5-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510150080.3A CN106162811B (en) | 2015-03-31 | 2015-03-31 | Method and device for establishing network connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510150080.3A CN106162811B (en) | 2015-03-31 | 2015-03-31 | Method and device for establishing network connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106162811A CN106162811A (en) | 2016-11-23 |
CN106162811B true CN106162811B (en) | 2019-12-24 |
Family
ID=57337890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510150080.3A Active CN106162811B (en) | 2015-03-31 | 2015-03-31 | Method and device for establishing network connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106162811B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106657093B (en) * | 2016-12-29 | 2020-07-31 | 河南国立智能技术研究院有限公司 | Gateway protocol for smart home |
CN106878923B (en) * | 2017-01-09 | 2021-04-23 | 云丁网络技术(北京)有限公司 | Quick networking method for ultra-low power consumption intelligent equipment and intelligent home system |
CN111615172B (en) * | 2019-02-22 | 2023-01-24 | 阿里巴巴集团控股有限公司 | Network configuration method, device, equipment and system |
CN111836105B (en) * | 2019-04-16 | 2023-04-28 | 中科网联数据科技有限公司 | Television user identity recognition method and television terminal |
CN114727265A (en) * | 2021-01-05 | 2022-07-08 | 亚旭电脑股份有限公司 | Login system and login method for field |
WO2024045166A1 (en) * | 2022-09-02 | 2024-03-07 | Qualcomm Incorporated | Radio frequency internet-of-things device discovery |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104010327A (en) * | 2014-06-18 | 2014-08-27 | 江勇 | Method and system for quickly having access to WIFI wireless network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110090829A1 (en) * | 2009-04-21 | 2011-04-21 | Jane Zhen Wu | System and method for handsets and access points power saving |
-
2015
- 2015-03-31 CN CN201510150080.3A patent/CN106162811B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104010327A (en) * | 2014-06-18 | 2014-08-27 | 江勇 | Method and system for quickly having access to WIFI wireless network |
Non-Patent Citations (2)
Title |
---|
Conciliating remote home network access and MAC-address control;Stphane Onno,Christoph Neumann,etc.;《2012 IEEE International Conference on Consumer Electronics (ICCE)》;20120116;98-99 * |
无线智能家居控制网络及其协议设计;唐京城;《中国优秀硕士学位论文全文数据库 电子期刊》;20080315;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN106162811A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107094294B (en) | Network connection method and device | |
CN106162811B (en) | Method and device for establishing network connection | |
US9958841B2 (en) | Method and device for remotely controlling household appliance, and computer readable storage medium | |
CN105429775B (en) | Method and device for reporting log | |
CN107040610B (en) | Method of data synchronization, device, storage medium, terminal and server | |
CN103455330A (en) | Application program management method, terminal, equipment and system | |
CN112269842B (en) | Information processing method, device, storage medium and computer equipment | |
CN106131930A (en) | A kind of WiFi network connection control method, device and terminal | |
CN105530684B (en) | Network access method, device and system | |
CN106161147B (en) | Establish the method and device of network connection | |
CN113489630A (en) | Network distribution method, device, storage medium and electronic terminal | |
CN104901992B (en) | A kind of method and apparatus of resource transfers | |
CN107317828B (en) | File downloading method and device | |
CN107872791B (en) | Access point connection method and device | |
CN103399706A (en) | Page interaction method, device and terminal | |
CN106470234B (en) | Equipment discovery method and device | |
CN105577712B (en) | A kind of file uploading method, device and system | |
CN103561155A (en) | Method for sending message, device thereof and terminal | |
CN103501373A (en) | Method, device and terminal for making call | |
CN105025064B (en) | Download the method, apparatus and system of file | |
CN106507357B (en) | Access control method and terminal equipment | |
CN109348425B (en) | Positioning information updating method, device, equipment and storage medium | |
CN105703808A (en) | Method and device for transmitting data | |
CN108234275B (en) | Method and device for releasing communication information | |
CN106817370B (en) | Method and device for transmitting network data |
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 |