Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, the distribution network system 100 includes a distribution network device 11, an internet of things device 12, a router 13, and a network backend 14, where the distribution network device 11 is in communication connection with the internet of things device 12, the internet of things device 12 is in communication connection with the network backend 14 through the router 13, and the network backend 14 is also in communication connection with the distribution network device 11. The communication modes comprise 5G communication, 4G communication, 3G communication, 2G communication, CDMA, Zig-Bee, Bluetooth (Bluetooth), wireless broadband (Wi-Fi), Ultra Wideband (UWB) and Near Field Communication (NFC), CDMA2000, GSM, Infra Red (IR), ISM, RFID, UMTS/3GPPw/HSDPA, WiMAXwi-Fi, ZigBee and the like.
In this embodiment, the distribution network device 11 and the internet of things device 12 support the same physical layer communication protocol to establish communication connection, so that the compatibility between the two devices is good, the distribution network device 11 can establish communication with the internet of things device 12 without obstacles, and a distribution network task is quickly completed, thereby improving the distribution network efficiency. It should be noted that the distribution network device 11 according to this embodiment is different from a traditional terminal, a router, and other devices for distribution networks, and is an independent device added to the existing internet of things distribution network architecture, which is developed based on the most common bottom layer communication protocol and is compatible with various internet of things devices. The equipment additionally arranged on the existing Internet of things distribution network framework can realize simple, convenient and quick distribution network under the condition of not changing the existing Internet of things framework, other equipment in the Internet of things framework does not need to be redesigned and planned, and the distribution network cost can be saved to a certain extent.
In this embodiment, the distribution network device 11 cooperates with the internet of things device 12, so that the internet of things device 12 accesses the network background 14 through the router 13, where the distribution network device 11 supports installation of various applications, such as one or more of the following applications: a distribution network application, a shopping application, a gaming application, a telephone application, an instant messaging application, or a web browsing application, among others. Through the distribution network application program, the distribution network device 11 can effectively implement a distribution network by the coordination with the networking device 12.
The distribution network device 11 supports various interaction modes to complete related distribution network operations, such as a voice mode, a keyboard mode, a touch screen mode, a Radio Frequency ID (Radio Frequency ID) mode, a Near Field Communication (NFC) mode, and the like, for example, the distribution network device 11 is provided with a keyboard, and when a network is distributed, a service set identifier and a login password of the router 13 are input through the keyboard, or the distribution network device 11 scans an RFID tag attached to the router 13 and extracts the service set identifier and the login password of the router 13 from the RFID tag. It will also be appreciated that the distribution network device 11 may be a distribution network application, which may be installed in any suitable type of electronic device.
The internet of things device 12 supports wireless communication, and can establish wireless connection with the distribution network device 11 or the router 13, for example, the internet of things device 12 is provided with a WIFI module, and the distribution network device 11 or the router 13 is provided with a WIFI module, so that the two can communicate with each other wirelessly through the WIFI module.
The internet of things device 12 collects ambient environment information or self-work information, and sends the ambient environment information or the self-work information to the network background 14 through the router 13, so that a manager can monitor the internet of things device 12 in real time in the network background 14.
It is understood that the internet of things device 12 can be any suitable electronic device capable of wireless communication, including a refrigerator, a television, a water dispenser, various sensors, and the like.
The router 13 may store, group and forward data packets sent by the internet of things device 12 or the distribution network device 11 to the network background 14, where the router 13 may support multiple internet of things devices 12 or distribution network devices 11 to surf the internet at the same time.
It will be appreciated that router 13 comprises any suitable type of gateway device, such as a WIFI router or the like.
The network background 14 is configured to authenticate the identity of the internet of things device 12 and complete service operations such as pre-registration of identity information of the internet of things device 12.
In some embodiments, the network backend 14 includes an authentication server 141 and a device management platform 142, where the authentication server 141 may store identity information of each registered internet of things device and related information thereof in advance, and the device management platform 142 may implement management and data analysis of each internet of things device.
In this embodiment, the distribution network device may send a distribution network request to the network background, where the distribution network request carries a distribution network address, and one or more internet of things devices exist at each distribution network address, where the administrator has stored the identity information of each internet of things device at the distribution network address in the network background. Therefore, when the distribution network equipment sends a distribution network request to the network background, the network background analyzes the distribution network address meeting the engineering application scene from the distribution network request, extracts the identity information of each corresponding internet of things equipment according to the distribution network address, and sends the identity information of each internet of things equipment to the distribution network equipment, so that the distribution network equipment can know all the internet of things equipment needing distribution in the corresponding room, and the distribution network omission is avoided.
Referring to fig. 2, fig. 2 is a schematic diagram of a distribution network scenario according to an embodiment of the present invention. As shown in fig. 2, the distribution network scenario 200 includes 6 first rooms a1 to a second room a6, each room is provided with related furniture, furniture decorations, internet of things devices and networking facilities, wherein the furniture includes a double bed 21, the furniture devices include flowers and trees 22, the internet of things devices include a television 23, a refrigerator 24, a water dispenser 25 and a temperature sensor 26, and the networking facilities include a router 27.
In this embodiment, the television 23 is an intelligent television, which is configured with a networking function for providing multimedia services for users living in a room, and a multimedia service provider pushes various types of multimedia contents or programs to the television 23 through the internet.
The refrigerator 24 is configured to provide a cold drink preservation service, and is configured with a networking function, and the refrigerator 24 can upload current operation parameters including current in-refrigerator temperature, operating current and voltage, and the like to a designated cloud or background through the internet. The administrator can be aware of the operating status of the refrigerator 24 in the cloud or in the background to ensure the security and service experience of the user.
The water dispenser 25 is used for providing drinking water service and is provided with a networking function, the water dispenser 25 can upload data such as daily drinking times and water consumption of a user to a designated cloud end or a background through the internet, so that the cloud end or the background can make relevant business logic according to the daily drinking times and water consumption of the user, for example, for an old person, by analyzing daily drinking data of the old person, when the water consumption of the old person is abnormal, the old person is reminded. Or for some special patients, such as parkinson patients, such business logic is of practical significance.
Temperature sensor 26 is used for gathering the temperature data in the room, and it disposes the networking function, and temperature sensor 26 uploads current temperature data to appointed cloud end or backstage through the internet to implement more humanized, scientific regulation room temperature.
The router 27 is used as an internet access of each piece of internet of things device, and may be connected to all the pieces of internet of things devices wirelessly or by wire, and further communicate with a network background through the internet, for example, the router 27 is configured with a service set identifier SSID and a login password, and the television 23 acquires the service set identifier SSID and the login password and connects to the router 27 through the service set identifier SSID and the login password. Similarly, the refrigerator 24, the water dispenser 25 or the temperature sensor 26 may be connected to the router 27 through the service set identifier SSID and the login password of the router 27, so that each internet of things device may upload various data to the network background through the router 27.
In order to prevent malicious damage from attacking the network background or maliciously aggravating the operation load of the network background, in some embodiments, after each piece of internet-of-things equipment is accessed to the router 27, the network background authenticates the identity of the piece of internet-of-things equipment, and then the piece of internet-of-things equipment can communicate with the network background through the router 27.
As mentioned above, when the various internet of things devices are just configured in the room 21, they have not yet accessed the router 27, and even cannot communicate with the network background through the router 27. Therefore, various internet of things devices need to access the router 27.
Also, the internet of things devices of any two rooms are not mixedly connected with the router of the other room, e.g., the internet of things device in the first room a1 is not effectively connected with the router in the second room a2, but the internet of things device in the first room a1 is effectively connected with the router in the first room a1, subject to wall obstruction between the rooms.
Therefore, the user 28 needs to hold the distribution network device 29 to access the internet of things devices in each room one by one to the routers in the room, where the default routers have access to the network background.
As described above, the distribution network application is installed in the distribution network device 29, and the user operates the distribution network application of the distribution network device 29, so that the internet of things devices in the first room a1 to the second room a6 are all connected to the router in the room. Therefore, by the network distribution method, the defects that the traditional internet of things equipment needs to be manually added one by one when being distributed are overcome, such as complex operation, time consumption, high possibility of error, low efficiency and the like.
It can be understood that the distribution network scene provided by the embodiment can be applied to various service scenes, including scenes of household appliances, hotel apartments, building properties, traffic control, campus endowment and the like.
In order to understand the process of network distribution of the internet of things provided by the embodiment of the present invention in detail, a process of a network distribution event stream among the network distribution device, the device of the internet of things, the router, and the network background is described in detail below with reference to fig. 3, where in fig. 3, the network distribution device operates in a hotspot mode (Access Point mode, AP mode). As shown in fig. 3:
s31, broadcasting hotspot access information by the distribution network equipment;
in S31, the hotspot access information includes a service set identifier and a password in a specific format, where the service set identifier is generated by the distribution network device using an SSID generation algorithm, and the password is generated by the distribution network device using a password generation algorithm.
S32, the Internet of things equipment is wirelessly connected with the distribution network equipment according to the hotspot access information;
in S32, when the internet of things device detects that the specified format of the service set identifier matches the preset standard format, the internet of things device uses the password to establish a wireless connection with the distribution network device.
S33, the distribution network equipment sends routing access information to the Internet of things equipment;
s34, the Internet of things equipment sends routing confirmation information to the distribution network equipment;
in S34, the route confirmation information is used to notify the distribution network device that the route access information has been successfully received by the internet of things device.
S35, the distribution network equipment starts to monitor whether the Internet of things equipment is accessed to the router or not;
s36, the connection between the Internet of things equipment and the distribution network equipment is disconnected;
s37, the Internet of things equipment sends an access request to the router;
in S37, the router is the router to which the route access information points.
S38, the router accesses the Internet of things equipment according to the access request;
s39, the router sends routing access success information to the Internet of things equipment;
s310, broadcasting route access success information by the Internet of things equipment;
s311, the distribution network equipment monitors network background authentication Internet of things equipment according to the route access success information;
s312, the Internet of things equipment sends an identity authentication request to a network background through a router;
s313, authenticating the identity authentication request by the network background to obtain identity authentication information;
s314, the network background sends identity authentication information to the distribution network equipment;
s315, the network background sends identity authentication information to the Internet of things equipment.
Therefore, by the method, the network distribution of the Internet of things equipment can be effectively and quickly carried out.
In order to understand the network distribution process of the internet of things provided by the embodiment of the present invention in detail, the following describes in detail a process of a network distribution event stream among a network distribution device, an internet of things device, a router, and a network background with reference to fig. 4, and the difference from the above embodiment is that in fig. 4, the internet of things device operates in a Station mode (STA mode). As shown in fig. 4:
s41, searching site access information broadcasted by the distribution network equipment by the Internet of things equipment;
in S41, the station access information includes a service set identification in a specified format.
S42, the Internet of things equipment and the distribution network equipment form wireless connection according to the site access information;
s43, the distribution network equipment sends routing access information to the Internet of things equipment;
s44, the Internet of things equipment sends routing confirmation information to the distribution network equipment;
in S44, the route confirmation information is used to notify the distribution network device that the route access information has been successfully received by the internet of things device.
S45, the connection between the Internet of things equipment and the distribution network equipment is disconnected;
s46, the Internet of things equipment starts to monitor whether the Internet of things equipment is accessed to the router;
s47, the Internet of things equipment sends an access request to the router;
in S47, the router is the router to which the route access information points.
S48, the router accesses the Internet of things equipment according to the access request;
s49, the router sends routing access success information to the Internet of things equipment;
s410, broadcasting route access success information by the Internet of things equipment;
s411, the Internet of things equipment sends an identity authentication request to a network background through a router;
s412, the Internet of things equipment monitors the network background authentication Internet of things equipment according to the access success information;
s413, authenticating an identity authentication request by a network background to obtain identity authentication information;
s414, the network background sends identity authentication information to the distribution network equipment;
and S415, the network background sends identity authentication information to the Internet of things equipment.
Therefore, by the method, the network distribution of the Internet of things equipment can be effectively and quickly carried out.
As another aspect of the embodiments of the present invention, an embodiment of the present invention provides an internet of things network distribution method, where the internet of things network distribution method is applied to a network distribution device in a network distribution system. Referring to fig. 5a, the internet of things network distribution method S500 includes:
s51, broadcasting the service set identification and the password in the specified format, so that when the Internet of things equipment detects that the specified format of the service set identification matches a preset standard format, the password is used for establishing wireless connection with the distribution network equipment;
in this embodiment, the distribution network device operates in a hotspot mode. The service set identification is generated by the distribution network equipment by using an SSID generation algorithm, the password is generated by the distribution network equipment by using a password generation algorithm, and the SSID generation algorithm comprises an SSID length strategy and an SSID character composition strategy. The password generation algorithm includes a password generation policy and the like. It can be understood that the password that this embodiment provided can dynamic generation, and through the mode of dynamic generation password, the thing networking device is all different with the password that distribution network device set up wireless connection at every turn, and this kind of way can obstruct illegal thing networking device to a certain extent and connect distribution network device.
It can be understood that the service set identifier or the password with the preset standard format is identified or calculated by the internet of things device according to an algorithm agreed with the distribution network device, when the internet of things device enters a distribution network mode, the service set identifier or the password with the specified format of the distribution network device is searched on one specified channel or more than two specified channels according to the preset algorithm, when the internet of things device detects whether the specified format of the service set identifier matches the preset standard format, if so, the internet of things device establishes wireless connection with the distribution network device by using the password corresponding to the service set identifier. If not, the Internet of things equipment discards the service set identification and the password, and continues to search the service set identification or the password transmitted by the specified channel.
In some embodiments, the distribution network device encapsulates the service set identifier and the password into hotspot access information, and broadcasts the hotspot access information through a specified channel. And the Internet of things equipment captures hotspot access information in the specified channel, and analyzes the service set identifier and the password of the distribution network equipment from the hotspot access information.
It can be understood that not only one internet of things device but also a plurality of internet of things devices can be connected with the distribution network device at the same time, and therefore the distribution network method can enable the plurality of internet of things devices to realize distribution network at the same time.
S52, based on the wireless connection, sending routing access information to the Internet of things equipment so that the Internet of things equipment is disconnected from the wireless connection with the distribution network equipment, and requesting to establish routing connection with a router pointed by the routing access information;
in this embodiment, the routing access information includes a service set identifier and a routing password of the corresponding router, and is used to instruct the internet of things device to establish a wireless connection with the corresponding router, for example, please refer to fig. 2 again, the routing access information includes a service set identifier and a routing password of the router disposed in the first room a1, each internet of things device in the first room a1 disconnects the wireless connection with the distribution network device, and requests a routing connection with the router component in the current room through the routing access information.
It is understood that the route access information may include not only the service set identification and the route password of one router, but also the service set identification and the route password of other routers in various numbers, and the location of other routers is not limited in any way herein.
It can be understood that before the distribution network and the authentication start, the distribution network device has completed the entry of the route access information of each router in the intelligent engineering or intelligent home environment, for example, a user enters the route access information of each router in the distribution network device through various modes, including a voice mode, a keyboard mode, a touch screen mode, and an RFID mode. Or, the user sends an information access request to the network background through the distribution network device, and the network background sends the route access information of each router to the distribution network device according to the information access request, so that the distribution network device records the route access information of each router.
In some embodiments, before the distribution network device sends the route access information to the internet of things device, the distribution network device may encrypt the route access information by using a preset encryption algorithm, and then send the encrypted route access information to the internet of things device through a designated channel.
After the Internet of things equipment receives the routing access information, the service set identification and the routing password of the router are analyzed from the routing access information, the Internet of things equipment is disconnected from the distribution network equipment, the service set identification and the routing password of the router are used for login operation, and then an access request is sent to the router pointed by the routing access information. The router responds to the access request, connects the Internet of things equipment, sends routing access success information to the Internet of things equipment, and the Internet of things equipment receives the access success information and broadcasts the routing access success information.
And S53, switching and monitoring an authentication process of the network background authentication Internet of things equipment when monitoring the route access success information broadcast by the Internet of things equipment.
In this embodiment, when the distribution network device captures the route access success information, it may be determined that the internet of things device successfully accesses the router. And then, the Internet of things equipment sends an identity authentication request to the network background through the router, and at the moment, the distribution network equipment is switched from the process of monitoring whether the Internet of things equipment is successfully connected with the router to the authentication process of monitoring the network background for authenticating the Internet of things equipment.
In this embodiment, the identity authentication request carries identity information of the corresponding internet of things device, the network background analyzes the identity information of the corresponding internet of things device from the identity authentication request, and then traverses the database to determine whether the identity information consistent with the identity information of the corresponding internet of things device is prestored, and sends the identity authentication information to the distribution network device according to the traversal result.
In some embodiments, in the process of generating the identity authentication information, the network backend may monitor a process of authenticating an identity authentication request by the network backend to obtain an authentication duration, determine whether the authentication duration is less than or equal to a preset authentication threshold, determine whether the identity information of the internet of things device is consistent with the preset identity information if the authentication duration is less than or equal to the preset authentication threshold, generate authentication success information if the authentication duration is consistent with the preset identity information, and generate authentication failure information if the authentication duration is not consistent with the preset identity information. And if the authentication failure information is larger than the preset authentication threshold value, generating authentication failure information.
It can be understood that before the distribution network and the authentication start, the administrator may pre-enter identity information of each internet of things device on the network background, where the identity information includes a device ID, a device category, a device encryption manner or a device description, and the like.
And S54, when the successful authentication information which is sent by the network background and used for indicating the successful authentication of the equipment in the Internet of things is monitored, the process of distributing the network to the equipment in the Internet of things is ended.
In this embodiment, the identity authentication information includes authentication success information and authentication failure information, and when the traversal result is that identity information consistent with the identity information of the corresponding internet of things device is not prestored, the network background generates the authentication failure information, and sends the authentication failure information to the distribution network device and the internet of things device through the router, so that the internet of things device cannot establish wireless connection with the network background. And when the traversal result is that the identity information consistent with the identity information of the corresponding Internet of things equipment is prestored, the network background generates authentication success information, and sends the authentication success information to the distribution network equipment and the Internet of things equipment through the router, so that the distribution network process of the Internet of things equipment is finished.
In this embodiment, please refer to fig. 5b, after the distribution network and the authentication, the network background returns an authentication result list to the distribution network device as follows: the authentication of the television, the refrigerator and the temperature sensor is successful, the authentication of the water dispenser is failed, and the reason for the authentication failure of the water dispenser can be that the identity information of the water dispenser is not recorded into a network background because the water dispenser is newly purchased under a possible condition.
In conclusion, the network distribution equipment participates in the internet of things, so that the internet of things equipment can be accessed into the internet of things, and on one hand, the network distribution equipment and the internet of things equipment support the same physical layer communication protocol, so that the network distribution equipment and the internet of things equipment are good in compatibility, can be used in a matched mode, and improves the network distribution efficiency. On the other hand, the mobility of the distribution network equipment is strong, so that the Internet of things in one or more different areas can be efficiently accessed into the Internet of things, and the distribution network efficiency is greatly improved. On the other hand, identity authentication can be performed on the Internet of things equipment during distribution, so that illegal Internet of things equipment is prevented from accessing the Internet of things, and the safety of the Internet of things is improved.
Generally, when an internet of things device requests to establish a route connection with a router, even if the internet of things device receives route access information, the internet of things device occasionally may not be able to connect to the router due to a failure of the internet of things device itself or an abnormality of the router itself. Therefore, in some embodiments, before switching to the authentication process of monitoring the network background to authenticate the internet of things device, referring to fig. 5c, the internet of things network distribution method S500 further includes:
and S55, judging whether the route access success information broadcasted by the Internet of things equipment is acquired within a first preset time length threshold, if so, jumping to S53, and if not, executing S56.
And S56, judging whether the first total times is greater than or equal to a first preset time threshold, if so, executing S57, and if not, jumping to S55.
And S57, generating distribution network end information, and sending an indication message for indicating the distribution network abnormality of the Internet of things equipment to a network background.
In some embodiments, first, after the distribution network device detects that the internet of things device has successfully received the route access information, a process of monitoring that the internet of things device connects to the router is started to obtain a first monitoring duration, for example, the distribution network device starts a timer to start timing that the internet of things device connects to the router, so as to obtain the first monitoring duration.
Secondly, when the first monitoring duration is smaller than or equal to a first preset duration threshold, the distribution network equipment judges whether route access success information broadcasted by the Internet of things equipment is acquired, if the route access success information is acquired, the Internet of things equipment is already accessed to the router, and the distribution network equipment monitors the process of authenticating the Internet of things equipment by the network background. If not, the internet of things device does not access the router, and then the distribution network device executes step S56, that is, it is determined whether the first total number of times is greater than or equal to a first preset number of times threshold, where the first total number of times is the number of times that the route access success information broadcast by the internet of things device is not acquired within the first preset duration threshold, for example, at time t1, the distribution network device detects that the internet of things device does not access the router, and records that the 1 st time of access to the router of the internet of things device fails. At the time t2, the distribution network equipment detects that the internet of things equipment does not access the router, records that the internet of things equipment fails to access the router for the 2 nd time, detects that the internet of things equipment does not access the router at the time t3, records that the internet of things equipment fails to access the router for the 3 rd time, and detects that the internet of things equipment successfully accesses the router at the time t 4. In summary, when the distribution network device is at the t2, the total failure times of the distribution network device accumulating the internet of things devices that do not access the router continuously is 2 times, that is, the first total times is 2. When the distribution network equipment is at the t3, the total failure times of the distribution network equipment accumulating the internet of things equipment which is not continuously accessed to the router is 3 times, namely, the first total times is 3.
It is understood that the first total number is not fixed, and is obtained by adding 1 current failure on the basis of the historical total failure number continuously.
And if the first total times is greater than or equal to a first preset time threshold, generating distribution network end information, and sending an indication message for indicating that the distribution network of the Internet of things equipment is abnormal to a network background. If the first total number is smaller than the first preset number threshold, jumping to S55, that is, continuously determining whether the route access success information broadcasted by the internet of things device is obtained within the first preset time threshold, for example, when the distribution network device returns to execute step S55, performing zero clearing processing on the previous first monitoring time, restarting the timer, and continuously timing the process of the internet of things device connecting to the router, thereby obtaining a new first monitoring time.
In this embodiment, the first preset time threshold is customized by the user, for example, 3 times or 5 times, and so on.
In some embodiments, although the internet of things device is connected to the router, the internet of things device further needs to perform an authentication operation with the network backend, and in order to ensure that the internet of things device reliably performs authentication with the network backend, in some embodiments, please refer to fig. 5d, the internet of things network distribution method S500 further includes:
s58, accumulating the first authentication failure times that the Internet of things equipment fails to pass the authentication of the network background continuously when the authentication failure information which is sent by the network background and used for indicating the authentication failure of the Internet of things equipment is monitored;
s59, judging whether the first authentication failure times are larger than or equal to a first preset monitoring threshold value; if yes, go to step S510, otherwise, go to step S53.
And S510, generating distribution network end information, and sending an indication message for indicating that the distribution network of the Internet of things equipment is abnormal to a network background.
In this embodiment, the first authentication failure times are failure times when the internet of things device does not pass through the network background authentication continuously, for example, at time t1, the distribution network device detects that the internet of things device does not pass through the network background authentication, and records the 1 st failure of the internet of things device. At the time t2, the distribution network equipment detects that the internet of things equipment fails to pass the network background authentication, records the authentication failure of the internet of things equipment for the 2 nd time, detects that the internet of things equipment fails to pass the network background authentication at the time t3, records the authentication failure of the internet of things equipment for the 3 rd time, and detects that the authentication of the internet of things equipment succeeds at the time t 4. In summary, when the distribution network device is at the time t2, the total failure times of the distribution network device accumulating the internet of things device failing to pass the network background authentication is 2 times, that is, the first authentication failure times is 2. When the distribution network equipment is at the t3, the total failure times of the distribution network equipment accumulating the internet of things equipment which fails to pass the network background authentication are 3 times, that is, the first authentication failure times are 3.
It will be appreciated that the first preset listening threshold is user-defined.
In some embodiments, when the internet of things device has access to the router, the internet of things device automatically broadcasts an authentication start message, where the authentication start message is used to trigger the distribution network device to monitor the network background to authenticate the internet of things device. Firstly, when the distribution network equipment acquires an authentication start message broadcasted by the Internet of things equipment, the distribution network equipment monitors the process of authenticating the Internet of things equipment by a network background according to the authentication start message to obtain second monitoring time, judges whether the second monitoring time is less than or equal to a second preset time threshold, if so, records that the Internet of things equipment passes the authentication of the network background when the identity authentication information is authentication success information, and records that the Internet of things equipment does not pass the authentication of the network background when the identity authentication information is authentication failure information. If not, carrying out zero clearing processing on the second monitoring time length, recording that the Internet of things equipment does not pass the authentication of the network background, and continuing monitoring the process of authenticating the Internet of things equipment by the network background. In some embodiments, the distribution network device starts a timer to start timing a process of authenticating the internet of things device by the network background, so as to obtain the second monitoring duration. The second preset duration threshold is user-defined.
In the embodiment, by such an authentication manner, the probability of authentication failure caused by some other factors can be reduced.
In general, when an access router of the internet of things equipment is overtime or authentication is overtime, the distribution network equipment performs overtime exception ending processing on the internet of things equipment, and feeds back a result to a network background so as to be convenient for subsequent operation and maintenance.
As another aspect of the embodiments of the present invention, another method for distributing a network of the internet of things is provided in the embodiments of the present invention, where the method for distributing a network of the internet of things is applied to an apparatus of the internet of things, and the difference from the above embodiments is that the apparatus of the internet of things operates in a site mode. Referring to fig. 6a, the internet of things network distribution method S600 includes:
s61, searching a service set identifier in a specified format;
s62, traversing out a password corresponding to the service set identifier if the specified format of the service set identifier is matched with a preset standard format, and establishing wireless connection with the distribution network equipment by using a password request;
in this embodiment, after the internet of things device is successfully powered on, a physical manner or a software manner may be provided to trigger the distribution network mode, for example, the internet of things device automatically enters the distribution network mode by default, and if the network is not distributed within a preset time, the internet of things device enters a sleep state. After the Internet of things equipment enters a distribution network mode, the distribution network equipment searches for the service set identification in the specified format broadcasted by the distribution network equipment according to a preset algorithm.
And when the service set identification in the specified format is searched, the Internet of things equipment stores the service set identification in the specified format, traverses the password corresponding to the service set identification, and uses the password request to establish wireless connection with the distribution network equipment.
When the service set identifier with the specified format is not searched or the format of the searched service set identifier does not match the preset standard format, the internet of things equipment discards the current service set identifier and continues to search for another service set identifier. For example, referring to fig. 2, each internet of things device in the room a1 searches for the service set identifier of each wireless device in the room, and performs matching processing on the service set identifier of each wireless device, for example, the internet of things device determines whether the data format of the service set identifier of each wireless device matches a preset data format, that is, determines whether the service set identifier of the wireless device is a character string with a preset fixed format, if so, stores the service set identifier, and if not, discards the service set identifier. And then, the Internet of things equipment processes the recorded service set identification according to a preset algorithm to obtain a password corresponding to the service set identification, and the service set identification and the password at the moment are used as the service set identification and the password of the distribution network equipment. Therefore, the internet of things equipment is connected with the distribution network equipment by using the service set identification and the password of the distribution network equipment, so that the internet of things equipment can be wirelessly connected with the distribution network equipment.
It can be understood that not only one internet of things device but also a plurality of internet of things devices can be connected with the distribution network device at the same time, and therefore the distribution network method can enable the plurality of internet of things devices to realize distribution network at the same time.
In some embodiments, the service set identifier is obtained by the distribution network device by using a preset SSID generation algorithm, where the SSID generation algorithm includes an SSID length policy and an SSID character composition policy. The service set identification may be encapsulated into the station access information.
S63, receiving route access information returned by the distribution network equipment based on wireless connection;
s64, after the wireless connection is disconnected, the router directed by the route access information is requested to establish route connection, and in the process of establishing the route connection, the route access information used for indicating the success or failure of route connection establishment is broadcasted;
and S65, after the router is successfully accessed, sending an identity authentication request to a network background through the router, so that the network background sends identity authentication information to the distribution network equipment according to the identity authentication request, wherein the identity authentication information is used for indicating whether the Internet of things equipment is successfully distributed with the network.
In this embodiment, the description of the related technical features may refer to the description of the above embodiments, and will not be repeated herein.
In conclusion, the network distribution equipment participates in the internet of things, so that the internet of things equipment can be accessed into the internet of things, and on one hand, the network distribution equipment and the internet of things equipment support the same physical layer communication protocol, so that the network distribution equipment and the internet of things equipment are good in compatibility, can be used in a matched mode, and improves the network distribution efficiency. On the other hand, the mobility of the distribution network equipment is strong, so that the Internet of things in one or more different areas can be efficiently accessed into the Internet of things, and the distribution network efficiency is greatly improved. On the other hand, identity authentication can be performed on the Internet of things equipment during distribution, so that illegal Internet of things equipment is prevented from accessing the Internet of things, and the safety of the Internet of things is improved.
After the internet of things equipment sends the access request to the router pointed by the routing access information, even if the internet of things equipment receives the routing access information, the internet of things equipment occasionally cannot be connected with the router due to the fact that the internet of things equipment breaks down or the router is abnormal. Therefore, in some embodiments, referring to fig. 6b, the internet of things network distribution method S600 further includes:
s66, when the router is not successfully accessed, accumulating the second total times that the equipment of the Internet of things is not accessed to the router;
and S67, judging whether the second total times is greater than or equal to a second preset time threshold, if so, executing S68, and if not, jumping to S64.
S68, generating distribution network end information;
in some embodiments, after receiving the route access information, the internet of things device starts monitoring a process of connecting the internet of things device to the router to obtain a third monitoring duration, for example, the internet of things device starts a timer to start timing the process of connecting the internet of things device to the router, so as to obtain the third monitoring duration.
Secondly, when the third monitoring duration is smaller than or equal to a third preset duration threshold, whether the route access success information broadcasted by the internet of things equipment is acquired is judged, if the route access success information is acquired, the internet of things equipment has access to the router, and the internet of things equipment monitors the network background authentication internet of things equipment in the next step. If not, the internet of things device does not access the router, and then the internet of things device returns to execute step S66, that is, the second total number of times that the internet of things device does not access the router is accumulated, and if the second total number of times is greater than or equal to the second preset number threshold, distribution network end information is generated. If the second total number of times is smaller than the second preset number threshold, the process jumps to S64, in some embodiments, when the internet of things device returns to execute step S64, the previous third monitoring duration is cleared, and the timer is restarted to continue timing the process of the internet of things device connecting to the router, so as to obtain a new third monitoring duration.
As described above, when the internet of things device has access to the router, the internet of things device automatically monitors the process of the network background authenticating the internet of things device. Referring to fig. 6c, the internet of things network distribution method S600 further includes:
s69, when the identity authentication information is authentication failure information, accumulating the second authentication failure times that the Internet of things equipment fails to pass the network background authentication;
s610, judging whether the second authentication failure times is larger than or equal to a second preset monitoring threshold, if so, executing S611, and if not, jumping to S65.
And S611, generating distribution network end information.
In the embodiment, by such an authentication manner, the probability of authentication failure caused by some other factors can be reduced.
It should be noted that, in the foregoing embodiments, a certain order does not necessarily exist between the foregoing steps, and it can be understood by those skilled in the art from the description of the embodiments of the present invention that, in different embodiments, the foregoing steps may have different execution orders, that is, may be executed in parallel, may also be executed in an exchange manner, and the like.
Fig. 7 is a schematic circuit block diagram of an electronic device according to an embodiment of the present invention, where the electronic device may be a distribution network device or an internet of things device. As shown in fig. 7, the electronic device 700 includes one or more processors 71 and a memory 72. Fig. 7 illustrates an example of one processor 71.
The processor 71 and the memory 72 may be connected by a bus or other means, such as the bus connection in fig. 7.
The memory 72 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the internet-of-things network distribution method in the embodiment of the present invention. The processor 71 executes various functional applications and data processing of the internet of things network distribution method by executing nonvolatile software programs, instructions, and modules stored in the memory 72.
The memory 72 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 72 may optionally include memory located remotely from the processor 71, and such remote memory may be connected to the processor 71 via 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 program instructions/modules are stored in the memory 72 and, when executed by the one or more processors 71, perform the internet of things network distribution method in any of the above method embodiments.
The electronic device 700 of embodiments of the present invention may exist in a variety of forms and perform the various steps described above.
Embodiments of the present invention also provide a non-transitory computer storage medium storing computer-executable instructions, which are executed by one or more processors, for example, one of the processors 71 in fig. 7, so that the one or more processors may execute the internet of things network distribution method in any of the method embodiments.
Embodiments of the present invention also provide a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by an electronic device, the electronic device is caused to execute any one of the internet-of-things network distribution methods.
In conclusion, the network distribution equipment participates in the internet of things, so that the internet of things equipment can be accessed into the internet of things, and on one hand, the network distribution equipment and the internet of things equipment support the same physical layer communication protocol, so that the network distribution equipment and the internet of things equipment are good in compatibility, can be used in a matched mode, and improves the network distribution efficiency. On the other hand, the mobility of the distribution network equipment is strong, so that the Internet of things in one or more different areas can be efficiently accessed into the Internet of things, and the distribution network efficiency is greatly improved. On the other hand, identity authentication can be performed on the Internet of things equipment during distribution, so that illegal Internet of things equipment is prevented from accessing the Internet of things, and the safety of the Internet of things is improved.
The above-described embodiments of the apparatus or device are merely illustrative, wherein the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
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 general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may 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 method according to 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; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.