CN114650613A - 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
CN114650613A
CN114650613A CN202011511783.1A CN202011511783A CN114650613A CN 114650613 A CN114650613 A CN 114650613A CN 202011511783 A CN202011511783 A CN 202011511783A CN 114650613 A CN114650613 A CN 114650613A
Authority
CN
China
Prior art keywords
distribution network
nan
distribution
equipment
broadcast signal
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
CN202011511783.1A
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.)
Midea Group Co Ltd
Original Assignee
Midea Group 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 Midea Group Co Ltd filed Critical Midea Group Co Ltd
Priority to CN202011511783.1A priority Critical patent/CN114650613A/en
Publication of CN114650613A publication Critical patent/CN114650613A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions

Landscapes

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

Abstract

The invention relates to the technical field of communication, and provides a method and a device for distributing a network to equipment, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a broadcast signal sent by a target device, wherein the broadcast signal comprises a Neighbor Awareness Network (NAN) broadcast signal and a simulated hotspot softAP broadcast signal; based on a distribution network mode execution strategy in a preset distribution network mode set, sending distribution network information to the target equipment according to the broadcast signal, so that the target equipment is connected with a cloud end according to the distribution network information; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode. According to the invention, two signals are broadcasted by the intelligent equipment, and a combined control mode of a NAN distribution network mode and a SoftAp distribution network mode is adopted, so that the equipment is rapidly distributed with a network, and the success rate of the equipment distribution network is ensured.

Description

Equipment network distribution method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device network distribution method, apparatus, electronic device, and storage medium.
Background
Neighbor Aware Networking (NAN) technology is a technology that enables smart devices with WiFi modules to have auto-aware surrounding smart devices.
The softAp technology is that a WiFi module is used as a hotspot, and devices such as a mobile terminal and the like are connected with the hotspot of the WiFi module to perform normal network communication.
At present, intelligent equipment generally adopts the technology to realize a distribution network independently. However, the NAN distribution network mode is adopted independently, the short-distance configuration can be realized, the distribution network failure is easily caused by weak signals, and the distribution network is distributed through the distribution network channels without backup in the distribution network failure; and a network distribution mode of softAp is independently adopted, so that the time consumption is long, and the switching operation is complicated.
Therefore, the current equipment is too single in distribution network mode, and the distribution network efficiency is low.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a method for distributing a network to equipment, which is characterized in that two signals are broadcasted by intelligent equipment, and a combined control mode of a NAN network distribution mode and a SoftAp network distribution mode is adopted, so that the success rate of equipment network distribution is ensured while the equipment is rapidly distributed.
The invention also provides a device distribution network device, an electronic device and a storage medium.
The equipment network distribution method of the first aspect of the invention is applied to a mobile terminal, and comprises the following steps:
receiving a broadcast signal sent by a target device, wherein the broadcast signal comprises a Neighbor Awareness Network (NAN) broadcast signal and a simulated hotspot softAP broadcast signal;
based on a distribution network mode execution strategy in a preset distribution network mode set, connection with target equipment is established according to the broadcast signal, and distribution network information is sent to the target equipment, so that the target equipment is connected with a cloud end through a router according to the distribution network information; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
The equipment network distribution method provided by the embodiment of the invention also has the following additional technical characteristics:
further, the distribution network mode execution strategy in the distribution network mode set is executed in the first distribution network mode of the neighbor awareness network NAN, and executed in the second distribution network mode of the simulated hotspot softAP, and accordingly, the establishing of the connection with the target device according to the broadcast signal and the sending of the distribution network information to the target device include:
determining whether a Neighbor Awareness Network (NAN) channel can be established with the target equipment or not according to a Neighbor Awareness Network (NAN) broadcast signal to obtain a first connection result;
determining that the first connection result is that a neighbor awareness network NAN channel is not established, and determining whether a simulated hotspot softAP channel can be established with the target device or not according to a simulated hotspot softAP broadcast signal to obtain a second connection result;
and determining that the second connection result is that a simulated hotspot softAP channel is successfully established, and sending distribution network information to the target equipment.
Further, the establishing a connection with a target device according to the broadcast signal and sending distribution network information to the target device further includes:
and determining that the first connection result is that a neighbor awareness network NAN channel is successfully established, and sending distribution network information to the target equipment.
Further, the establishing a connection with a target device according to the broadcast signal and sending distribution network information to the target device further includes:
and determining that the second connection result is that a simulated hotspot softAP channel is not established, re-receiving neighbor awareness network NAN broadcast signals, and re-determining whether a neighbor awareness network NAN channel can be established with the target device.
Further, before receiving the broadcast signal transmitted by the target device, the method further includes:
reading a device label on an NFC unit, and transmitting the device label to the cloud; wherein the NFC unit is disposed on an outer surface of a target device;
receiving the device information sent by the cloud, and detecting a Neighbor Awareness Network (NAN) broadcast signal sent by a target device or polling a simulated hotspot softAP broadcast signal sent by the target device after generating a configuration interface corresponding to the device information according to the device information;
the device information is obtained by matching the cloud end on a device comparison table according to the device label, and the device comparison table comprises a corresponding relation between the device label and the device information.
Further, the configuration interface includes a WiFi selection interface and a device binding selection interface, and accordingly, the method further includes:
starting a WiFi selection interface, acquiring distribution network information, and sending the distribution network information to the target equipment;
and starting an equipment binding selection interface, determining right-confirming binding information, and sending the right-confirming binding information to the cloud.
The device network distribution method of the second aspect of the present invention is applied to a target device, and includes:
issuing broadcast signals, wherein the broadcast signals comprise Neighbor Awareness Networking (NAN) broadcast signals and simulated hotspot softAP broadcast signals;
receiving distribution network information, and establishing connection with a cloud end through a router according to the distribution network information;
the distribution network information is a distribution network mode execution strategy based on a preset distribution network mode set by the mobile terminal, establishes connection with target equipment according to the received broadcast signal and sends the broadcast signal to the target equipment; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
The device network distribution apparatus of the third aspect of the present invention includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for receiving broadcast signals sent by target equipment, and the broadcast signals comprise Neighbor Awareness Network (NAN) broadcast signals and simulation hotspot softAP broadcast signals;
the processing module is used for executing a strategy based on a preset distribution network mode in a distribution network mode set, establishing connection with target equipment according to the broadcast signal, and sending distribution network information to the target equipment so that the target equipment is connected with a cloud end through a router according to the distribution network information; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
The device network distribution apparatus of the fourth aspect of the present invention includes:
the distribution module is used for distributing broadcast signals, and the broadcast signals comprise Neighbor Awareness Network (NAN) broadcast signals and simulation hotspot softAP broadcast signals;
the connection module is used for receiving the distribution network information and establishing connection with the cloud end through the router according to the distribution network information;
the distribution network information is a distribution network mode execution strategy based on a preset distribution network mode set by the mobile terminal, establishes connection with target equipment according to the received broadcast signal and sends the broadcast signal to the target equipment; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
The electronic device of the fifth aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the steps of the device network distribution method are implemented.
A non-transitory computer readable storage medium of a sixth aspect of the invention has stored thereon a computer program which, when executed by a processor, implements the steps of the device distribution network method as described above.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a network distribution method for the apparatus of the present invention;
FIG. 2 is a schematic diagram of a detailed flow of a network distribution method of the present invention;
fig. 3 is a timing diagram of a network distribution process for implementing the intelligent home appliance NAN;
FIG. 4 is a timing diagram of a network distribution process of the softAP of the intelligent household appliance implemented by the invention;
FIG. 5 is another schematic flow chart of a network distribution method for the device of the present invention;
FIG. 6 is a schematic diagram of the configuration of the network distribution device of the present invention;
FIG. 7 is another schematic diagram of the configuration of the network equipment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in further detail with reference to the drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Fig. 1 shows a schematic flow chart of a device network distribution method provided by the present invention, which is applied to a mobile terminal (a mobile phone or a tablet computer, etc.), an intelligent device (a refrigerator, an air conditioner or a television, etc.), a router, and a cloud in an interaction process.
In the invention, the intelligent device comprises a module (namely a WiFi module) which can support the establishment of a neighbor awareness network NAN channel and a simulation hotspot softAP channel, so that the intelligent device can initiate NAN broadcast signals and softAP broadcast signals after being electrified to enter a distribution network state.
The Neighbor Advertisement Networking (NAN) technology is a technology which can enable intelligent equipment with a WiFi module to automatically sense surrounding intelligent equipment, is an innovation of the WiFi technology by taking application as guidance, can help the equipment to sense surrounding services in advance before establishment, and further meets the functional requirements of users on the aspects of point-to-point messages, games, media sharing and the like.
The softAp technology is that a WiFi module is used as a hotspot, and devices such as a mobile terminal and the like are connected with the hotspot of the WiFi module to perform normal network communication.
In the NAN distribution network mode, the mobile terminal is connected with the cloud terminal through the router. The mobile terminal is close to the intelligent equipment in the NAN cluster and is connected with the intelligent equipment, and the mobile terminal sends the distribution network information (SSID and password) of the router to the intelligent equipment so that the intelligent equipment can be connected with the cloud end through the router according to the distribution network information.
In the network distribution mode of SoftAp, the mobile terminal is connected with the cloud terminal through the router. The mobile terminal is connected with the intelligent device through the device hotspot, and the mobile terminal sends the distribution network information (SSID and password) of the router to the intelligent device so that the intelligent device can be connected with the cloud terminal through the router according to the distribution network information.
At present, the distribution network mode of the intelligent equipment mainly adopts the single distribution network mode, so that the distribution network of the equipment has more or less problems, and the user experiences poor experience on the distribution network of the equipment. The invention aims to complete the distribution of the intelligent equipment by combining a combined control mode of a NAN distribution network mode and a SoftAp distribution network mode.
Referring to fig. 1, the method comprises the steps of:
11. the method comprises the steps that a mobile terminal receives a broadcast signal sent by a target device, wherein the broadcast signal comprises a NAN broadcast signal and a softAP broadcast signal;
12. the mobile terminal executes a strategy based on a preset distribution network mode in a distribution network mode set, establishes connection with target equipment according to a broadcast signal, and sends distribution network information to the target equipment, so that the target equipment establishes connection with a cloud end through a router according to the distribution network information; the distribution network mode set comprises a NAN distribution network mode and a softAP distribution network mode.
With respect to step 11 and step 12, it should be noted that, in the present invention, because there are two distribution network modes: the network management system comprises a NAN distribution network mode and a SoftAp distribution network mode, and therefore, the two distribution network modes need to be configured with execution strategies. For example, which distribution network mode is executed first, and which distribution network mode is executed later. Under the condition, after one distribution network mode is successfully executed, the other distribution network mode is not executed any more; and after the execution of one distribution network mode fails, another distribution network mode is executed. And after the two distribution network modes fail to be executed, the execution is repeated. Therefore, in the scheme of the invention, the mobile terminal is provided with a storage unit, the storage unit stores a distribution network mode set, and the distribution network mode set comprises a NAN distribution network mode, a softAP distribution network mode and a distribution network mode execution strategy.
In the present invention, the target device transmits a NAN broadcast signal and a softAP broadcast signal.
The mobile terminal acquires a broadcast signal corresponding to the current distribution network mode when executing the current distribution network mode based on a distribution network mode execution strategy in a preset distribution network mode set.
For example, the mobile terminal executes a NAN distribution network mode, at the moment, the mobile terminal acquires NAN broadcast signals, establishes a NAN channel with the intelligent device, sends distribution network information to the intelligent device, and the intelligent device is connected with the cloud according to the distribution network information.
For example, the mobile terminal executes the NAN distribution network mode failure (NAN broadcast signals can be blocked in a multi-WiFi environment), executes the softAP distribution network mode, acquires softAP broadcast signals, establishes a softAP channel with the intelligent device, sends distribution network information to the intelligent device, and the intelligent device establishes connection with the cloud according to the distribution network information.
In the invention, the mobile terminal also needs to realize three control modes for the intelligent device: short-distance control, medium-short distance control and remote control.
The distance requirement for establishing the NAN channel between the mobile terminal and the intelligent device is 40-60 cm. Therefore, in the two modes, the NAN channel needs to be established for realizing the short-distance control of the mobile equipment to the intelligent equipment.
The mobile terminal controls the intelligent device in the medium and short distance, for example: the user uses the mobile terminal to control the intelligent equipment in the kitchen. Therefore, after the mobile terminal and the intelligent device are connected with the router, a local area network is formed, and in the local area network, the mobile terminal can realize medium and short distance control over the intelligent device.
The remote distance control of the mobile terminal to the smart device is performed in the following scenarios: the user uses the mobile terminal to control the intelligent equipment in the bedroom in the company. Therefore, after the mobile terminal and the intelligent device are connected with the cloud end, a wide area network is formed, and in the wide area network, the mobile terminal can realize remote control over the intelligent device.
Based on the above description of the three control manners, after the NAN network distribution mode is successfully executed, the mobile terminal may implement the three control manners. And after the network distribution mode of the softAP is successfully executed, the mobile terminal can realize medium-short distance control and remote control, and under the condition, the mobile terminal does not establish a NAN channel with the intelligent equipment any more.
Therefore, the distribution network mode execution strategy in the invention comprises the following steps:
and executing the NAN distribution network mode first and then executing the softAP distribution network mode.
NAN channels can be established without executing the softAP distribution network mode.
And a NAN channel cannot be established, and then the softAP distribution network mode is executed.
In the invention, after the target device is connected with the cloud end according to the distribution network information, the mobile terminal needs to interact with the cloud end to complete the process of determining the authority of the intelligent device, and at the moment, the mobile terminal can carry out remote control on the intelligent device.
According to the equipment network distribution method provided by the invention, two signals are broadcasted by the intelligent equipment, and a combined control mode of a NAN network distribution mode and a SoftAp network distribution mode is adopted, so that the equipment can be rapidly distributed, and meanwhile, the success rate of equipment network distribution is ensured.
In the further method of the present invention, the explanation mainly applied to the process of establishing connection with the target device according to the broadcast signal and sending the distribution network information to the target device is as follows:
determining whether a NAN channel can be established with target equipment or not according to the NAN broadcast signal to obtain a first connection result;
determining that the first connection result is that a NAN channel is not established, and determining whether a softAP channel can be established with the target device or not according to the softAP broadcast signal to obtain a second connection result;
and determining that the second connection result is that the softAP channel is successfully established, and sending the distribution network information to the target device.
In this regard, it should be noted that, in the present invention, when the mobile terminal executes the NAN network distribution mode, after acquiring the NAN broadcast signal sent by the target device, the mobile terminal tries to establish a NAN channel with the target device.
When the NAN channel is not established between the mobile terminal and the target device, the mobile terminal tries to establish the softAP channel with the target device after polling and acquiring the softAP broadcast signal sent by the target device.
After the softAP channel is established between the mobile terminal and the target device, the mobile terminal sends the distribution network information (SSID and password) of the router to the target device, the target device is connected with the cloud terminal through the router according to the distribution network information, then the mobile terminal is required to interact with the cloud terminal, and the right confirming process of the target device is completed.
In addition, it should be noted that, after the mobile terminal and the target device successfully establish the NAN channel and send the distribution network information to the target device, the mobile terminal sends the distribution network information (SSID and password) of the router to the target device, so that the target device establishes a connection with the cloud terminal through the router according to the distribution network information. In this case, the mobile terminal no longer executes the SoftAp network distribution mode.
In addition, it should be noted that, when the mobile terminal and the target device do not establish the softAP channel, the softAP channel is not established. In this case, the above-described execution process needs to be repeated a plurality of times. Therefore, the mobile terminal needs to receive the NAN broadcast signal again and determine whether the neighbor awareness network NAN channel can be established with the target device again. Here, based on the description of the above-described execution process, the repetitive actions will not be explained here.
According to the further method provided by the invention, two signals are broadcasted by the intelligent equipment, and a combined control mode of firstly executing a NAN distribution network mode and then executing a SoftAp distribution network mode is adopted, so that the equipment is quickly distributed, and meanwhile, the success rate of the equipment distribution network is ensured.
In the further method of the invention, in order to improve the experience of the user on the equipment distribution network, the mobile terminal is required to be capable of automatically starting the distribution network process of the intelligent equipment when the intelligent equipment is powered on to carry out the distribution network state. For this reason, the mobile terminal is required to automatically enter a configuration interface for the smart device before receiving the broadcast signal transmitted from the target device.
In the invention, the mobile terminal needs to configure a special control APP for controlling the intelligent device, and the control APP can be configured with control interfaces for different devices. For this reason, when the mobile device controls a smart device newly placed in the home environment, device information of the target device needs to be acquired from the cloud. The equipment information can embody the type, model and serial number of the intelligent equipment. For example, the types of refrigerators and air conditioners are different, and the models and numbers of refrigerators or air conditioners placed in bedrooms and living rooms are also different. As a result, the device information is a control installation package corresponding to the target device. After the mobile terminal acquires the control installation package from the cloud, the control installation package can be automatically installed so that a distribution network interface of the target device can be automatically displayed on the control APP.
At this time, the mobile terminal starts a network distribution action for the target device, and then detects a NAN broadcast signal sent by the target device or polls a softAP broadcast signal sent by the target device.
In addition, it should be noted that the configuration interface includes a WiFi selection interface and a device binding selection interface.
And starting the WiFi selection interface, automatically acquiring the distribution network information (SSID and password) of the router used by the mobile terminal for accessing the cloud, and sending the distribution network information to the target equipment.
And starting a device binding selection interface, determining the right-confirming binding information (the device state and the position of the device in a home environment, such as a kitchen and a living room), and sending the right-confirming binding information to the cloud. The cloud interacts with the mobile terminal to verify the right-confirming binding information.
The acquisition and processing of the broadcast signal are described in the above, and will not be described in detail here.
In addition, it should be noted that the shell of the smart device (different materials blocking different degrees) blocks the NAN broadcast signal. Therefore, in order to improve the distribution network efficiency of the intelligent equipment, an NFC patch is configured on each intelligent equipment shell and serves as a distribution network inlet of the intelligent equipment, the NFC patches are guided to be touched by a user through a mobile terminal, a distribution network interface corresponding to the intelligent equipment is automatically opened, and the requirement that a channel is established in a near-distance mode by a NAN is met.
The mobile terminal reads a device number on the NFC unit, and the device number can represent the unique identification of the intelligent device. The device label is transmitted to the cloud. And the cloud end is stored with an equipment comparison table, and the equipment comparison table comprises the corresponding relation between the equipment label and the equipment information. And the cloud end obtains corresponding equipment information according to the equipment label matching and sends the equipment information to the mobile terminal.
The further method provided by the invention is mainly suitable for the NAN distribution network process, so that the distribution network interface of the equipment can be automatically started after the mobile terminal is in close contact with the intelligent equipment, the subsequent specific distribution network process is conveniently executed, and excessive manual operation of a user is avoided.
Fig. 2 is an overall schematic diagram illustrating a network distribution process of the device according to the embodiment of the present invention.
Referring to fig. 2, in the process of network distribution of the smart device, a NAN network distribution mode is first executed. After a user touches the intelligent device by using the mobile terminal and establishes a NAN channel with the intelligent device, the distribution network information is sent to the intelligent device and the device binding information is sent to the cloud side on the WiFi selection interface and the device binding selection interface successively based on the triggering operation of the user on the mobile terminal. And after the NAN distribution network of the equipment is successful, the equipment can be controlled on the control APP on the mobile terminal in a relevant way.
And if the NAN distribution network of the equipment fails, the intelligent equipment executes the softAP distribution network mode. The mobile terminal displays a softAP distribution network interface for the device, polling WiFi (i.e., softAP broadcast signals) searching for the device. And when the WiFi of the equipment cannot be searched, or the WiFi of the equipment cannot be searched but the equipment cannot be connected, or the WiFi of the equipment cannot be searched for within a certain time, indicating that the softAP of the equipment fails to be distributed, and re-entering the NAN distribution network mode.
And if the distribution of the equipment softAP is successful, sending distribution network information to the intelligent equipment and sending equipment binding information to the cloud. The device can then be controlled in a control APP on the mobile terminal.
Fig. 3 shows a timing diagram of a network distribution process of the intelligent home appliance NAN according to the present invention.
Referring to fig. 3, the text description shown on the timing diagram is a simplified description of the explanation of the NAN distribution network process, and the detailed description is not repeated herein.
Fig. 4 shows a time sequence diagram of a network distribution process of the smart appliance softAP implemented by the present invention.
Referring to fig. 4, the text description shown on the timing diagram is a simplified description of the explanation of the network distribution process of softAP, and the detailed description is not repeated herein.
Fig. 5 shows a schematic flow diagram of a device network distribution method provided by the present invention, and referring to fig. 5, the method is applied to an intelligent device, and specifically includes the following steps:
51. the target device issues broadcast signals, wherein the broadcast signals comprise Neighbor Awareness Network (NAN) broadcast signals and simulation hotspot softAP broadcast signals;
52. the target equipment receives distribution network information, establishes connection with the cloud end through the router according to the distribution network information, wherein the distribution network information is a distribution network mode execution strategy concentrated by the mobile terminal based on a preset distribution network mode, establishes connection with the target equipment according to a received broadcast signal and sends the connection to the target equipment; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
It should be noted that, in the present invention, the smart device (i.e., the target device) includes a module (i.e., a WiFi module) that can support establishment of a neighbor awareness network NAN channel and a simulated hotspot softAP channel, so that the smart device can initiate a NAN broadcast signal and a softAP broadcast signal after being powered on to enter a distribution network state.
The mobile terminal can detect or poll two broadcast signals, execute a strategy based on a preset distribution network mode in a distribution network mode set, and send distribution network information to the target equipment after connection is established between the broadcast signals and the target equipment. The intelligent device receives the distribution network information and establishes connection with the cloud end through the router according to the distribution network information.
Based on the above detailed description of the network distribution process of the intelligent device, details are not repeated herein.
According to the equipment network distribution method provided by the invention, two signals are broadcasted by the intelligent equipment, and a combined control mode of a NAN network distribution mode and a SoftAp network distribution mode is adopted, so that the equipment can be rapidly distributed, and meanwhile, the success rate of equipment network distribution is ensured.
Fig. 6 shows a schematic structural diagram of an equipment distribution network apparatus provided by the present invention, the apparatus includes an acquisition module 61 and a processing module 62, wherein:
the acquisition module 61 is configured to receive broadcast signals sent by a target device, where the broadcast signals include Neighbor Awareness Networking (NAN) broadcast signals and simulated hotspot softAP broadcast signals;
the processing module 62 is configured to execute a policy based on a preset distribution network mode in the distribution network mode set, establish connection with the target device according to the broadcast signal, and send distribution network information to the target device, so that the target device establishes connection with the cloud through the router according to the distribution network information; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
In the further apparatus of the present invention, the distribution network mode execution policy in the distribution network mode set is that the distribution network mode of the neighbor awareness network NAN is executed first, the distribution network mode of the simulated hotspot softAP is executed later, and the processing module is specifically configured to, during a processing procedure of establishing a connection with the target device according to the broadcast signal and transmitting distribution network information to the target device:
determining whether a NAN channel can be established with target equipment or not according to the NAN broadcast signal to obtain a first connection result;
determining that the first connection result is that a NAN channel is not established, and determining whether a softAP channel can be established with a target device according to a softAP broadcast signal to obtain a second connection result;
and determining that the second connection result is that the softAP channel is successfully established, and sending the distribution network information to the target device.
In the further apparatus of the above invention, the processing module, in the process of establishing a connection with the target device according to the broadcast signal and sending the distribution network information to the target device, is specifically further configured to:
and determining that the first connection result is that the neighbor awareness network NAN channel is successfully established, and sending distribution network information to the target equipment.
In the further apparatus of the above invention, the processing module, in the process of establishing a connection with the target device according to the broadcast signal and sending the distribution network information to the target device, is specifically further configured to:
and determining that the second connection result is that the simulation hotspot softAP channel is not established, re-receiving the neighbor awareness network NAN broadcast signal, and re-determining whether the neighbor awareness network NAN channel can be established with the target device.
In a further apparatus of the above invention, the apparatus further comprises an initiating module for:
reading a device label on the NFC unit, and transmitting the device label to a cloud; wherein the NFC unit is disposed on an outer surface of the target device;
receiving device information sent by a cloud, and detecting a Neighbor Awareness Network (NAN) broadcast signal sent by target equipment or polling a simulated hotspot softAP broadcast signal sent by the target equipment after generating a configuration interface corresponding to the device information according to the device information;
the device information is obtained by matching the cloud on the device comparison table according to the device label, and the device comparison table comprises the corresponding relation between the device label and the device information.
In a further apparatus of the foregoing invention, the configuration interface includes a WiFi selection interface and a device binding selection interface, and accordingly, the processing module is further configured to:
starting a WiFi selection interface, acquiring distribution network information, and sending the distribution network information to target equipment;
and starting an equipment binding selection interface, determining right-confirming binding information, and sending the right-confirming binding information to the cloud.
Since the inventive apparatus has the same principle as the inventive method described above, further explanation is omitted here.
It should be noted that, in the present invention, the relevant functional modules may be implemented by a hardware processor (hardware processor).
The device distribution network apparatus provided by the above embodiment broadcasts two signals through the intelligent device, and adopts a combined control mode of a NAN distribution network mode and a SoftAp distribution network mode, so that the success rate of the device distribution network is ensured while the device is rapidly distributed.
Fig. 7 shows a schematic structural diagram of an equipment distribution network apparatus provided by the present invention, the apparatus includes a distribution module 71 and a connection module 72, where:
the publishing module 71 is configured to publish broadcast signals, where the broadcast signals include Neighbor Awareness Networking (NAN) broadcast signals and simulated hotspot softAP broadcast signals;
the connection module 72 is used for receiving the distribution network information and establishing connection with the cloud end through the router according to the distribution network information; the distribution network information is a distribution network mode execution strategy based on a preset distribution network mode set by the mobile terminal, establishes connection with the target equipment according to the received broadcast signal and sends the connection to the target equipment; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
Since the inventive apparatus has the same principle as the inventive method described above, further explanation is omitted here.
It should be noted that, in the present invention, the relevant functional modules may be implemented by a hardware processor (hardware processor).
The device distribution network apparatus provided by the above embodiment broadcasts two signals through the intelligent device, and adopts a combined control mode of a NAN distribution network mode and a SoftAp distribution network mode, so that the success rate of the device distribution network is ensured while the device is rapidly distributed.
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)81, a communication Interface (Communications Interface)82, a memory (memory)83 and a communication bus 84, wherein the processor 81, the communication Interface 82 and the memory 83 complete communication with each other through the communication bus 84. Processor 81 may call logic instructions in memory 83 to perform the following method: receiving a broadcast signal sent by a target device, wherein the broadcast signal comprises a Neighbor Awareness Network (NAN) broadcast signal and a simulation hotspot softAP broadcast signal; based on a preset distribution network mode execution strategy in a distribution network mode set, connection is established with target equipment according to a broadcast signal, and distribution network information is sent to the target equipment, so that the target equipment is connected with a cloud end through a router according to the distribution network information; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
In addition, the logic instructions in the memory 83 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions 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 instructions for causing 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.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: receiving a broadcast signal sent by a target device, wherein the broadcast signal comprises a Neighbor Awareness Network (NAN) broadcast signal and a simulation hotspot softAP broadcast signal; based on a distribution network mode execution strategy in a preset distribution network mode set, connection with target equipment is established according to a broadcast signal, and distribution network information is sent to the target equipment, so that the target equipment is connected with a cloud end through a router according to the distribution network information; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
The invention provides an electronic device, which may include: the system comprises a processor (processor), a communication Interface (communication Interface), a memory (memory) and a communication bus, wherein the processor, the communication Interface and the memory are communicated with each other through the communication bus. The processor may call logic instructions in memory to perform the following method: releasing broadcast signals, wherein the broadcast signals comprise Neighbor Awareness Networking (NAN) broadcast signals and simulated hotspot softAP broadcast signals; receiving distribution network information, and establishing connection with a cloud end through a router according to the distribution network information; the distribution network information is a distribution network mode execution strategy based on a preset distribution network mode set by the mobile terminal, establishes connection with the target equipment according to the received broadcast signal and sends the connection to the target equipment; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. 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 instructions for causing 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.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: releasing broadcast signals, wherein the broadcast signals comprise neighbor awareness network NAN broadcast signals and simulation hotspot softAP broadcast signals; receiving distribution network information, and establishing connection with a cloud end through a router according to the distribution network information; the distribution network information is a distribution network mode execution strategy based on a preset distribution network mode set by the mobile terminal, establishes connection with the target equipment according to the received broadcast signal and sends the connection to the target equipment; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
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-described 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 instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments 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, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should 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 (11)

1. A method for distributing a network for equipment is applied to a mobile terminal, and is characterized by comprising the following steps:
receiving a broadcast signal sent by a target device, wherein the broadcast signal comprises a Neighbor Awareness Network (NAN) broadcast signal and a simulated hotspot softAP broadcast signal;
based on a distribution network mode execution strategy in a preset distribution network mode set, connection with target equipment is established according to the broadcast signal, and distribution network information is sent to the target equipment, so that the target equipment is connected with a cloud end through a router according to the distribution network information; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
2. The device network distribution method according to claim 1, wherein the distribution network mode execution strategy in the distribution network mode set is executed in a Neighbor Awareness Network (NAN) distribution network mode first and executed in a hotspot simulation (softAP) distribution network mode later, and accordingly, the establishing of the connection with the target device according to the broadcast signal and the sending of the distribution network information to the target device includes:
determining whether a Neighbor Awareness Network (NAN) channel can be established with the target equipment or not according to a Neighbor Awareness Network (NAN) broadcast signal to obtain a first connection result;
determining that the first connection result is that a neighbor awareness network NAN channel is not established, and determining whether a simulated hotspot softAP channel can be established with the target device or not according to a simulated hotspot softAP broadcast signal to obtain a second connection result;
and determining that the second connection result is that a simulated hotspot softAP channel is successfully established, and sending distribution network information to the target device.
3. The device network distribution method according to claim 2, wherein the establishing a connection with a target device according to the broadcast signal and sending network distribution information to the target device further comprises:
and determining that the first connection result is that a neighbor awareness network NAN channel is successfully established, and sending distribution network information to the target equipment.
4. The device network distribution method according to claim 2 or 3, wherein the establishing a connection with a target device according to the broadcast signal and sending distribution network information to the target device further comprises:
and determining that the second connection result is that a simulated hotspot softAP channel is not established, re-receiving neighbor awareness network NAN broadcast signals, and re-determining whether a neighbor awareness network NAN channel can be established with the target device.
5. The device distribution network method according to claim 1, wherein before receiving the broadcast signal from the target device, the method further comprises:
reading a device label on an NFC unit, and transmitting the device label to the cloud; wherein the NFC unit is disposed on an outer surface of a target device;
receiving the device information sent by the cloud, and detecting a Neighbor Awareness Network (NAN) broadcast signal sent by a target device or polling a simulated hotspot softAP broadcast signal sent by the target device after generating a configuration interface corresponding to the device information according to the device information;
the device information is obtained by matching the cloud end on a device comparison table according to the device label, and the device comparison table comprises a corresponding relation between the device label and the device information.
6. The device distribution network method according to claim 5, wherein the configuration interface comprises a WiFi selection interface and a device binding selection interface, and accordingly the method further comprises:
starting a WiFi selection interface, acquiring distribution network information, and sending the distribution network information to the target equipment;
and starting the equipment binding selection interface, determining the right-confirming binding information, and sending the right-confirming binding information to the cloud.
7. A method for distributing a network for equipment is applied to target equipment and is characterized by comprising the following steps:
issuing broadcast signals, wherein the broadcast signals comprise Neighbor Awareness Networking (NAN) broadcast signals and simulated hotspot softAP broadcast signals;
receiving distribution network information, and establishing connection with a cloud terminal through a router according to the distribution network information;
the distribution network information is a distribution network mode execution strategy based on a preset distribution network mode set by the mobile terminal, establishes connection with target equipment according to the received broadcast signal and sends the broadcast signal to the target equipment; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
8. An equipment distribution network apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for receiving broadcast signals sent by target equipment, and the broadcast signals comprise Neighbor Awareness Network (NAN) broadcast signals and simulation hotspot softAP broadcast signals;
the processing module is used for executing a strategy based on a preset distribution network mode in a distribution network mode set, establishing connection with target equipment according to the broadcast signal, and sending distribution network information to the target equipment so that the target equipment is connected with a cloud end through a router according to the distribution network information; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
9. An equipment distribution network apparatus, comprising:
the broadcast signal distribution module is used for distributing broadcast signals, and the broadcast signals comprise Neighbor Awareness Networking (NAN) broadcast signals and simulation hotspot softAP broadcast signals;
the connection module is used for receiving the distribution network information and establishing connection with the cloud end through the router according to the distribution network information;
the distribution network information is a distribution network mode execution strategy based on a preset distribution network mode set by the mobile terminal, establishes connection with target equipment according to the received broadcast signal and sends the broadcast signal to the target equipment; the distribution network mode set comprises a neighbor awareness network NAN distribution network mode and a simulation hotspot softAP distribution network mode.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the device network distribution method according to any one of claims 1 to 6 when executing the program or implements the steps of the device network distribution method according to claim 7 when executing the program.
11. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the device network distribution method according to any one of claims 1 to 6, or when executed implements the steps of the device network distribution method according to claim 7.
CN202011511783.1A 2020-12-18 2020-12-18 Equipment network distribution method and device, electronic equipment and storage medium Pending CN114650613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511783.1A CN114650613A (en) 2020-12-18 2020-12-18 Equipment network distribution method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511783.1A CN114650613A (en) 2020-12-18 2020-12-18 Equipment network distribution method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114650613A true CN114650613A (en) 2022-06-21

Family

ID=81990112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511783.1A Pending CN114650613A (en) 2020-12-18 2020-12-18 Equipment network distribution method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114650613A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469789A (en) * 2014-12-05 2015-03-25 深圳市新联锋科技有限公司 Connection configuration method and system for intelligent household appliance
CN106507437A (en) * 2016-11-08 2017-03-15 北京小米移动软件有限公司 Smart machine networking method and device
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal
CN108513283A (en) * 2018-03-13 2018-09-07 青岛海尔科技有限公司 One kind matching network method, equipment, terminal, medium and computer equipment
CN110461025A (en) * 2019-06-25 2019-11-15 深圳安吉尔饮水产业集团有限公司 Network distribution method, network distribution device, mobile terminal and intelligent equipment
CN111065137A (en) * 2019-12-17 2020-04-24 海信集团有限公司 Method for accessing intelligent equipment to network based on Bluetooth and wireless network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469789A (en) * 2014-12-05 2015-03-25 深圳市新联锋科技有限公司 Connection configuration method and system for intelligent household appliance
CN106507437A (en) * 2016-11-08 2017-03-15 北京小米移动软件有限公司 Smart machine networking method and device
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal
CN108513283A (en) * 2018-03-13 2018-09-07 青岛海尔科技有限公司 One kind matching network method, equipment, terminal, medium and computer equipment
CN110461025A (en) * 2019-06-25 2019-11-15 深圳安吉尔饮水产业集团有限公司 Network distribution method, network distribution device, mobile terminal and intelligent equipment
CN111065137A (en) * 2019-12-17 2020-04-24 海信集团有限公司 Method for accessing intelligent equipment to network based on Bluetooth and wireless network

Similar Documents

Publication Publication Date Title
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN110839271B (en) Equipment connection method, system, platform and corresponding equipment
CN110636483A (en) Network distribution method and system
CN108011726A (en) A kind of household electrical appliances distribution method and system
US20120331156A1 (en) Wireless control system, methods and apparatus
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN106603716A (en) Synchronization method of intelligent device state, intelligent device and control terminal thereof
CN105392181A (en) Intelligent equipment networking method and device, and system
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
CN103685733A (en) Remote control method and terminal
US11835243B2 (en) Air conditioner networking method and terminal
CN105141342A (en) Method and system used for adding power line carrier wave communication network to electric appliance equipment
US20140287682A1 (en) Communication device and communication method
CN103634657A (en) Television and mobile terminal synchronous WIFI connection setup method and device
CN110288820A (en) A kind of connection method of remote control equipment and host
CN112637931A (en) Method and device for establishing network connection
WO2022000938A1 (en) Network distribution method, storage medium, household appliance, mobile terminal, and network distribution system
CN110798815A (en) Intelligent household system, electric appliance control method and device and router
WO2021248963A1 (en) Home appliance, networking method therefor, control terminal, and computer storage medium
CN105227627A (en) A kind of playback equipment packet control process and user terminal
CN112311633B (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN112305926B (en) Distribution network control method, distribution network control device, household appliance and storage medium
CN104298176A (en) Smart switch, host registration method thereof and smart control network
CN114650613A (en) Equipment network distribution method and device, electronic equipment and storage medium

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