CN114205378A - Network distribution method and device of Internet of things equipment, storage medium and electronic device - Google Patents

Network distribution method and device of Internet of things equipment, storage medium and electronic device Download PDF

Info

Publication number
CN114205378A
CN114205378A CN202111417180.XA CN202111417180A CN114205378A CN 114205378 A CN114205378 A CN 114205378A CN 202111417180 A CN202111417180 A CN 202111417180A CN 114205378 A CN114205378 A CN 114205378A
Authority
CN
China
Prior art keywords
internet
things
equipment
router
target
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
CN202111417180.XA
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111417180.XA priority Critical patent/CN114205378A/en
Publication of CN114205378A publication Critical patent/CN114205378A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention discloses a network distribution method and device, a storage medium and an electronic device of an internet of things device, wherein the method comprises the following steps: determining the equipment of the network to be distributed; under the condition that the equipment of the Internet of things enters a distribution network mode, configuration information determined by a target object is sent to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as those of the Internet of things equipment; acquiring a connection result of the Internet of things equipment accessing the target router by using the configuration information to determine whether the Internet of things equipment is successfully connected with the target router; the problem of the unable accurate completion of thing allies oneself with equipment and being connected with the router etc. is solved, and then realized that the thing allies oneself with effective and accurate net of joining in marriage of equipment, promoted the security that the thing allies oneself with equipment connection.

Description

Network distribution method and device of Internet of things equipment, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to a network distribution method and device of an internet of things device, a storage medium and an electronic device.
Background
With the increase of intelligent devices, the security problem of the intelligent devices in connection with the local router is gradually exposed, so that the security of the intelligent devices in connection with the router is urgently needed to be solved; secondly, routing brands are mixed, the use of character code sets is difficult to avoid and inconsistent, connection failure (caused by non-uniform character sets) occurs after a manufacturer sells the intelligent equipment, and the manufacturer often needs to spend a great deal of effort and time for checking and cannot accurately solve the problem. Secondly, 5G frequency channel router's a large amount of popularization, but smart machine because the problem of demand and cost, adopt 2.4G frequency channel radio frequency chip in a large number, lead to after the cell-phone under the 5G connection joins in marriage the net to smart machine, equipment can't connect the router.
Aiming at the problems that in the related art, the internet of things equipment cannot accurately complete connection with a router and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a network distribution method and device of an internet of things device, a storage medium and an electronic device, and at least solves the problems that in the related art, the internet of things device cannot be accurately connected with a router and the like.
According to an embodiment of the present invention, a network distribution method for an internet of things device is provided, including: determining the equipment of the network to be distributed; under the condition that the equipment of the Internet of things enters a distribution network mode, sending configuration information determined by a target object to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as the frequency band of the internet of things equipment; and acquiring a connection result of the Internet of things equipment accessing the target router by using the configuration information so as to determine whether the Internet of things equipment is successfully connected with the target router.
In an exemplary embodiment, before determining the internet of things device of the distribution network to be performed, the method further includes: receiving broadcast information sent by the Internet of things equipment, wherein the broadcast information is used for indicating that the Internet of things equipment supports a byte set of a media access control bit address of a connected router; screening a first wireless access point set according to the broadcast information, and determining a second wireless access point set which accords with a white list of the Internet of things equipment, wherein the first wireless access point set is a set corresponding to a router in a mobile terminal detection target area under an operating state; and arranging and displaying the second wireless access point set according to a preset rule.
In an exemplary embodiment, after the second set of wireless access points are arranged and displayed according to a preset rule, the method further includes: determining the type of equipment corresponding to each wireless access point in the second wireless access point set; determining a plurality of routers which are allowed to be connected by the Internet of things equipment according to the equipment type; and defaulting the plurality of routers as selection objects when the Internet of things equipment is used for distribution, and generating a record list.
In an exemplary embodiment, after defaulting the plurality of routers as selection objects for the distribution of the internet of things device and generating the record list, the method further includes: determining the network quality corresponding to a plurality of routers in the record list under the condition that the distribution network of the Internet of things equipment needs to be changed or the distribution network needs to be re-distributed; and taking the router with the network quality larger than the preset threshold value as a target selection object when the Internet of things equipment carries out distribution.
In an exemplary embodiment, in a case that the equipment of the internet of things enters the configuration mode, sending configuration information determined by the target object to the equipment of the internet of things includes: determining the times of the equipment entering the configuration mode; determining the selection range of the target object to the router according to the times, receiving a selection instruction of the target object, determining the target router from the selection range, and generating configuration information corresponding to the target router; and sending the configuration information to the Internet of things equipment.
In an exemplary embodiment, determining a selection range of a target object for a router according to the number of times, receiving a selection instruction of the target object to determine a target router from the selection range, and generating configuration information corresponding to the target router includes: under the condition that the Internet of things equipment firstly enters a configuration mode, receiving a first selection instruction of a target object, determining the target router from all routers which are allowed to be connected in a target area, and correspondingly generating configuration information; and under the condition that the equipment of the internet of things does not enter the configuration mode for the first time, receiving a second selection instruction of the target object, determining the target router from a plurality of routers in the record list and correspondingly generating configuration information.
In an exemplary embodiment, obtaining a connection result of the internet of things device accessing the target router by using the configuration information to determine whether the internet of things device successfully connects the target router includes: determining connection information of the configuration information used by the Internet of things equipment, wherein the connection information is used for indicating the Internet of things equipment to poll BSSID corresponding to the configuration information for connection attempt, and obtaining a target media access control bit address; and under the condition that the address of the target media access control bit is the same as the address information carried in the configuration information, determining that the Internet of things equipment is successfully connected with the target router.
According to another embodiment of the present invention, there is provided a network distribution device of an internet of things device, including: the determining module is used for determining the equipment of the Internet of things of the network to be distributed; the sending module is configured to send configuration information determined by a target object to the internet of things device when the internet of things device enters a network distribution mode, where the configuration information includes: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as the frequency band of the internet of things equipment; and the obtaining module is used for obtaining a connection result of the internet of things equipment accessing the target router by using the configuration information so as to determine whether the internet of things equipment is successfully connected with the target router.
In an exemplary embodiment, the apparatus further includes: the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving broadcast information sent by an Internet of things device, and the broadcast information is used for indicating that the Internet of things device supports a byte set of a media access control bit address of a connected router; screening a first wireless access point set according to the broadcast information, and determining a second wireless access point set which accords with a white list of the Internet of things equipment, wherein the first wireless access point set is a set corresponding to a router in a mobile terminal detection target area under an operating state; and arranging and displaying the second wireless access point set according to a preset rule.
In an exemplary embodiment, the receiving module further includes: a receiving unit, configured to determine a device type corresponding to each wireless access point in the second set of wireless access points; determining a plurality of routers which are allowed to be connected by the Internet of things equipment according to the equipment type; and defaulting the plurality of routers as selection objects when the Internet of things equipment is used for distribution, and generating a record list.
In an exemplary embodiment, the receiving module further includes: the determining unit is used for determining the network quality corresponding to the plurality of routers in the recording list under the condition that the distribution network of the Internet of things equipment needs to be changed or the distribution network needs to be re-distributed; and taking the router with the network quality larger than the preset threshold value as a target selection object when the Internet of things equipment carries out distribution.
In an exemplary embodiment, the sending module is further configured to determine the number of times that the equipment enters the configuration mode; determining the selection range of the target object to the router according to the times, receiving a selection instruction of the target object, determining the target router from the selection range, and generating configuration information corresponding to the target router; and sending the configuration information to the Internet of things equipment.
In an exemplary embodiment, the sending module is further configured to, when the internet of things device enters the configuration mode for the first time, receive a first selection instruction of the target object, determine the target router from all the plurality of routers allowed to be connected in the target area, and generate configuration information correspondingly; and under the condition that the equipment of the internet of things does not enter the configuration mode for the first time, receiving a second selection instruction of the target object, determining the target router from a plurality of routers in the record list and correspondingly generating configuration information.
In an exemplary embodiment, the obtaining module is further configured to determine connection information of usage configuration information of the internet of things device, where the connection information is used to instruct the internet of things device to poll a BSSID corresponding to the usage configuration information to perform a connection attempt, and obtain a target mac bit address; and under the condition that the address of the target media access control bit is the same as the address information carried in the configuration information, determining that the Internet of things equipment is successfully connected with the target router.
According to another aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, where the computer program is configured to, when running, execute the network distribution method of the above-mentioned internet of things device.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the network distribution method for the internet of things device through the computer program.
In the embodiment of the invention, the equipment of the Internet of things of the network to be distributed is determined; under the condition that the equipment of the Internet of things enters a distribution network mode, configuration information determined by a target object is sent to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as those of the Internet of things equipment; acquiring a connection result of the Internet of things equipment accessing the target router by using the configuration information to determine whether the Internet of things equipment is successfully connected with the target router; when the method is used for configuring the corresponding router for the equipment connected with the Internet of things, the configuration information used for connecting the router is sent to the equipment connected with the Internet of things when the frequency band of the router is determined to be the same as that of the equipment connected with the Internet of things.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a network distribution method of an internet of things device according to an embodiment of the present invention;
fig. 2 is a flowchart of a network distribution method of an internet of things device according to an embodiment of the present invention;
fig. 3 is an application scenario of a distribution network of an internet of things device according to an alternative embodiment of the present invention;
fig. 4 is a timing diagram of a network distribution method of an internet of things device according to an alternative embodiment of the invention;
fig. 5 is a block diagram of a distribution network apparatus of an internet of things device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking the operation on a mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of the network distribution method of the internet of things device according to the embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, which in an exemplary embodiment may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the distribution network method of the internet of things device in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a network distribution method for an internet of things device is provided, which is applied to the mobile terminal, and fig. 2 is a flowchart of the network distribution method for the internet of things device according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, determining the equipment of the Internet of things of the network to be distributed;
step S204, under the condition that the equipment of the Internet of things enters a distribution network mode, sending configuration information determined by a target object to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as the frequency band of the internet of things equipment;
step S206, obtaining a connection result of the internet of things device accessing the target router using the configuration information, so as to determine whether the internet of things device is successfully connected to the target router.
Through the steps, the equipment of the Internet of things of the network to be distributed is determined; under the condition that the equipment of the Internet of things enters a distribution network mode, configuration information determined by a target object is sent to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as those of the Internet of things equipment; acquiring a connection result of the Internet of things equipment accessing the target router by using the configuration information to determine whether the Internet of things equipment is successfully connected with the target router; when the method is used for configuring the corresponding router for the equipment connected with the Internet of things, the configuration information used for connecting the router is sent to the equipment connected with the Internet of things when the frequency band of the router is determined to be the same as that of the equipment connected with the Internet of things.
Before determining the configuration information, the mobile terminal that successfully establishes a communication connection with the equipment for internet of things needs to determine the address SSID and BSSID of the mac bit of the router 2.4G and 5G frequency bands that are safe by default for the target object, so as to generate a corresponding security aggregate, and send the security aggregate and the configuration information together to the equipment for internet of things, so that the equipment for internet of things can attempt a connection in a frequency band according to the security aggregate.
In an exemplary embodiment, before determining the internet of things device of the distribution network to be performed, the method further includes: receiving broadcast information sent by the Internet of things equipment, wherein the broadcast information is used for indicating that the Internet of things equipment supports a byte set of a media access control bit address of a connected router; screening a first wireless access point set according to the broadcast information, and determining a second wireless access point set which accords with a white list of the Internet of things equipment, wherein the first wireless access point set is a set corresponding to a router in a mobile terminal detection target area under an operating state; and arranging and displaying the second wireless access point set according to a preset rule.
It can be understood that, after the power is turned on, if it is determined that the router cannot be connected, the internet of things device will send broadcast information indicating configuration information that can be quickly discovered, and then determine, according to the broadcast information, characteristics of a wireless access point to which the internet of things device can access, for example: and then, screening the detected frequency bands of the routers which can be connected in the target area of the mobile terminal, determining a second wireless access point set which accords with a white list of the internet of things equipment, displaying the set on a display interface corresponding to the mobile terminal, and displaying the set to a target object, for example, 5 wireless access points exist under 2.4G, and 3 wireless access points exist under 5G.
In an exemplary embodiment, after the second set of wireless access points are arranged and displayed according to a preset rule, the method further includes: determining the type of equipment corresponding to each wireless access point in the second wireless access point set; determining a plurality of routers which are allowed to be connected by the Internet of things equipment according to the equipment type; and defaulting the plurality of routers as selection objects when the Internet of things equipment is used for distribution, and generating a record list.
It can be understood that, since the bytes of the wireless access point addresses corresponding to different manufacturers are different, the device type of the corresponding router can be directly determined according to the bytes, the frequency band situation supported by the router can be quickly determined, the probability that the internet of things device is matched with a non-target router is further reduced, after the device type of the router is determined, whether the internet of things device and the router are in the same manufacturer is determined by combining the information of the internet of things device, the router to which the same manufacturer belongs is used as a default selection object of the internet of things device corresponding to the manufacturer, and a record list is generated, so that when the fact that the internet of things device of the manufacturer needs to be equipped with a network and a router to be connected is determined, the router in the record list is preferentially selected.
In an exemplary embodiment, after defaulting the plurality of routers as selection objects for the distribution of the internet of things device and generating the record list, the method further includes: determining the network quality corresponding to a plurality of routers in the record list under the condition that the distribution network of the Internet of things equipment needs to be changed or the distribution network needs to be re-distributed; and taking the router with the network quality larger than the preset threshold value as a target selection object when the Internet of things equipment carries out distribution.
In short, in order to ensure the networking quality of the internet of things equipment and ensure the transmission of subsequent information, when the distribution network of the internet of things equipment needs to be changed or the distribution network needs to be reconfigured, the network quality of each router in the record list which can be currently connected with the internet of things equipment is monitored, and the router which meets a preset threshold value is used as a target selection object which is preferentially selected when the distribution network of the internet of things equipment is configured.
In an exemplary embodiment, in a case that the equipment of the internet of things enters the configuration mode, sending configuration information determined by the target object to the equipment of the internet of things includes: determining the times of the equipment entering the configuration mode; determining the selection range of the target object to the router according to the times, receiving a selection instruction of the target object, determining the target router from the selection range, and generating configuration information corresponding to the target router; and sending the configuration information to the Internet of things equipment.
In an exemplary embodiment, determining a selection range of a target object for a router according to the number of times, receiving a selection instruction of the target object to determine a target router from the selection range, and generating configuration information corresponding to the target router includes: under the condition that the Internet of things equipment firstly enters a configuration mode, receiving a first selection instruction of a target object, determining the target router from all routers which are allowed to be connected in a target area, and correspondingly generating configuration information; and under the condition that the equipment of the internet of things does not enter the configuration mode for the first time, receiving a second selection instruction of the target object, determining the target router from a plurality of routers in the record list and correspondingly generating configuration information.
That is to say, when the internet of things device is used for the first time, the router never before accessed to any router, and there is no corresponding alternative recording list, so it is necessary to determine the target router used for the distribution network connection of the internet of things device from all connectable routers existing in the target area, and when the internet of things device is not used for the first time, because the corresponding recording list is saved before, then in order to speed up the connection efficiency of the internet of things device, the target router is determined from a plurality of routers existing in the recording list as a new connection router of the internet of things device.
In an exemplary embodiment, obtaining a connection result of the internet of things device accessing the target router by using the configuration information to determine whether the internet of things device successfully connects the target router includes: determining connection information of the configuration information used by the Internet of things equipment, wherein the connection information is used for indicating the Internet of things equipment to poll BSSID corresponding to the configuration information for connection attempt, and obtaining a target media access control bit address; and under the condition that the address of the target media access control bit is the same as the address information carried in the configuration information, determining that the Internet of things equipment is successfully connected with the target router.
For example, after receiving the configuration information, the internet of things device stores the configuration information, and performs router connection using BSSID corresponding to the configuration information and 2.4G secret, where polling is attempted using BSSID issued by the mobile terminal, and compares SSID of a media access control bit address acquired by an air interface with SSID issued by the mobile terminal, and finally acquires correct SSID information.
In order to better understand the process of the network distribution method of the internet of things device, the following describes a flow of the network distribution implementation method of the internet of things device with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
In this embodiment, a network distribution method for an internet of things device is provided, and fig. 3 is an application scenario of a network distribution of the internet of things device according to an optional embodiment of the present invention, as shown in fig. 3, specifically including:
the intelligent device comprises a mobile phone (equivalent to a mobile terminal in the embodiment of the application), intelligent devices 1 and 2 (equivalent to an internet of things device in the embodiment of the application), and a home gateway (equivalent to a router in the embodiment of the application), wherein the intelligent devices are easily influenced by a counterfeit route and a counterfeit service cloud in a neighboring area when being connected with the home gateway, so that the intelligent devices can not be precisely connected with the router due to the hijack problem which may occur when being connected with the router.
Optionally, the process of configuring the internet of things device in the application scenario includes: operating the Internet of things equipment to enter a configuration mode; operating a mobile phone APP to select a configured target router and inputting a router password; the mobile phone issues the SSID, BSSID and password of the target router to the Internet of things equipment; and the Internet of things equipment is connected with the target router by using the received information.
As an optional implementation manner, fig. 4 is a network entry timing diagram of an internet-of-things device configuration according to an optional embodiment of the present invention, including the following steps:
step 1: the intelligent equipment broadcasts a configurable SSID hotspot Beacon; a configuration discovery broadcast is sent to the surroundings.
Step 2: and the user clicks the mobile phone APP to issue a configuration binding command.
And step 3: the handset starts scanning for hot spot information.
And 4, step 4: scanning hotspot information and a surrounding AP (Access point, AP for short) list which accord with specific intelligent equipment to obtain a configurable routing list and displaying the routing list to a target object; the intelligent devices that can be configured and the available router (AP) information are recorded.
And 5: and receiving a selection instruction of the target object on the mobile phone, and determining a target route to be connected of the intelligent equipment.
Step 6: sending configuration information corresponding to the target route to the intelligent device, wherein the configuration information comprises: target router SSID (2.4G +5G frequency band), BSSID (2.4G +5G), BSSID and SSID frequency band mark, and (2.4G) router password.
And 7: and the intelligent equipment stores the configuration data.
And 8: the intelligent equipment uses the BSSID and the 2.4G secret to carry out router connection, wherein polling is tried by using the BSSID issued by the mobile intelligent terminal (mobile phone), and the SSID acquired by the air interface is compared with the SSID issued by the mobile intelligent terminal, so that correct SSID information is finally acquired.
Optionally, the intelligent device performs a routing connection attempt through a set of SSID and BSSID issued by the mobile phone, and if the password is null, the intelligent device does not perform connection, thereby preventing counterfeiting of the router. And matching through the BSSID set, the SSID set and the frequency band mark to obtain the available target connection information.
And step 9: the target router returns a connection result to the intelligent equipment after the intelligent equipment is successfully connected; and accessing the cloud to send the equipment information of the intelligent equipment.
Step 10: and the intelligent equipment returns the configuration result to the mobile phone.
Step 11: and informing a user of a configuration result on a display interface corresponding to the mobile phone, and prompting the user that the intelligent equipment has successfully accessed the Internet of things to complete configuration.
It should be noted that the intelligent terminal software on the mobile terminal needs to obtain the SSID and BSSID of the router 2.4G band and the 5G band existing inside the home, and record them as a white list.
Through the optional embodiment, the problem that Wi-Fi hijacking and SSID coding cause failure in router connection is solved by using a mixed strategy of SSID and BSSID, then the router is accurately connected, the intelligent equipment is not allowed to connect a counterfeit route, the hijacking risk is solved, the success rate of router connection is greatly improved by determining the frequency band information of the router and the internet of things equipment, and the after-sale and return cost of the intelligent product is reduced. The router models are various, and the problem of unmatched character sets is solved by a method of re-scanning by BBID and acquiring the target routing SSID.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Fig. 5 is a block diagram of a distribution network apparatus of an internet of things device according to an embodiment of the present invention; as shown in fig. 5, includes:
the determining module 52 is configured to determine an internet of things device of a network to be distributed;
a sending module 54, configured to send configuration information determined by a target object to the internet of things device when the internet of things device enters a network distribution mode, where the configuration information includes: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as the frequency band of the internet of things equipment;
an obtaining module 56, configured to obtain a connection result that the internet of things device accesses the target router using the configuration information, so as to determine whether the internet of things device successfully connects to the target router.
Determining the equipment of the Internet of things of the network to be distributed through the device; under the condition that the equipment of the Internet of things enters a distribution network mode, configuration information determined by a target object is sent to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as those of the Internet of things equipment; acquiring a connection result of the Internet of things equipment accessing the target router by using the configuration information to determine whether the Internet of things equipment is successfully connected with the target router; when the method is used for configuring the corresponding router for the equipment connected with the Internet of things, the configuration information used for connecting the router is sent to the equipment connected with the Internet of things when the frequency band of the router is determined to be the same as that of the equipment connected with the Internet of things.
In an exemplary embodiment, the apparatus further includes: the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving broadcast information sent by an Internet of things device, and the broadcast information is used for indicating that the Internet of things device supports a byte set of a media access control bit address of a connected router; screening a first wireless access point set according to the broadcast information, and determining a second wireless access point set which accords with a white list of the Internet of things equipment, wherein the first wireless access point set is a set corresponding to a router in a mobile terminal detection target area under an operating state; and arranging and displaying the second wireless access point set according to a preset rule.
It can be understood that, after the power is turned on, if it is determined that the router cannot be connected, the internet of things device will send broadcast information indicating configuration information that can be quickly discovered, and then determine, according to the broadcast information, characteristics of a wireless access point to which the internet of things device can access, for example: and then, screening the detected frequency bands of the routers which can be connected in the target area of the mobile terminal, determining a second wireless access point set which accords with a white list of the internet of things equipment, displaying the set on a display interface corresponding to the mobile terminal, and displaying the set to a target object, for example, 5 wireless access points exist under 2.4G, and 3 wireless access points exist under 5G.
In an exemplary embodiment, the receiving module further includes: a receiving unit, configured to determine a device type corresponding to each wireless access point in the second set of wireless access points; determining a plurality of routers which are allowed to be connected by the Internet of things equipment according to the equipment type; and defaulting the plurality of routers as selection objects when the Internet of things equipment is used for distribution, and generating a record list.
It can be understood that, since the bytes of the wireless access point addresses corresponding to different manufacturers are different, the device type of the corresponding router can be directly determined according to the bytes, the frequency band situation supported by the router can be quickly determined, the probability that the internet of things device is matched with a non-target router is further reduced, after the device type of the router is determined, whether the internet of things device and the router are in the same manufacturer is determined by combining the information of the internet of things device, the router to which the same manufacturer belongs is used as a default selection object of the internet of things device corresponding to the manufacturer, and a record list is generated, so that when the fact that the internet of things device of the manufacturer needs to be equipped with a network and a router to be connected is determined, the router in the record list is preferentially selected.
In an exemplary embodiment, the receiving module further includes: the determining unit is used for determining the network quality corresponding to the plurality of routers in the recording list under the condition that the distribution network of the Internet of things equipment needs to be changed or the distribution network needs to be re-distributed; and taking the router with the network quality larger than the preset threshold value as a target selection object when the Internet of things equipment carries out distribution.
In short, in order to ensure the networking quality of the internet of things equipment and ensure the transmission of subsequent information, when the distribution network of the internet of things equipment needs to be changed or the distribution network needs to be reconfigured, the network quality of each router in the record list which can be currently connected with the internet of things equipment is monitored, and the router which meets a preset threshold value is used as a target selection object which is preferentially selected when the distribution network of the internet of things equipment is configured.
In an exemplary embodiment, the sending module is further configured to determine the number of times that the equipment enters the configuration mode; determining the selection range of the target object to the router according to the times, receiving a selection instruction of the target object, determining the target router from the selection range, and generating configuration information corresponding to the target router; and sending the configuration information to the Internet of things equipment.
In an exemplary embodiment, the sending module is further configured to, when the internet of things device enters the configuration mode for the first time, receive a first selection instruction of the target object, determine the target router from all the plurality of routers allowed to be connected in the target area, and generate configuration information correspondingly; and under the condition that the equipment of the internet of things does not enter the configuration mode for the first time, receiving a second selection instruction of the target object, determining the target router from a plurality of routers in the record list and correspondingly generating configuration information.
That is to say, when the internet of things device is used for the first time, the router never before accessed to any router, and there is no corresponding alternative recording list, so it is necessary to determine the target router used for the distribution network connection of the internet of things device from all connectable routers existing in the target area, and when the internet of things device is not used for the first time, because the corresponding recording list is saved before, then in order to speed up the connection efficiency of the internet of things device, the target router is determined from a plurality of routers existing in the recording list as a new connection router of the internet of things device.
In an exemplary embodiment, the obtaining module is further configured to determine connection information of usage configuration information of the internet of things device, where the connection information is used to instruct the internet of things device to poll a BSSID corresponding to the usage configuration information to perform a connection attempt, and obtain a target mac bit address; and under the condition that the address of the target media access control bit is the same as the address information carried in the configuration information, determining that the Internet of things equipment is successfully connected with the target router.
For example, after receiving the configuration information, the internet of things device stores the configuration information, and performs router connection using BSSID corresponding to the configuration information and 2.4G secret, where polling is attempted using BSSID issued by the mobile terminal, and compares SSID of a media access control bit address acquired by an air interface with SSID issued by the mobile terminal, and finally acquires correct SSID information.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, determining the equipment of the Internet of things of the network to be distributed;
s2, when the equipment of the Internet of things enters a distribution network mode, sending configuration information determined by a target object to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as the frequency band of the internet of things equipment;
and S3, obtaining the connection result of the Internet of things device accessing the target router by using the configuration information, so as to determine whether the Internet of things device is successfully connected with the target router.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining the equipment of the Internet of things of the network to be distributed;
s2, when the equipment of the Internet of things enters a distribution network mode, sending configuration information determined by a target object to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as the frequency band of the internet of things equipment;
and S3, obtaining the connection result of the Internet of things device accessing the target router by using the configuration information, so as to determine whether the Internet of things device is successfully connected with the target router.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A network distribution method of an Internet of things device is characterized by comprising the following steps:
determining the equipment of the network to be distributed;
under the condition that the equipment of the Internet of things enters a distribution network mode, sending configuration information determined by a target object to the equipment of the Internet of things, wherein the configuration information comprises: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as the frequency band of the internet of things equipment;
and acquiring a connection result of the Internet of things equipment accessing the target router by using the configuration information so as to determine whether the Internet of things equipment is successfully connected with the target router.
2. The method for distributing the network of the internet of things equipment according to claim 1, wherein before the determining of the internet of things equipment to be distributed, the method further comprises:
receiving broadcast information sent by the equipment in the Internet of things, wherein the broadcast information is used for indicating that the equipment in the Internet of things supports a byte set of a media access control bit address of a connected router;
screening a first wireless access point set according to the broadcast information, and determining a second wireless access point set which accords with a white list of the Internet of things equipment, wherein the first wireless access point set is a set corresponding to a router in a mobile terminal detection target area under an operating state;
and arranging and displaying the second wireless access point set according to a preset rule.
3. The network distribution method of the internet of things equipment according to claim 2, wherein after the second set of wireless access points are arranged and displayed according to a preset rule, the method further comprises:
determining a device type corresponding to each wireless access point in the second set of wireless access points;
determining a plurality of routers which are allowed to be connected by the Internet of things equipment according to the equipment type;
and defaulting the plurality of routers as selection objects when the Internet of things equipment is used for distribution, and generating a record list.
4. The network distribution method of the internet of things equipment according to claim 3, wherein after defaulting the plurality of routers as selection objects when the internet of things equipment performs network distribution and generating the record list, the method further comprises:
determining the network quality corresponding to a plurality of routers in the recording list under the condition that the distribution network of the Internet of things equipment needs to be changed or the distribution network needs to be re-distributed;
and taking the router with the network quality larger than a preset threshold value as a target selection object when the internet of things equipment carries out network distribution.
5. The network distribution method of the equipment of the internet of things according to claim 1, wherein when the equipment of the internet of things enters a configuration mode, sending configuration information determined by a target object to the equipment of the internet of things comprises:
determining the number of times the equipment enters the configuration mode;
determining the selection range of the target object to the router according to the times, receiving a selection instruction of the target object, determining the target router from the selection range, and generating configuration information corresponding to the target router;
and sending the configuration information to the Internet of things equipment.
6. The network distribution method of the equipment of the internet of things according to claim 5, wherein the step of determining the selection range of the target object for the router according to the times, receiving the selection instruction of the target object to determine the target router from the selection range, and generating the configuration information corresponding to the target router comprises:
under the condition that the equipment of the internet of things enters the configuration mode for the first time, receiving a first selection instruction of the target object to determine a target router from all routers which are allowed to be connected in a target area and correspondingly generating configuration information;
and under the condition that the equipment of the internet of things does not enter the configuration mode for the first time, receiving a second selection instruction of the target object to determine a target router from a plurality of routers in a record list and correspondingly generating configuration information.
7. The network distribution method of the internet of things equipment according to claim 1, wherein obtaining a connection result of the internet of things equipment accessing the target router by using the configuration information to determine whether the internet of things equipment successfully connects the target router comprises:
determining connection information of the equipment using the configuration information, wherein the connection information is used for indicating the equipment to poll and use BSSID corresponding to the configuration information to perform connection attempt, and obtaining a target media access control bit address;
and under the condition that the target media access control bit address is the same as the address information carried in the configuration information, determining that the Internet of things equipment is successfully connected with the target router.
8. A network distribution device of an Internet of things device is characterized by comprising:
the determining module is used for determining the equipment of the Internet of things of the network to be distributed;
the sending module is configured to send configuration information determined by a target object to the internet of things device when the internet of things device enters a network distribution mode, where the configuration information includes: the method comprises the steps that address information of a wireless access point corresponding to a target router and a connection password of the target router are obtained, and the target router is determined in a plurality of routers according to a selection instruction of a target object; the frequency bands of the routers are the same as the frequency band of the internet of things equipment;
and the obtaining module is used for obtaining a connection result of the internet of things equipment accessing the target router by using the configuration information so as to determine whether the internet of things equipment is successfully connected with the target router.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202111417180.XA 2021-11-25 2021-11-25 Network distribution method and device of Internet of things equipment, storage medium and electronic device Pending CN114205378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111417180.XA CN114205378A (en) 2021-11-25 2021-11-25 Network distribution method and device of Internet of things equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111417180.XA CN114205378A (en) 2021-11-25 2021-11-25 Network distribution method and device of Internet of things equipment, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114205378A true CN114205378A (en) 2022-03-18

Family

ID=80649049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111417180.XA Pending CN114205378A (en) 2021-11-25 2021-11-25 Network distribution method and device of Internet of things equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114205378A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827232A (en) * 2022-04-25 2022-07-29 珠海格力电器股份有限公司 Pairing method, pairing terminal and pairing system of multi-split system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160087811A1 (en) * 2014-09-19 2016-03-24 Xiaomi Inc. Methods and devices of accessing wireless network
CN108809737A (en) * 2018-07-27 2018-11-13 杭州古北电子科技有限公司 Equipment network distribution device, system and method
CN110798493A (en) * 2018-08-02 2020-02-14 青岛经济技术开发区海尔热水器有限公司 Network configuration method, device, terminal equipment and storage medium
CN110855677A (en) * 2019-11-15 2020-02-28 北京小米移动软件有限公司 Network distribution method and device, electronic equipment and storage medium
WO2020168984A1 (en) * 2019-02-22 2020-08-27 阿里巴巴集团控股有限公司 Network configuration method and apparatus, device, and system
CN111601366A (en) * 2020-06-19 2020-08-28 欧普照明股份有限公司 Network distribution method, device to be networked, auxiliary network distribution device and network distribution system
CN111615123A (en) * 2020-04-30 2020-09-01 广东科徕尼智能科技有限公司 Method, device and storage medium for intelligent device network distribution
CN113099440A (en) * 2019-12-23 2021-07-09 阿里巴巴集团控股有限公司 Network configuration method, device, equipment and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160087811A1 (en) * 2014-09-19 2016-03-24 Xiaomi Inc. Methods and devices of accessing wireless network
CN108809737A (en) * 2018-07-27 2018-11-13 杭州古北电子科技有限公司 Equipment network distribution device, system and method
CN110798493A (en) * 2018-08-02 2020-02-14 青岛经济技术开发区海尔热水器有限公司 Network configuration method, device, terminal equipment and storage medium
WO2020168984A1 (en) * 2019-02-22 2020-08-27 阿里巴巴集团控股有限公司 Network configuration method and apparatus, device, and system
CN110855677A (en) * 2019-11-15 2020-02-28 北京小米移动软件有限公司 Network distribution method and device, electronic equipment and storage medium
CN113099440A (en) * 2019-12-23 2021-07-09 阿里巴巴集团控股有限公司 Network configuration method, device, equipment and system
CN111615123A (en) * 2020-04-30 2020-09-01 广东科徕尼智能科技有限公司 Method, device and storage medium for intelligent device network distribution
CN111601366A (en) * 2020-06-19 2020-08-28 欧普照明股份有限公司 Network distribution method, device to be networked, auxiliary network distribution device and network distribution system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827232A (en) * 2022-04-25 2022-07-29 珠海格力电器股份有限公司 Pairing method, pairing terminal and pairing system of multi-split system
CN114827232B (en) * 2022-04-25 2023-11-24 珠海格力电器股份有限公司 Pairing method, pairing terminal and pairing system of multi-split air conditioner system

Similar Documents

Publication Publication Date Title
US20220326959A1 (en) Method and device for efficiently providing profile for communication service
EP3565369B1 (en) Esim card activation method, wireless router and computer storage medium
CN110061871B (en) Base station opening method and device, computer storage medium and equipment
EP1978772A1 (en) Authentication policy
CN111615123A (en) Method, device and storage medium for intelligent device network distribution
CN109068346B (en) Method and device for configuring WiFi parameters
CN105072012A (en) Quick network access method of intelligent device
US10887745B2 (en) Method and device for sharing file between different terminals
CN111163469A (en) Network distribution method of intelligent household appliance, wireless module and intelligent household appliance
CN111278036B (en) Method and device for acquiring MAC address
US10959063B2 (en) Notification method for configuring a secure element
CN113285810B (en) Target equipment login method and device, storage medium and electronic device
CN114205378A (en) Network distribution method and device of Internet of things equipment, storage medium and electronic device
CN111818611B (en) Equipment binding method and device
CN112637221A (en) Equipment control method and device
CN112714009A (en) Network distribution method, network equipment to be distributed and network equipment
CN105848251B (en) Hotspot access method, device and terminal
CN108966206B (en) Data traffic sharing method and device, terminal and storage medium
CN111132266B (en) Terminal access method and system and cloud server
CN111372224A (en) Method, device and equipment for sharing seed code number by eSIM (embedded subscriber identity Module)
CN112738785B (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN108141906B (en) Mobile data sharing method and mobile terminal
CN113709849A (en) Network access method and device of equipment to be accessed to network, storage medium and electronic device
CN113259928A (en) OTA (over the air) upgrading method and device, electronic equipment, storage medium and program product
CN111294314A (en) Message processing method, device and system

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