CN114245403B - Equipment network distribution method and device, electronic equipment and storage medium - Google Patents

Equipment network distribution method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114245403B
CN114245403B CN202111523148.XA CN202111523148A CN114245403B CN 114245403 B CN114245403 B CN 114245403B CN 202111523148 A CN202111523148 A CN 202111523148A CN 114245403 B CN114245403 B CN 114245403B
Authority
CN
China
Prior art keywords
distribution network
information
equipment
network
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111523148.XA
Other languages
Chinese (zh)
Other versions
CN114245403A (en
Inventor
刘洪钊
唐杰
巫锦辉
肖百钦
白青昀
温睿增
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111523148.XA priority Critical patent/CN114245403B/en
Publication of CN114245403A publication Critical patent/CN114245403A/en
Application granted granted Critical
Publication of CN114245403B publication Critical patent/CN114245403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a device network distribution method, a device, an electronic device and a storage medium, wherein the device network distribution method is applied to first equipment and comprises the following steps: after accessing the network, determining whether a first hot spot signal sent by the second equipment is detected; if the first hot spot signal is detected, acquiring distribution network authorization information through a server; establishing a first wireless AP connection with the second device through a first hot spot signal; and sending distribution network information to the second equipment through the first wireless AP connection, wherein the distribution network information comprises distribution network authorization information and routing information, and the distribution network information is used for indicating the second equipment to perform distribution network. The embodiment of the application can realize the network distribution of the second equipment which is not networked by using the first equipment which is networked, does not need to distribute a network App, does not need to manually input complex network distribution operation by a user, and improves network distribution efficiency.

Description

Equipment network distribution method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for device network allocation, an electronic device, and a storage medium.
Background
As more and more smart home devices enter the home, most of these products are to be connected with the WiFi network of the home, but the access of the WiFi network needs to know the name (SSID) and the password of the wireless router, and most of smart home devices cannot be provided with a keyboard and a screen, so that the wireless router to be connected with the smart home devices has difficulty in inputting the name and the password of the wireless router.
In order to overcome the problem, a plurality of network distribution methods are used by people, however, conventional manual network distribution is that users interact with equipment to be distributed through an App, and the users need to manually operate the App to perform network distribution, so that the operation is very complex and the efficiency is low.
Disclosure of Invention
The application provides a device network distribution method, a device, electronic equipment and a storage medium, which aim to solve the technical problem that a user needs to manually operate APP network distribution operation and has low efficiency.
In a first aspect, the present application provides a device network allocation method, which is applied to a first device, and includes:
after accessing the network, determining whether a first hot spot signal sent by the second equipment is detected;
if the first hot spot signal is detected, acquiring distribution network authorization information through a server;
establishing a first wireless AP connection with the second device through the first hot spot signal;
and sending distribution network information to the second equipment through the first wireless AP connection, wherein the distribution network information comprises distribution network authorization information and routing information, and the distribution network information is used for indicating the second equipment to perform distribution network.
Optionally, acquiring, by the server, the network allocation authorization information includes:
determining whether the current moment is in a preset distribution network authority window period;
if the current moment is within a preset distribution network authority window period, a first authority acquisition request is sent to a server, so that the server sends a second authority acquisition request to a user terminal;
and receiving distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the second permission acquisition request.
Optionally, acquiring, by the server, the network allocation authorization information includes:
if the current moment is outside the preset distribution network authority window period, sending prompt information to the server so that the server sends the prompt information to the user terminal, wherein the prompt information is used for indicating a user to open the preset distribution network authority window period;
determining whether the current moment is in a preset distribution network authority window period;
if the current moment is within the preset distribution network authority window period, a third authority acquisition request is sent to a server, so that the server sends a fourth authority acquisition request to a user terminal;
and receiving distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the fourth permission acquisition request.
Optionally, the method further comprises:
detecting a second hot spot signal sent by the user terminal;
establishing a second wireless AP connection with the user terminal through the second hot spot signal;
receiving route information sent by the user terminal through the second wireless AP connection;
and accessing the network by using the routing information.
Optionally, the method further comprises:
detecting a second hot spot signal sent by the user terminal;
establishing a second wireless AP connection with the user terminal through the second hot spot signal;
receiving user information sent by the user terminal through the second wireless AP connection;
and establishing communication connection with the server by utilizing the user information.
Optionally, establishing a first wireless AP connection with the second device through the hotspot signal includes:
acquiring user information sent by a user terminal;
and establishing the first wireless AP connection with the second equipment through the hot spot signal by utilizing the user information.
Optionally, determining whether the first hotspot signal sent by the second device is detected includes:
scanning surrounding hot spot signals;
acquiring a hotspot identification of the scanned hotspot signal;
determining whether the hotspot identification is a hotspot identification meeting a preset condition;
and if the hotspot identification is the hotspot identification meeting the preset condition, determining that the first hotspot signal sent by the second equipment is detected.
In a second aspect, the present application provides a device network configuration apparatus, applied to a first device, including:
the determining module is used for determining whether a first hot spot signal sent by the second equipment is detected after the network is accessed;
the acquisition module is used for acquiring distribution network authorization information through a server if the first hot spot signal is detected;
the establishing module is used for establishing a first wireless AP connection with the second equipment through the first hot spot signal;
the sending module is configured to send distribution network information to the second device through the first wireless AP connection, where the distribution network information includes distribution network authorization information and routing information, and the distribution network information is used to instruct the second device to perform distribution network.
Optionally, the acquiring module includes:
the first determining unit is used for determining whether the current moment is in a preset distribution network authority window period;
the first sending unit is used for sending a first permission acquisition request to the server if the current moment is within a preset distribution network permission window period, so that the server sends a second permission acquisition request to the user terminal;
the first receiving unit is used for receiving distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the permission acquisition.
Optionally, the acquiring module includes:
the second sending unit is used for sending prompt information to the server if the current moment is outside a preset distribution network authority window period, so that the server sends the prompt information to the user terminal, and the prompt information is used for indicating a user to open the preset distribution network authority window period;
the second determining unit is used for determining whether the current moment is in a preset distribution network authority window period;
the third sending unit is used for sending a first permission acquisition request to the server if the current moment is within a preset distribution network permission window period so that the server sends a second permission acquisition request to the user terminal;
and the second receiving unit is used for receiving the distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the authorization request.
Optionally, the apparatus further comprises:
the first detection module is used for detecting a second hot spot signal sent by the user terminal;
the first connection establishment module is used for establishing a second wireless AP connection with the user terminal through the second hot spot signal;
the first receiving module is used for receiving the route information sent by the user terminal through the second wireless AP connection;
and the access module is used for accessing the network by utilizing the routing information.
Optionally, the apparatus further comprises:
the second detection module is used for detecting a second hot spot signal sent by the user terminal;
the second connection establishment module is used for establishing a second wireless AP connection with the user terminal through the second hot spot signal;
the second receiving module is used for receiving user information sent by the user terminal through the second wireless AP connection;
and the third connection establishment module is used for establishing communication connection with the server by utilizing the user information.
Optionally, the establishing module includes:
the first acquisition unit is used for acquiring user information sent by the user terminal;
and the connection establishment unit is used for establishing the first wireless AP connection with the second equipment through the hot spot signal by utilizing the user information.
Optionally, the determining module includes:
the scanning unit is used for scanning surrounding hot spot signals;
the second acquisition unit is used for acquiring the hot spot identification of the scanned hot spot signal;
a third determining unit, configured to determine whether the hotspot identifier is a hotspot identifier that meets a preset condition;
and the fourth determining unit is used for determining that the first hotspot signal sent by the second device is detected if the hotspot identification is the hotspot identification meeting the preset condition.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the equipment network distribution method according to any one of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer readable storage medium, on which a program of a device networking method is stored, which when executed by a processor implements the steps of any one of the device networking methods described in the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
after the network is accessed, firstly determining whether a first hot spot signal sent by a second device is detected, if the first hot spot signal is detected, acquiring distribution network authorization information through a server, then establishing first wireless AP connection with the second device through the first hot spot signal, and then sending distribution network information to the second device through the first wireless AP connection, wherein the distribution network information comprises the distribution network authorization information and routing information, and the distribution network information is used for indicating the second device to perform distribution network.
According to the method and the device for distributing the network, after the first equipment which is accessed to the Internet obtains the authorization of the user, the network distribution information can be automatically sent to the second equipment which is not accessed to the Internet around through the hot spot of the second equipment, and then the second equipment can access to the Internet according to the network distribution information, so that the network distribution of the second equipment which is not connected to the Internet by the first equipment which is connected to the Internet is realized, a network distribution App is not required, the user does not need to manually input complex network distribution operation, and the network distribution efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a diagram of a system architecture according to an embodiment of the present application;
fig. 2 is a flowchart of a method for configuring a network for a device according to an embodiment of the present application;
fig. 3 is a structural diagram of a device network configuration apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Because the conventional manual distribution network is interaction between a user and equipment to be distributed through an App, the user needs to manually operate the APP to distribute the network, the operation is very complex, and the efficiency is low. To this end, an embodiment of the application provides a device network distribution method, a device, an electronic device and a storage medium.
As shown in fig. 1, the device network allocation method may be applied to a first device, where the first device may refer to an electronic device that has a program module installed in advance, and the program module is capable of executing a program of the device network allocation method, where the first device may communicate with a user terminal (such as a mobile phone, etc.), one or more second devices, and a server, where the second device may refer to an electronic device, and where the second device may be a common electronic device, and where the first device, the user terminal, and the second device have a wireless Access Point (AP) module built therein.
As shown in fig. 2, the device network allocation method may include the following steps:
step S101, after accessing to a network, determining whether a first hot spot signal sent by a second device is detected;
before step S101, a first device may first access the internet, and then scan whether there are second devices transmitting a first setpoint signal around the first device.
Step S102, if the first hot spot signal is detected, acquiring distribution network authorization information through a server;
in the embodiment of the present application, the network allocation authorization information may refer to authorization information that a user grants to the first device, so that the first device can perform network allocation on the second device.
If the first hotspot signal is scanned, the first device may perform data interaction with the server through the internet, and obtain the distribution network authorization information from the server through the internet, and for example, may obtain the distribution network authorization information from the user terminal through the server.
Step S103, a first wireless AP connection is established with the second equipment through the first hot spot signal;
and accessing the first equipment to a hot spot of the second equipment, namely establishing a first wireless AP connection with the second equipment through the first hot spot signal.
Step S104, transmitting distribution network information to the second device through the first wireless AP connection.
In the embodiment of the application, the distribution network information comprises distribution network authorization information and routing information, the distribution network information is used for indicating the second equipment to perform distribution network, the distribution network authorization information is used for informing the second equipment that the first equipment has distribution network authority, and the routing information is used for informing the second equipment of information required by accessing the internet.
And receiving connection of a third party (which can be a mobile terminal App of a user or first equipment) at the second equipment, thereby acquiring the route information, completing the network distribution, transmitting the equipment information of the second equipment back to the first equipment for reporting, and informing a server of equipment information of successful network distribution without sense.
Through the steps, when one of the user's home is the equipment with the network distribution completed, the first equipment can change the status from the current STA connection router mode directly through issuing the instruction, and the method replaces the App operation to carry out transmission and interaction with other intelligent equipment, thereby completing the related automatic configuration.
In the configuration process, the first equipment is in a time division multiplexing state, and the data communication of the original first equipment can be ensured while App is replaced by App to complete the App distribution network.
In the embodiment of the application, the network distribution is performed at the user angle without additional interactive operation with the equipment end to be distributed, and the client end of the user can complete the network distribution of other equipment by pushing and notifying the equipment of the distributed network.
After the network is accessed, firstly determining whether a first hot spot signal sent by a second device is detected, if the first hot spot signal is detected, acquiring distribution network authorization information through a server, then establishing first wireless AP connection with the second device through the first hot spot signal, and then sending distribution network information to the second device through the first wireless AP connection, wherein the distribution network information comprises the distribution network authorization information and routing information, and the distribution network information is used for indicating the second device to perform distribution network.
According to the method and the device for distributing the network, after the first equipment which is accessed to the Internet obtains the authorization of the user, the network distribution information can be automatically sent to the second equipment which is not accessed to the Internet around through the hot spot of the second equipment, and then the second equipment can access to the Internet according to the network distribution information, so that the network distribution of the second equipment which is not connected to the Internet by the first equipment which is connected to the Internet is realized, a network distribution App is not required, the user does not need to manually input complex network distribution operation, and the network distribution efficiency is improved.
In yet another embodiment of the present application, step S102 of obtaining, by a server, distribution network authorization information includes:
step 201, determining whether the current moment is within a preset distribution network authority window period;
in the embodiment of the application, the preset distribution network authority window period can refer to a time period when the first equipment can distribute the network, and the preset distribution network authority window period can prevent the situation that the user does not need to distribute the network to the second equipment by himself or herself, and other personnel can perform illegal distribution on the equipment subsequently to occupy the Internet resources of the user while the power consumption of the first equipment is reduced.
Step 202, if the current moment is within a preset distribution network authority window period, a first authority acquisition request is sent to a server, so that the server sends a second authority acquisition request to a user terminal;
the first device may compare the current time with a time period of a preset distribution network authority window period, for example: the current time is 14:01:00, assuming that the preset distribution network authority window period is 14:00:00-14:10:00 pm, the current moment can be determined to be located in the preset distribution network authority window period.
The first rights acquisition request is used to instruct the server to send a second rights acquisition request to the user terminal, and the first rights acquisition request may be the same as or different from the second rights acquisition request.
After the user terminal receives the second permission acquisition request, an authorization interface can be popped up, the user inputs the distribution network authorization information by clicking a corresponding button on the authorization interface, and after the user terminal acquires the distribution network authorization information, the distribution network authorization information can be sent to the server through the Internet, and then the server sends the distribution network authorization information to the first device through the Internet.
And 203, receiving the distribution network authorization information returned by the server.
In the embodiment of the application, the network allocation authorization information is sent by the user terminal in response to the second permission acquisition request.
The first device can receive the distribution network authorization information sent by the server through the Internet, and after receiving the distribution network authorization information, the first device is determined to be authorized by the user to carry out distribution network on other second devices.
When the embodiment of the application determines that the current moment is within the preset distribution network authority window period, the distribution network authorization information can be automatically acquired from the user terminal through the server, manual configuration of a user is not needed, the operation is simple, and the distribution network efficiency is improved.
In yet another embodiment of the present application, step S102 of obtaining, by a server, distribution network authorization information includes:
step 301, if the current time is outside the preset distribution network authority window period, sending a prompt message to the server, so that the server sends the prompt message to the user terminal.
In the embodiment of the application, the prompt information is used for indicating a user to open the preset distribution network authority window period; the user can start the preset distribution network authority window period by pressing a button and the like, and immediately takes a time period after the current moment as the preset distribution network authority window period after the preset distribution network authority window period is started, for example, takes a time period within 1 minute after the current moment as the preset distribution network authority window period.
Step 302, determining whether the current moment is within a preset distribution network authority window period;
step 303, if the current time is within the preset distribution network authority window period, sending a third authority acquisition request to a server, so that the server sends a fourth authority acquisition request to a user terminal;
and step 304, receiving distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the fourth permission acquisition request.
Steps 302-304 are similar in principle to steps 201-203 and will not be described again here.
When the current moment is determined to be outside the preset distribution network authority window period, the preset distribution network authority window period can be automatically started, and then the distribution network authorization information is acquired from the user terminal through the server, so that manual configuration of a user is not needed, the operation is simple, and the distribution network efficiency is improved.
In yet another embodiment of the present application, the method further comprises:
step 401, detecting a second hot spot signal sent by a user terminal;
before step S101, the user terminal may first perform network allocation on the first device, and specifically, the user terminal may first open its own hotspot, so as to facilitate access of the first device.
Step 402, establishing a second wireless AP connection with the ue through the second hotspot signal;
after the first device accesses the hotspot of the user terminal, it may be determined that the first device establishes a second wireless AP connection with the user terminal through the second hotspot signal.
Step 403, receiving the routing information sent by the user terminal through the second wireless AP connection;
in the embodiment of the application, the routing information is information required by the first equipment to access the Internet.
And step 404, accessing the network by using the routing information.
According to the embodiment of the application, the first equipment can acquire the routing information from the user terminal, and then access the Internet by using the routing information, so that the first equipment can realize automatic networking.
In yet another embodiment of the present application, the method further comprises:
step 501, detecting a second hot spot signal sent by a user terminal;
step 502, establishing a second wireless AP connection with the ue through the second hotspot signal;
steps 501-502 are similar in principle to steps 401-402 and are not described in detail herein.
Step 503, receiving user information sent by the user terminal through the second wireless AP connection;
in the embodiment of the application, the user information can comprise a user ID, and the user information can be used as a credential for connecting the first device with the server.
And step 504, establishing communication connection with the server by using the user information.
According to the embodiment of the application, the user information can be acquired from the user terminal and used as the certificate communicated with the server, so that the situation that the server does not know which first equipment needs to carry out network distribution on the corresponding second equipment is avoided, and the network distribution safety is improved.
In yet another embodiment of the present application, step S103 establishes a first wireless AP connection with the second device through the hotspot signal, including:
step 601, obtaining user information sent by a user terminal;
and step 602, establishing the first wireless AP connection with the second equipment through the hot spot signal by using the user information.
In the embodiment of the application, the first equipment can use the user information to bind the distribution network with the second equipment, so that the security of the distribution network is improved.
In yet another embodiment of the present application, determining whether a first hotspot signal issued by a second device is detected includes:
step 701, scanning surrounding hot spot signals;
step 702, acquiring a hotspot identification of the scanned hotspot signal;
step 703, determining whether the hotspot identifier is a hotspot identifier meeting a preset condition;
in the embodiment of the application, the preset condition can be used for screening specific types of equipment, for example, equipment of a merchant and the like, whether some fields of the hotspot identification are the same as the fields specified by the preset condition or not can be determined, and if so, the hotspot identification can be determined as the hotspot identification meeting the preset condition.
Step 704, determining that the first hotspot signal sent by the second device is detected if the hotspot identifier is a hotspot identifier that meets a preset condition.
The embodiment of the application can automatically screen the equipment meeting the preset condition as the second equipment so as to pointedly carry out network distribution on the second equipment and improve the network distribution safety.
In still another embodiment of the present application, there is further provided a device network configuration apparatus, applied to a first device, as shown in fig. 3, including:
a determining module 11, configured to determine whether a first hotspot signal sent by the second device is detected after accessing the network;
the acquiring module 12 is configured to acquire, if the first hotspot signal is detected, distribution network authorization information through a server;
an establishing module 13, configured to establish a first wireless AP connection with the second device through the first hotspot signal;
and a sending module 14, configured to send, to the second device, distribution network information through the first wireless AP connection, where the distribution network information includes the distribution network authorization information and routing information, and the distribution network information is used to instruct the second device to perform distribution network.
Optionally, the acquiring module includes:
the first determining unit is used for determining whether the current moment is in a preset distribution network authority window period;
the first sending unit is used for sending a first permission acquisition request to the server if the current moment is within a preset distribution network permission window period, so that the server sends a second permission acquisition request to the user terminal;
the first receiving unit is used for receiving distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the permission acquisition.
Optionally, the acquiring module includes:
the second sending unit is used for sending prompt information to the server if the current moment is outside a preset distribution network authority window period, so that the server sends the prompt information to the user terminal, and the prompt information is used for indicating a user to open the preset distribution network authority window period;
the second determining unit is used for determining whether the current moment is in a preset distribution network authority window period;
the third sending unit is used for sending a first permission acquisition request to the server if the current moment is within a preset distribution network permission window period so that the server sends a second permission acquisition request to the user terminal;
and the second receiving unit is used for receiving the distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the authorization request.
Optionally, the apparatus further comprises:
the first detection module is used for detecting a second hot spot signal sent by the user terminal;
the first connection establishment module is used for establishing a second wireless AP connection with the user terminal through the second hot spot signal;
the first receiving module is used for receiving the route information sent by the user terminal through the second wireless AP connection;
and the access module is used for accessing the network by utilizing the routing information.
Optionally, the apparatus further comprises:
the second detection module is used for detecting a second hot spot signal sent by the user terminal;
the second connection establishment module is used for establishing a second wireless AP connection with the user terminal through the second hot spot signal;
the second receiving module is used for receiving user information sent by the user terminal through the second wireless AP connection;
and the third connection establishment module is used for establishing communication connection with the server by utilizing the user information.
Optionally, the establishing module includes:
the first acquisition unit is used for acquiring user information sent by the user terminal;
and the connection establishment unit is used for establishing the first wireless AP connection with the second equipment through the hot spot signal by utilizing the user information.
Optionally, the determining module includes:
the scanning unit is used for scanning surrounding hot spot signals;
the second acquisition unit is used for acquiring the hot spot identification of the scanned hot spot signal;
a third determining unit, configured to determine whether the hotspot identifier is a hotspot identifier that meets a preset condition;
and the fourth determining unit is used for determining that the first hotspot signal sent by the second device is detected if the hotspot identification is the hotspot identification meeting the preset condition.
In yet another embodiment of the present application, there is provided an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the equipment network distribution method according to any method embodiment when executing the program stored in the memory.
According to the electronic equipment provided by the embodiment of the application, after the processor is accessed to the network, the processor firstly determines whether the first hot spot signal sent by the second equipment is detected or not by executing the program stored in the memory, if the first hot spot signal is detected, the server acquires the distribution network authorization information, then establishes a first wireless AP connection with the second equipment through the first hot spot signal, and then sends the distribution network information to the second equipment through the first wireless AP connection, wherein the distribution network information comprises the distribution network authorization information and the routing information, and the distribution network information is used for indicating the second equipment to perform distribution network.
According to the method and the device for distributing the network, after the first equipment which is accessed to the Internet obtains the authorization of the user, the network distribution information can be automatically sent to the second equipment which is not accessed to the Internet around through the hot spot of the second equipment, and then the second equipment can access to the Internet according to the network distribution information, so that the network distribution of the second equipment which is not connected to the Internet by the first equipment which is connected to the Internet is realized, a network distribution App is not required, the user does not need to manually input complex network distribution operation, and the network distribution efficiency is improved.
The communication bus 1140 mentioned above for the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industrial Standard Architecture (EISA) bus, etc. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices described above.
The memory 1130 may include Random Access Memory (RAM) or non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor 1110 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSP), application Specific Integrated Circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present application, there is further provided a computer readable storage medium having stored thereon a program of a device networking method, where the program of the device networking method, when executed by a processor, implements the steps of the device networking method according to any of the foregoing method embodiments.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method for device configuration network, applied to a first device, comprising:
after accessing the network, determining whether a first hot spot signal sent by the second equipment is detected;
if the first hot spot signal is detected, acquiring distribution network authorization information through a server, wherein the distribution network authorization information is used for informing the second equipment that the first equipment has distribution network authority;
acquiring distribution network authorization information through a server, including:
determining whether the current moment is in a preset distribution network authority window period;
if the current moment is within a preset distribution network authority window period, a first authority acquisition request is sent to a server, so that the server sends a second authority acquisition request to a user terminal;
receiving distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the second permission acquisition request;
establishing a first wireless AP connection with the second device through the first hot spot signal;
and sending distribution network information to the second equipment through the first wireless AP connection, wherein the distribution network information comprises distribution network authorization information and routing information, and the distribution network information is used for indicating the second equipment to perform distribution network.
2. The method for distributing network to devices according to claim 1, wherein obtaining the network distribution authorization information through the server comprises:
if the current moment is outside the preset distribution network authority window period, sending prompt information to the server so that the server sends the prompt information to the user terminal, wherein the prompt information is used for indicating a user to open the preset distribution network authority window period;
determining whether the current moment is in a preset distribution network authority window period;
if the current moment is within the preset distribution network authority window period, a third authority acquisition request is sent to a server, so that the server sends a fourth authority acquisition request to a user terminal;
and receiving distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the fourth permission acquisition request.
3. The equipment distribution network method according to claim 1, characterized in that the method further comprises:
detecting a second hot spot signal sent by the user terminal;
establishing a second wireless AP connection with the user terminal through the second hot spot signal;
receiving route information sent by the user terminal through the second wireless AP connection;
and accessing the network by using the routing information.
4. The equipment distribution network method according to claim 1, characterized in that the method further comprises:
detecting a second hot spot signal sent by the user terminal;
establishing a second wireless AP connection with the user terminal through the second hot spot signal;
receiving user information sent by the user terminal through the second wireless AP connection;
and establishing communication connection with the server by utilizing the user information.
5. The device networking method of claim 1, wherein establishing a first wireless AP connection with the second device via the hotspot signal comprises:
acquiring user information sent by a user terminal;
and establishing the first wireless AP connection with the second equipment through the hot spot signal by utilizing the user information.
6. The device networking method of claim 1, wherein determining whether the first hotspot signal sent by the second device is detected comprises:
scanning surrounding hot spot signals;
acquiring a hotspot identification of the scanned hotspot signal;
determining whether the hotspot identification is a hotspot identification meeting a preset condition;
and if the hotspot identification is the hotspot identification meeting the preset condition, determining that the first hotspot signal sent by the second equipment is detected.
7. A device network configuration apparatus, applied to a first device, comprising:
the determining module is used for determining whether a first hot spot signal sent by the second equipment is detected after the network is accessed;
the acquisition module is used for acquiring distribution network authorization information through a server if the first hot spot signal is detected, wherein the distribution network authorization information is used for informing the second equipment that the first equipment has distribution network authority;
the acquisition module comprises:
the first determining unit is used for determining whether the current moment is in a preset distribution network authority window period;
the first sending unit is used for sending a first permission acquisition request to the server if the current moment is within a preset distribution network permission window period, so that the server sends a second permission acquisition request to the user terminal;
the first receiving unit is used for receiving distribution network authorization information returned by the server, wherein the distribution network authorization information is sent by the user terminal in response to the permission acquisition;
the establishing module is used for establishing a first wireless AP connection with the second equipment through the first hot spot signal;
the sending module is configured to send distribution network information to the second device through the first wireless AP connection, where the distribution network information includes distribution network authorization information and routing information, and the distribution network information is used to instruct the second device to perform distribution network.
8. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method for equipment network allocation according to any one of claims 1 to 6 when executing a program stored in a memory.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a program of a device networking method, which when executed by a processor implements the steps of the device networking method according to any of claims 1-6.
CN202111523148.XA 2021-12-13 2021-12-13 Equipment network distribution method and device, electronic equipment and storage medium Active CN114245403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111523148.XA CN114245403B (en) 2021-12-13 2021-12-13 Equipment network distribution method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111523148.XA CN114245403B (en) 2021-12-13 2021-12-13 Equipment network distribution method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114245403A CN114245403A (en) 2022-03-25
CN114245403B true CN114245403B (en) 2023-08-11

Family

ID=80755564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111523148.XA Active CN114245403B (en) 2021-12-13 2021-12-13 Equipment network distribution method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114245403B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119286B (en) * 2022-06-13 2024-05-17 京东科技信息技术有限公司 Method and device for accessing equipment to network
CN115150217A (en) * 2022-06-30 2022-10-04 青岛海信移动通信技术股份有限公司 Network distribution method, device and equipment for intelligent household equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101189904A (en) * 2005-04-07 2008-05-28 高通股份有限公司 Conveying a content delivery schedule to mobile terminals
CN109417778A (en) * 2017-03-23 2019-03-01 索尼公司 Electronic equipment and method for wireless communication
CN110545569A (en) * 2019-08-23 2019-12-06 珠海格力电器股份有限公司 network distribution method and system of intelligent device and readable medium
CN110972161A (en) * 2019-10-22 2020-04-07 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium
CN111741463A (en) * 2020-07-08 2020-10-02 Oppo广东移动通信有限公司 Communication connection method, related equipment and storage medium
CN113242550A (en) * 2020-01-22 2021-08-10 阿里巴巴集团控股有限公司 Network distribution method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094294B (en) * 2016-02-18 2020-06-02 腾讯科技(深圳)有限公司 Network connection method and device
CN109996314B (en) * 2017-12-29 2021-11-09 阿里巴巴集团控股有限公司 Method, device and system for accessing network to be configured to network hotspot device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101189904A (en) * 2005-04-07 2008-05-28 高通股份有限公司 Conveying a content delivery schedule to mobile terminals
CN109417778A (en) * 2017-03-23 2019-03-01 索尼公司 Electronic equipment and method for wireless communication
CN110545569A (en) * 2019-08-23 2019-12-06 珠海格力电器股份有限公司 network distribution method and system of intelligent device and readable medium
CN110972161A (en) * 2019-10-22 2020-04-07 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium
CN113242550A (en) * 2020-01-22 2021-08-10 阿里巴巴集团控股有限公司 Network distribution method, device, equipment and storage medium
CN111741463A (en) * 2020-07-08 2020-10-02 Oppo广东移动通信有限公司 Communication connection method, related equipment and storage medium

Also Published As

Publication number Publication date
CN114245403A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN114245403B (en) Equipment network distribution method and device, electronic equipment and storage medium
CN111510425B (en) Intelligent household equipment management method, device, equipment and storage medium
JP5281128B2 (en) WI-FI access method, access point, and WI-FI access system
CN109150568B (en) Network management method, device, system, equipment and storage medium
US11096051B2 (en) Connection establishment method, device, and system
CN105682093A (en) Wireless network access method and access device, and client
US20200175149A1 (en) System for controlling access to an account
WO2020011194A1 (en) Wireless connection method and device
CN112804697B (en) Network distribution method and device for equipment to be networked, electronic equipment and computer readable medium
CN112188488A (en) Network distribution method, device and system
CN103874065A (en) Method and device for judging user position abnormity
US20210243188A1 (en) Methods and apparatus for authenticating devices
WO2017088795A1 (en) Method and device for controlling smart appliance
CN111818528B (en) Connection method and device of wireless local area network, storage medium and wireless access equipment
CN108419234B (en) Wi-Fi hotspot WPS connection method and device
KR102214940B1 (en) Method and apparatus for registering wireless device in wireless communication system
CN112819454A (en) Payment method, gateway device, server and storage medium
US20210029543A1 (en) Method and device for authenticating device using wireless lan service
CN113422712B (en) Network distribution method, network distribution device, household equipment and computer readable storage medium
CN113395345B (en) Network distribution method and device of Internet of things equipment and storage medium
KR102390887B1 (en) Method and apparatus for registering wireless device in wireless communication system
CN113923112B (en) Equipment configuration method and equipment configuration device
CN111132266B (en) Terminal access method and system and cloud server
CN117178581A (en) Method for configuring equipment, configuration end device and intelligent equipment
US8589519B2 (en) Method and device for uniform resource identifier handling of user device

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
GR01 Patent grant
GR01 Patent grant