CN114980255A - Network access method, device, equipment and product of intelligent equipment - Google Patents

Network access method, device, equipment and product of intelligent equipment Download PDF

Info

Publication number
CN114980255A
CN114980255A CN202210571737.3A CN202210571737A CN114980255A CN 114980255 A CN114980255 A CN 114980255A CN 202210571737 A CN202210571737 A CN 202210571737A CN 114980255 A CN114980255 A CN 114980255A
Authority
CN
China
Prior art keywords
information
client
network access
determining
work order
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.)
Pending
Application number
CN202210571737.3A
Other languages
Chinese (zh)
Inventor
洪帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202210571737.3A priority Critical patent/CN114980255A/en
Publication of CN114980255A publication Critical patent/CN114980255A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The invention discloses a network access method, a network access device, network access equipment and a network access product of intelligent equipment, which relate to the technical field of communication, and the method comprises the following steps: determining position information, sending the position information to a server, and determining a distribution network work order returned by the server; configuring network access information based on the network access work order, opening a hotspot of the intelligent equipment based on the network access information, and establishing socket connection with the intelligent equipment based on the hotspot; based on the socket connection, sending device information and a physical address corresponding to the intelligent device to the server; and determining binding success information returned by the server, and binding and associating the intelligent equipment at the geographic position corresponding to the position information. The invention reduces the use cost of the user, simplifies the user operation, has simple whole flow, does not need excessive operation of the user, and reduces the difficulty of the user to access the intelligent gateway, thereby lowering the operation of the distribution network to the user for self operation.

Description

Network access method, device, equipment and product of intelligent equipment
Technical Field
The invention relates to the technical field of communication, in particular to a network access method, a network access device, network access equipment and a network access product of intelligent equipment.
Background
The intelligent home is characterized in that various intelligent devices in a room are connected together through the Internet of things technology, and then the intelligent devices are managed and controlled through software, so that automation and intellectualization of the devices are realized. In order to facilitate the network access of new devices after users purchase the smart devices, the smart devices can be connected to the network by downloading and installing corresponding clients, such as application programs (apps), but in the network distribution process of the existing smart devices, the network distribution process is complicated, and professional network distribution personnel or network distribution prompt information is required to realize the network distribution process, so that the network access efficiency of the smart devices is low, and the safety cannot be guaranteed,
disclosure of Invention
In view of this, embodiments of the present invention provide a network access method, an apparatus, a device and a product for an intelligent device, so as to solve the problems that the network access efficiency of the intelligent device is low and the security cannot be guaranteed due to a complex network distribution process.
According to a first aspect, an embodiment of the present invention provides a method for accessing a network by a smart device, where the method is applied to a client installed in the smart device, and the method includes:
determining position information, sending the position information to a server, and determining a distribution network work order returned by the server;
configuring network access information based on the network access work order, opening a hotspot of the intelligent equipment based on the network access information, and establishing socket connection with the intelligent equipment based on the hotspot; the network access information comprises the name, the password, the network access mode and the service port protocol of the network to be bound;
based on the socket connection, sending device information and a physical address corresponding to the intelligent device to the server;
determining binding success information returned by the server, and binding and associating the intelligent equipment at the geographic position corresponding to the position information; the binding success information is generated when the server side successfully binds with the distribution network work order based on the equipment information and the physical address.
With reference to the first aspect, in a first implementation manner of the first aspect, the determining location information, sending the location information to the server, and determining a distribution network work order returned by the server specifically includes:
determining the location information;
adding the device information based on the determined room information; the room information is generated by the server side based on the position information matching and returned to the client side;
and determining the distribution work order generated and returned by the client based on the equipment information.
With reference to the first aspect, in a second implementation manner of the first aspect, the sending, to the server, device information and a physical address corresponding to the smart device based on the socket connection specifically includes:
sending the network access information to the intelligent device based on the socket connection, and determining the device information and the physical address returned by the intelligent device based on the network access information; the network access information is sent in a binary data stream mode;
generating confirmation information based on the returned equipment information and the physical address; the intelligent device disconnects the socket connection and the hotspot based on the confirmation information.
According to a second aspect, an embodiment of the present invention further provides a network access method for an intelligent device, where the method is applied to a server, and the method includes:
determining position information sent by a client, generating a distribution network work order, and sending the distribution network work order to the client;
determining the equipment information and the physical address returned by the client, binding the equipment information and the physical address with the distribution network work order, and generating binding success information when the binding is successful; the device information and the physical address are determined by the client from the smart device on which the client is installed based on the socket connection established based on the hotspot of the smart device.
With reference to the second aspect, in a first implementation manner of the second aspect, the determining location information sent by the client, generating a distribution network work order, and sending the distribution network work order to the client specifically includes:
determining the position information sent by the client;
matching room information corresponding to the position information from an information base based on the geographic position, and sending the room information to the client; the information base stores a plurality of pieces of room information, and the room numbers and the room positions corresponding to different pieces of room information are different;
and determining the equipment information returned by the client based on the room position, generating the distribution network work order, and sending the distribution network work order to the client.
According to a third aspect, an embodiment of the present invention further provides an apparatus for enabling a smart device to access a network, where the apparatus is applied to a client installed in the smart device, and the apparatus includes:
the first determining module is used for determining position information, sending the position information to a server and determining a distribution network work order returned by the server;
the communication establishing module is used for configuring network access information based on the network distribution work order, opening a hotspot of the intelligent equipment based on the network access information, and establishing socket connection with the intelligent equipment based on the hotspot; the network access information comprises the name, the password, the network access mode and the service port protocol of the network to be bound;
the second determining module is used for sending the device information and the physical address corresponding to the intelligent device to the server side based on the socket connection;
a network access module is configured, and is used for determining binding success information returned by the server, and binding and associating the intelligent equipment at the geographic position corresponding to the position information; the binding success information is generated when the server side successfully binds with the distribution network work order based on the equipment information and the physical address.
According to a fourth aspect, an embodiment of the present invention further provides an apparatus for enabling an intelligent device to access a network, where the apparatus is applied to a server, and the apparatus includes:
the third determining module is used for determining the position information sent by the client, generating a distribution network work order and sending the distribution network work order to the client;
the network access binding module is used for determining the equipment information and the physical address returned by the client, binding the equipment information and the physical address with the distribution network work order and generating binding success information when the binding is successful; the device information and the physical address are determined by the client from the smart device on which the client is installed based on the socket connection established based on the hotspot of the smart device.
According to a fifth aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the smart device network accessing method according to any one of the above descriptions when executing the computer program.
According to a sixth aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the smart device networking method according to any one of the above.
According to a seventh aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for accessing a network by an intelligent device is implemented as any one of the above methods.
According to the network access method, device, equipment and product of the intelligent equipment, the client binds and associates the current geographic position of the client with the intelligent equipment based on the network distribution work order generated by the geographic position of the server, so that the binding address position of the intelligent equipment is achieved, and further, the security and the only addition guarantee are provided for the binding and control process of the intelligent equipment; the network access information required by network access is configured based on the configuration work order, the use cost of a user is reduced, the operation of the user is simplified, then a hotspot of the intelligent equipment is opened based on the network access information, the intelligent equipment sends out a Wi-Fi signal, the client establishes socket connection with the intelligent equipment, the equipment information and the physical address of the intelligent equipment provided with the client are determined according to the socket connection, the equipment information and the physical address are sent to the server and bound with the distribution work order, so that the intelligent equipment is bound with the geographical position, the network is distributed based on the gateway, the whole process is simple, excessive operation of the user is not needed, the difficulty of the user in network access of the intelligent gateway is reduced, and the operation of the distribution network is transferred to the operation of the user; interaction between the client and the intelligent equipment is realized through a hot spot of the intelligent equipment, so that network access information can be dynamically issued, and in addition, the intelligent equipment and a network to be bound use TCP (transmission control protocol) to be safer and more reliable, a one-to-one transmission mode is oriented, the problem of packet loss is effectively avoided, the safety and the network access efficiency are improved, and the investment of background and hardware research and development on equipment network access is simplified;
the server generates a distribution network work order based on the geographical position, and binds and associates the current geographical position of the client with the intelligent equipment, so that the binding address position of the intelligent equipment is reached, and further, the security and the uniqueness of the binding and control process of the intelligent equipment are ensured; the binding distance is simplified and the network access efficiency is improved by binding the equipment information, the physical address and the distribution network work order; interaction between the client and the intelligent equipment is achieved through hot spots of the intelligent equipment, network access information can be dynamically issued, the intelligent equipment and a network to be bound use TCP (transmission control protocol) to be safer and more reliable, a one-to-one transmission mode is oriented, the problem of packet loss is effectively avoided, safety and network access efficiency are improved, and investment of background and hardware research and development on equipment network access is simplified.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:
fig. 1 is a schematic flowchart illustrating a network access method of an intelligent device according to an embodiment of the present invention when applied to a client;
fig. 2 shows a specific flowchart of step S101 in the network access method for an intelligent device according to the embodiment of the present invention;
fig. 3 shows a specific flowchart of step S301 in the network access method for an intelligent device according to the embodiment of the present invention.
Fig. 4 is a schematic flowchart illustrating a process when the network access method for an intelligent device according to an embodiment of the present invention is applied to a server;
fig. 5 shows a specific flowchart of step S201 in the network access method for an intelligent device according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram illustrating an intelligent device network access apparatus according to an embodiment of the present invention when applied to a client;
fig. 7 is a schematic structural diagram illustrating a network access device of an intelligent device according to an embodiment of the present invention when the network access device is applied to a server;
fig. 8 shows a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The network access method of the smart device of the present application is described below with reference to fig. 1, where the method shown in fig. 1 is applied to a client, such as an app, and the method includes:
s101, determining position information, sending the position information to a server side, and determining a distribution network work order returned by the server side. The distribution network work order may include information such as work order product id (orderid), and the distribution network work order corresponds to the client.
It should be noted that the client may perform network access of the smart device multiple times, where the same smart device may be in multiple locations, or multiple different devices may be in the network, and the same client may perform network access of only one smart device at a certain time.
In the method, the server can be a background server, a management system and the like.
S102, configuring network access information based on a network distribution work order, and opening a hotspot of the intelligent device based on the network access information, wherein the hotspot of the intelligent device comprises an Internet Protocol (IP) address and a specified port (for example, a 7777 port) address, so that the client establishes socket (socket) connection with the intelligent device based on the hotspot. socket is a foundation of communication, and is a basic operation unit of path communication supporting a TCP/IP protocol, and socket can be regarded as an endpoint in respective communication connection when two network applications communicate. Specifically, after the hotspot is opened, the intelligent device can send out a Wi-Fi signal, a user operates the client to enter a Wi-Fi list page, socket connection between the client and the intelligent device is established, and communication between the client and the intelligent device is achieved.
For example, a TCP socket connection is established through an IP Port Port.
In the method, the network access information includes the network access required information such as the name (SSID) of the network to be bound, the password (password), the network access mode, the service port protocol and the like.
Preferably, in some possible embodiments, the client requests distribution network guidance and distribution network information from the server according to the generated distribution network work order, and the client displays each subsequent step and operation through a loading connection after obtaining a distribution network guidance connection sent by the server, and the connection can also display equipment information.
Then, the user starts a distribution network mode of the intelligent device according to the distribution network guide, for example, pressing for a few seconds for a long time, pressing for a few times for a short time continuously, and the like, and after the distribution network mode is started by the intelligent device, a hotspot can be started by a gateway such as a plus gateway and the like and a Wi-Fi signal can be initiated.
It should be noted that the client connects to Wi-Fi sent by the plus gateway, acquires information of the plus gateway, that is, acquires the mac address of the gateway, and if the acquisition fails, generates and prompts the user that the distribution network fails at the client, and prompts the user to reconnect to the gateway Wi-Fi until the next step is reached after the connection succeeds.
S103, based on the socket connection, sending the device information and the physical address (mac address) corresponding to the intelligent device to the server.
In the method, the device information includes basic information such as the model, attribute, device code, etc. of the device.
And S104, determining the binding success information returned by the server, and binding and associating the intelligent device at the geographic position corresponding to the position information. According to the method and the device, the current geographic position of the client is bound and associated with the intelligent device, and further guarantee is added for the safety and uniqueness of the binding and control process of the intelligent device, for example, the same instruction can only control the intelligent device in the associated geographic position.
In the method, the binding success information is generated when the service end successfully binds with the distribution network work order based on the equipment information and the physical address.
According to the network access method of the intelligent equipment, the client binds and associates the current geographical position of the client with the intelligent equipment based on the network distribution work order generated by the geographical position of the server, so that the address position is bound by the intelligent equipment, and further, the safety and the uniqueness of the binding and control process of the intelligent equipment are ensured; the network access information required by network access is configured based on the configuration work order, the use cost of a user is reduced, the operation of the user is simplified, then a hotspot of the intelligent equipment is opened based on the network access information, the intelligent equipment sends out a Wi-Fi signal, the client establishes socket connection with the intelligent equipment, the equipment information and the physical address of the intelligent equipment provided with the client are determined according to the socket connection, the equipment information and the physical address are sent to the server and bound with the distribution work order, so that the intelligent equipment is bound with the geographical position, the network is distributed based on the gateway, the whole process is simple, excessive operation of the user is not needed, the difficulty of the user in network access of the intelligent gateway is reduced, and the operation of the distribution network is transferred to the operation of the user; the interaction between the client and the intelligent equipment is realized through the hot spot of the intelligent equipment, so that the network access information can be dynamically issued, in addition, the intelligent equipment and the network to be bound use TCP (transmission control protocol) to be safer and more reliable, a one-to-one transmission mode is oriented, the problem of packet loss is effectively avoided, the safety and the network access efficiency are improved, and the investment of background and hardware research and development on equipment network access is simplified.
The network access method of the intelligent device of the present application is described below with reference to fig. 2, where step S101 specifically includes:
and S1011, determining the position information. In the application, the position information can be determined by the client through active input to the client, or the client can be determined based on means such as bluetooth and GPS.
S1012, adding device information based on the determined room information.
In the method, the room information is matched by the server side based on the position information and returned to the client side, and the room information can comprise a room number, room properties (such as an object, a bedroom, a balcony, a kitchen and the like), the geographic position of the room and the like.
And S1013, determining the distribution network work order generated and returned by the client based on the equipment information.
In the method, the configuration work order is processed and generated based on the equipment information, the room information and the geographic position.
The network access method of the intelligent device of the present application is described below with reference to fig. 3, where step S103 specifically includes:
and S1031, based on the socket connection, sending the network access information to the intelligent device, and determining device information returned by the intelligent device based on the network access information.
In the application, after the client packs the network access information and assembles the network access information into a binary data stream, the binary data stream is edited and processed according to a certain rule and then is sent to the intelligent device through scotekt. After receiving the edited network access information, the equipment returns the relevant information such as the equipment information, the physical address and the like through socket connection.
And S1032, generating confirmation information based on the returned equipment information and the physical address. And after receiving the equipment information and the physical address, the client sends confirmation information to the intelligent equipment, and the intelligent equipment disconnects the socket connection and the hot spot and disconnects the communication with the client based on the confirmation information.
The network access method of the smart device of the present application is described below with reference to fig. 4, where the method shown in fig. 4 is applicable to a server, such as a background server and a management system, and the method includes:
s201, determining the position information sent by the client, generating a distribution network work order, and sending the distribution network work order to the client.
In this embodiment, the server may generate a plurality of configuration work orders corresponding to the plurality of clients at a certain time or in a certain time period, and in this embodiment, the clients may process and generate all the configuration work orders at the same time, or may process and generate the configuration work orders sequentially according to the order of determining the location information.
S202, determining the equipment information and the physical address returned by the client, binding the equipment information and the physical address with the distribution network work order, and generating binding success information when the binding is successful.
The device information and the physical address are determined by the client from a smart device in which the client is installed based on a socket connection, and the socket connection is established based on a hot spot of the smart device.
According to the network access method of the intelligent equipment, the service end generates the distribution network work order based on the geographic position, and the current geographic position of the client is bound and associated with the intelligent equipment, so that the address position is bound by the intelligent equipment, and further, the safety and the uniqueness of the binding and control process of the intelligent equipment are ensured; the binding distance is simplified and the network access efficiency is improved by binding the equipment information, the physical address and the distribution network work order; the interaction between the client and the intelligent equipment is realized through the hot spot of the intelligent equipment, the network access information can be dynamically issued, the intelligent equipment and the network to be bound use TCP (transmission control protocol) to be safer and more reliable, a one-to-one transmission mode is oriented, the problem of packet loss is effectively avoided, the safety and the network access efficiency are improved, and the investment of background and hardware research and development on equipment network access is simplified.
The network access method of the intelligent device of the present application is described below with reference to fig. 5, where step S201 specifically includes:
and S2011, determining the position information sent by the client. In the application, the position information can be determined by the client through active input to the client, or the client can be determined based on means such as bluetooth and GPS.
And S2012, matching the room information corresponding to the position information from the information base based on the geographic position, and sending the room information to the client.
In the method, a plurality of room information are stored in an information base, and the room numbers and the room (geographical) positions corresponding to different room information are different.
S2013, determining equipment information returned by the client based on the room position, generating a distribution network work order, and sending the distribution network work order to the client.
In the method, the room information is matched by the server side based on the position information and returned to the client side, and the room information can comprise a room number, room properties (such as an object, a bedroom, a balcony, a kitchen and the like), the geographic position of the room and the like.
The following describes the network access device for the intelligent device provided by the present invention, and the network access device for the intelligent device described below and the network access method for the intelligent device described above may be referred to correspondingly.
The network access apparatus of the smart device of the present application is described below with reference to fig. 6, where fig. 6 illustrates an apparatus suitable for a client, such as an app, and the apparatus includes:
the first determining module 101 is configured to determine location information, send the location information to the server, and determine a distribution network work order returned by the server. The distribution network work order may include information such as work order product id (orderid), and the distribution network work order corresponds to the client.
It should be noted that the client may perform network access of the smart device multiple times, where the network access may be performed by the same smart device at multiple locations, or may be performed by multiple different devices, and the same client may perform network access of only one smart device at a certain time.
In the device, the server can be a background server, a management system and the like.
The communication establishing module 102 is configured to configure network access information based on a network distribution work order, and open a hotspot of the smart device based on the network access information, and because the hotspot of the smart device includes an IP address and an address of a specified port (e.g., a 7777 port), the client establishes a socket (socket) connection with the smart device based on the hotspot. socket is a foundation of communication, and is a basic operation unit of path communication supporting a TCP/IP protocol, and socket can be regarded as an endpoint in respective communication connection when two network applications communicate. Specifically, after the hotspot is opened, the intelligent device can send out a Wi-Fi signal, a user operates the client to enter a Wi-Fi list page, socket connection between the client and the intelligent device is established, and communication between the client and the intelligent device is achieved.
For example, a TCP socket connection is established through an IP Port Port.
In the device, the network access information includes network access required information related to a name (SSID) of a network to be bound, a password (password), a network access mode, a service port protocol and the like.
Preferably, in some possible embodiments, the client requests distribution network guidance and distribution network information from the server according to the generated distribution network work order, and the client displays each subsequent step and operation through a loading connection after obtaining a distribution network guidance connection sent by the server, and the connection can also display equipment information.
Then, the user starts a distribution network mode of the intelligent device according to the distribution network guide, for example, pressing for a few seconds for a long time, pressing for a few times for a short time continuously, and the like, and after the distribution network mode is started by the intelligent device, a hotspot can be started by a gateway such as a plus gateway and the like and a Wi-Fi signal can be initiated.
It should be noted that the client connects to Wi-Fi sent by the plus gateway, acquires information of the plus gateway, that is, acquires the mac address of the gateway, and if the acquisition fails, generates and prompts the user that the distribution network fails at the client, and prompts the user to reconnect to the gateway Wi-Fi until the next step is reached after the connection succeeds.
The second determining module S103 is configured to send, to the server, device information and a physical address (mac address) corresponding to the intelligent device based on the socket connection.
In the apparatus, the device information includes basic information such as a model, an attribute, a device code, and the like of the device.
And the network access module 104 is configured to determine the binding success information returned by the server, and bind and associate the intelligent device at the geographic position corresponding to the position information. According to the method and the device, the current geographic position of the client is bound and associated with the intelligent device, and further guarantee is added for safety and uniqueness of the binding and control process of the intelligent device, for example, the same instruction can only control the intelligent device in the associated geographic position.
In the device, the binding success information is generated when the service end successfully binds with the distribution network work order based on the equipment information and the physical address.
According to the network access device of the intelligent equipment, the client binds and associates the current geographical position of the client with the intelligent equipment based on the network distribution work order generated by the geographical position of the server, so that the address position is bound by the intelligent equipment, and further, the safety and the uniqueness of the binding and control process of the intelligent equipment are ensured; the network access information required by network access is configured based on the configuration work order, the use cost of a user is reduced, the operation of the user is simplified, then a hotspot of the intelligent equipment is opened based on the network access information, the intelligent equipment sends out a Wi-Fi signal, the client establishes socket connection with the intelligent equipment, the equipment information and the physical address of the intelligent equipment provided with the client are determined according to the socket connection, the equipment information and the physical address are sent to the server and bound with the distribution work order, so that the intelligent equipment is bound with the geographical position, the network is distributed based on the gateway, the whole process is simple, excessive operation of the user is not needed, the difficulty of the user in network access of the intelligent gateway is reduced, and the operation of the distribution network is transferred to the operation of the user; the interaction between the client and the intelligent equipment is realized through the hot spot of the intelligent equipment, so that the network access information can be dynamically issued, in addition, the intelligent equipment and the network to be bound use TCP (transmission control protocol) to be safer and more reliable, a one-to-one transmission mode is oriented, the problem of packet loss is effectively avoided, the safety and the network access efficiency are improved, and the investment of background and hardware research and development on equipment network access is simplified.
The network access device of the smart device of the present application is described below with reference to fig. 7, where the device shown in fig. 7 is suitable for a server, such as a background server and a management system, and the device includes:
the second determining module 201 is configured to determine the location information sent by the client, generate a distribution network work order, and send the distribution network work order to the client.
In this embodiment, the server may generate a plurality of configuration work orders corresponding to the plurality of clients at a certain time or in a certain time period, and in this embodiment, the clients may process and generate all the configuration work orders at the same time, or may process and generate the configuration work orders sequentially according to the order of determining the location information.
And the network access binding module 202 is configured to determine the device information and the physical address returned by the client, bind both the device information and the physical address with the distribution network work order, and generate binding success information when the binding is successful.
The device information and the physical address are determined by the client from a smart device in which the client is installed based on a socket connection, and the socket connection is established based on a hot spot of the smart device.
According to the network access device of the intelligent equipment, the service end generates the distribution network work order based on the geographic position, and the current geographic position of the client is bound and associated with the intelligent equipment, so that the address position is bound by the intelligent equipment, and further, the safety and the uniqueness of the binding and control process of the intelligent equipment are ensured; the binding distance is simplified and the network access efficiency is improved by binding the equipment information, the physical address and the distribution network work order; interaction between the client and the intelligent equipment is achieved through hot spots of the intelligent equipment, network access information can be dynamically issued, the intelligent equipment and a network to be bound use TCP (transmission control protocol) to be safer and more reliable, a one-to-one transmission mode is oriented, the problem of packet loss is effectively avoided, safety and network access efficiency are improved, and investment of background and hardware research and development on equipment network access is simplified.
Fig. 8 illustrates a physical structure diagram of an electronic device, and as shown in fig. 8, the electronic device may include: a processor (processor)310, a communication Interface (communication Interface)320, a memory (memory)330 and a communication bus 340, wherein the processor 310, the communication Interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may call the logic command in the memory 330 to perform a smart device networking method, the method comprising:
determining position information, sending the position information to the server side, and determining a distribution network work order returned by the server side;
configuring network access information based on the network access work order, opening a hotspot of the intelligent equipment based on the network access information, and establishing socket connection with the intelligent equipment based on the hotspot; the network access information comprises the name, the password, the network access mode and the service port protocol of the network to be bound;
sending device information and a physical address corresponding to the intelligent device to the server based on the socket connection;
determining binding success information returned by the server, and binding and associating the intelligent equipment at the geographic position corresponding to the position information; the binding success information is generated when the server side successfully binds with the distribution network work order based on the equipment information and the physical address;
alternatively, the method comprises: determining the position information sent by the client, generating a distribution network work order, and sending the distribution network work order to the client;
determining the equipment information and the physical address returned by the client, binding the equipment information and the physical address with the distribution network work order, and generating binding success information when the binding is successful; the device information and the physical address are determined by the client from the smart device on which the client is installed based on the socket connection established based on the hotspot of the smart device.
In addition, the logic commands in the memory 330 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic commands are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of commands for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, where the computer program product includes a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, a computer can execute the method for accessing a network for a smart device provided by the above methods, where the method includes:
determining position information, sending the position information to the server side, and determining a distribution network work order returned by the server side;
configuring network access information based on the network access work order, opening a hotspot of the intelligent equipment based on the network access information, and establishing socket connection with the intelligent equipment based on the hotspot; the network access information comprises the name, the password, the network access mode and the service port protocol of the network to be bound;
based on the socket connection, sending device information and a physical address corresponding to the intelligent device to the server;
determining binding success information returned by the server, and binding and associating the intelligent equipment at the geographic position corresponding to the position information; the binding success information is generated when the server side successfully binds with the distribution network work order based on the equipment information and the physical address;
alternatively, the method comprises: determining the position information sent by the client, generating a distribution network work order, and sending the distribution network work order to the client;
determining the equipment information and the physical address returned by the client, binding the equipment information and the physical address with the distribution network work order, and generating binding success information when the binding is successful; the device information and the physical address are determined by the client from the smart device on which the client is installed based on the socket connection established based on the hotspot of the smart device.
In still another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the method for accessing a network by a smart device provided by the above methods, the method including:
determining position information, sending the position information to the server side, and determining a distribution network work order returned by the server side;
configuring network access information based on the network distribution work order, opening a hotspot of the intelligent equipment based on the network access information, and establishing socket connection with the intelligent equipment based on the hotspot; the network access information comprises the name, the password, the network access mode and the service port protocol of the network to be bound;
based on the socket connection, sending device information and a physical address corresponding to the intelligent device to the server;
determining binding success information returned by the server, and binding and associating the intelligent equipment at the geographic position corresponding to the position information; the binding success information is generated when the server side successfully binds with the distribution network work order based on the equipment information and the physical address;
alternatively, the method comprises: determining the position information sent by the client, generating a distribution network work order, and sending the distribution network work order to the client;
determining the equipment information and the physical address returned by the client, binding the equipment information and the physical address with the distribution network work order, and generating binding success information when the binding is successful; the device information and the physical address are determined by the client from the smart device on which the client is installed based on the socket connection established based on the hotspot of the smart device.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes commands for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to each embodiment or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A network access method for intelligent equipment is applied to a client, the client is installed in the intelligent equipment, and the method comprises the following steps:
determining position information, sending the position information to a server side, and determining a distribution network work order returned by the server side;
configuring network access information based on the network access work order, opening a hotspot of the intelligent equipment based on the network access information, and establishing socket connection with the intelligent equipment based on the hotspot; the network access information comprises the name, the password, the network access mode and the service port protocol of the network to be bound;
based on the socket connection, sending device information and a physical address corresponding to the intelligent device to the server;
determining binding success information returned by the server, and binding and associating the intelligent equipment at the geographic position corresponding to the position information; the binding success information is generated when the server side successfully binds with the distribution network work order based on the equipment information and the physical address.
2. The network access method of the intelligent device according to claim 1, wherein the determining the location information, sending the location information to the server, and determining the distribution network work order returned by the server specifically comprises:
determining the location information;
adding the device information based on the determined room information; the room information is generated by the server side based on the position information matching and returned to the client side;
and determining the distribution work order generated and returned by the client based on the equipment information.
3. The method according to claim 1, wherein the sending, to the server, device information and a physical address corresponding to the smart device based on the socket connection specifically includes:
sending the network access information to the intelligent device based on the socket connection, and determining the device information and the physical address returned by the intelligent device based on the network access information; the network access information is sent in a binary data stream mode;
generating confirmation information based on the returned equipment information and the physical address; the intelligent device disconnects the socket connection and the hotspot based on the confirmation information.
4. A network access method of intelligent equipment is applied to a server side, and is characterized by comprising the following steps:
determining position information sent by a client, generating a distribution network work order, and sending the distribution network work order to the client;
determining the equipment information and the physical address returned by the client, binding the equipment information and the physical address with the distribution network work order, and generating binding success information when the binding is successful; the device information and the physical address are determined by the client from the smart device on which the client is installed based on the socket connection established based on the hotspot of the smart device.
5. The method according to claim 4, wherein the determining the location information sent by the client, generating a distribution network work order, and sending the distribution network work order to the client specifically includes:
determining the position information sent by the client;
matching room information corresponding to the position information from an information base based on the geographic position, and sending the room information to the client; the information base stores a plurality of pieces of room information, and the room numbers and the room positions corresponding to different pieces of room information are different;
and determining the equipment information returned by the client based on the room position, generating the distribution network work order, and sending the distribution network work order to the client.
6. The utility model provides a smart machine network access device, the device is applied to the customer end, the customer end is installed in smart machine, its characterized in that, the device includes:
the first determining module is used for determining position information, sending the position information to a server and determining a distribution network work order returned by the server;
the communication establishing module is used for configuring network access information based on the network distribution work order, opening a hotspot of the intelligent equipment based on the network access information, and establishing socket connection with the intelligent equipment based on the hotspot; the network access information comprises the name, the password, the network access mode and the service port protocol of the network to be bound;
the second determining module is used for sending the device information and the physical address corresponding to the intelligent device to the server side based on the socket connection;
a network access module is configured, and is used for determining binding success information returned by the server, and binding and associating the intelligent equipment at the geographic position corresponding to the position information; the binding success information is generated when the server side successfully binds with the distribution network work order based on the equipment information and the physical address.
7. The utility model provides a smart machine device of logging in to network, the device is applied to the server side, its characterized in that, the device includes:
the third determining module is used for determining the position information sent by the client, generating a distribution network work order and sending the distribution network work order to the client;
the network access binding module is used for determining the equipment information and the physical address returned by the client, binding the equipment information and the physical address with the distribution network work order and generating binding success information when the binding is successful; the device information and the physical address are determined by the client from the smart device on which the client is installed based on the socket connection established based on the hotspot of the smart device.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the smart device networking method according to any of claims 1 to 5.
9. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the smart device networking method according to any one of claims 1 to 5.
10. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the smart device networking method of any of claims 1 to 5.
CN202210571737.3A 2022-05-24 2022-05-24 Network access method, device, equipment and product of intelligent equipment Pending CN114980255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210571737.3A CN114980255A (en) 2022-05-24 2022-05-24 Network access method, device, equipment and product of intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210571737.3A CN114980255A (en) 2022-05-24 2022-05-24 Network access method, device, equipment and product of intelligent equipment

Publications (1)

Publication Number Publication Date
CN114980255A true CN114980255A (en) 2022-08-30

Family

ID=82955491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210571737.3A Pending CN114980255A (en) 2022-05-24 2022-05-24 Network access method, device, equipment and product of intelligent equipment

Country Status (1)

Country Link
CN (1) CN114980255A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019153143A1 (en) * 2018-02-07 2019-08-15 华为技术有限公司 Network access method, device, and system
CN111447123A (en) * 2020-03-24 2020-07-24 北京金山云网络技术有限公司 Smart home configuration method and device, electronic equipment and medium
CN112015095A (en) * 2020-08-11 2020-12-01 深圳市欧瑞博科技股份有限公司 Networking configuration method and device of intelligent equipment, server and storage medium
CN112312515A (en) * 2020-11-26 2021-02-02 深圳市欧瑞博科技股份有限公司 Binding method and device of intelligent equipment, electronic equipment and storage medium
WO2021135299A1 (en) * 2019-12-30 2021-07-08 深圳Tcl新技术有限公司 Binding method and system for device network configuration, and mobile terminal and storage medium
CN113709142A (en) * 2021-08-26 2021-11-26 深圳小佳科技有限公司 Hotspot network distribution method and device, intelligent terminal and storage medium
CN113938391A (en) * 2021-10-12 2022-01-14 北京自如信息科技有限公司 Network distribution method and system for gateway equipment and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019153143A1 (en) * 2018-02-07 2019-08-15 华为技术有限公司 Network access method, device, and system
CN110692280A (en) * 2018-02-07 2020-01-14 华为技术有限公司 Network access method, equipment and system
WO2021135299A1 (en) * 2019-12-30 2021-07-08 深圳Tcl新技术有限公司 Binding method and system for device network configuration, and mobile terminal and storage medium
CN111447123A (en) * 2020-03-24 2020-07-24 北京金山云网络技术有限公司 Smart home configuration method and device, electronic equipment and medium
CN112015095A (en) * 2020-08-11 2020-12-01 深圳市欧瑞博科技股份有限公司 Networking configuration method and device of intelligent equipment, server and storage medium
CN112312515A (en) * 2020-11-26 2021-02-02 深圳市欧瑞博科技股份有限公司 Binding method and device of intelligent equipment, electronic equipment and storage medium
CN113709142A (en) * 2021-08-26 2021-11-26 深圳小佳科技有限公司 Hotspot network distribution method and device, intelligent terminal and storage medium
CN113938391A (en) * 2021-10-12 2022-01-14 北京自如信息科技有限公司 Network distribution method and system for gateway equipment and electronic equipment

Similar Documents

Publication Publication Date Title
EP1393169B1 (en) Method and system for automatically configuring a client-server network
TWI743405B (en) Voice broadcast method, intelligent broadcast device, one or more non-temporary computer storage media encoded with computer program instructions, and intelligent broadcast equipment
US10171997B2 (en) Method and apparatus for interconnection between terminal device and gateway device
EP2704517A1 (en) Mobile terminal application parameter configuration method, related device and system
CN104539422B (en) A kind of method, server and the terminal of the control of applications client authentication
CN111526201B (en) Robot management method, system and edge server
CN102368768A (en) Identification method, equipment and system as well as identification server
US20160300483A1 (en) Device Control Method, Server, System and Computer Storage Medium
CN103595759A (en) Desktop presenting method based on cloud
CN103701867A (en) Method, system and central server for processing call requests
CN111262746B (en) Equipment opening deployment system and method
CN114024790A (en) Distribution network binding method of intelligent household appliance, mobile terminal and cloud server
CN104837134A (en) Web authentication user registration method, device and system
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN103634792A (en) Method, device and system for monitoring WLAN network user state and client
CN113709239A (en) Intelligent household equipment communication method, equipment and medium
CN101958900A (en) Service processing method and device for server
CN104469770B (en) Towards WLAN authentication methods, platform and the system of third-party application
CN108989157B (en) Method and device for controlling intelligent equipment
CN106597873A (en) Method, device and system for carrying out remote maintenance of automation equipment
CN104394151A (en) Method, device and system for accessing campus network into operator network
CN114980255A (en) Network access method, device, equipment and product of intelligent equipment
CN103138961B (en) server control method, controlled server and central control server
CN105681262A (en) Interaction message allocating method and system
CN102904742B (en) To method of operation and the system of executable node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination