Summary of the invention
It is an object of the invention to provide the methods, devices and systems of a kind of IoT equipment access network, it is usedIn solving the problems referred to above, solve the problems referred to above at least in part.
To achieve these goals, the present invention provides a kind of method of Internet of Things IoT equipment access network,For non-IoT equipment, the method includes: add neighbours sensing network NAN;Obtain network to be accessedRelevant information, the relevant information of network to be accessed is added to the IoT configuration letter that preset service providedIn breath;Issue, in the NAN added, the IoT configuration information that described preset service is provided, so thatIoT equipment in described NAN obtains the relevant information of described network to be accessed and accesses described to be accessedNetwork.
Preferably, described in the NAN added, the IoT configuration letter that described preset service provided is issuedBreath includes receiving the subscription message that in described NAN, IoT equipment sends;When described subscription message indicates instituteWhen stating preset service described in IoT device request, generate and include the IoT configuration information that preset service is providedAnnouncement message, send, to described IoT equipment, the announcement message that generated.
Preferably, described in the NAN added, the IoT configuration letter that described preset service provided is issuedBreath includes generating the announcement message of the IoT configuration information including that preset service provided, addedThe announcement message that in NAN, multicast is generated.
Preferably, the relevant information of described network to be accessed connects in including following at least one network to be accessedService set SSID of ingress AP and password.
According to a further aspect in the invention, it is provided that a kind of method of Internet of Things IoT equipment access network, useIn IoT equipment, the method includes: add neighbours sensing network NAN;Receive in described NAN is non-The IoT configuration information that the preset service that IoT equipment is issued is provided;The IoT provided from preset serviceConfiguration information obtains the relevant information of network to be accessed;Utilize the relevant information of the network to be accessed obtainedAccess described network to be accessed.
Preferably, the preset service that the non-IoT equipment in the described NAN of described reception is issued is providedIoT configuration information includes: sends and indicates the subscription message of preset service described in described IoT device request;The non-IoT equipment in described NAN that receives is included preset service in response to what described subscription message repliedThe announcement message of the IoT configuration information provided.
Preferably, the preset service that the non-IoT equipment in the described NAN of described reception is issued is providedIoT configuration information includes: receive the non-IoT device multicast in described NAN includes preset service instituteThe announcement message of the IoT configuration information provided.
Preferably, the relevant information of described network to be accessed includes following at least one: in network to be accessedService set SSID of access node AP and password.
According to an aspect of the present invention, it is provided that the device of a kind of Internet of Things IoT equipment access network, it is used forNon-IoT equipment, this device includes: network connecting module, is used for adding neighbours sensing network NAN;Message processing module, for obtaining the relevant information of network to be accessed, by the relevant information of network to be accessedAdd in the IoT configuration information that preset service is provided;Information transmission modular, in additionNAN issues the IoT configuration information that described preset service is provided, so that the IoT in described NANEquipment obtains the relevant information of described network to be accessed and accesses described network to be accessed.
Preferably, described information transmission modular is for receiving the subscription that in described NAN, IoT equipment sendsMessage;When preset service described in described subscription message indicates described IoT device request, generation includes pre-If the announcement message of the IoT configuration information that service is provided, send the public affairs generated to described IoT equipmentCloth message.
Preferably, described information transmission modular is for generating the IoT configuration letter including that preset service is providedThe announcement message of breath, the announcement message that multicast is generated in the NAN added.
Preferably, the relevant information of described network to be accessed includes following at least one: in network to be accessedService set SSID of access node AP and password.
According to a further aspect in the invention, it is provided that the device of a kind of Internet of Things IoT equipment access network,For IoT equipment, this device includes: the first link block, is used for adding neighbours sensing network NAN;Communication module, the IoT that the preset service issued for receiving the non-IoT equipment in described NAN is providedConfiguration information;Processing module, to be accessed for obtaining from the IoT configuration information that preset service is providedThe relevant information of network;Second link block, for utilizing the relevant information of the network to be accessed of acquisition to connectEnter described network to be accessed.
Preferably, described communication module indicates preset service described in described IoT device request for sendingSubscribe to message;Receive the bag that the non-IoT equipment in described NAN is replied in response to described subscription messageInclude the announcement message of the IoT configuration information that preset service is provided.
Preferably, described communication module is for receiving including of non-IoT device multicast in described NANThe announcement message of the IoT configuration information that preset service is provided.
Preferably, the relevant information of described network to be accessed includes following at least one: in network to be accessedService set SSID of access node AP and password.
Provide the system of a kind of Internet of Things IoT equipment access network according to another aspect of the invention, bagInclude as previously mentioned for any device of non-IoT equipment, and any device for IoT equipment.
By technique scheme, non-IoT equipment can perform following method, add neighbours' perception netNetwork (NAN);Obtain the relevant information of network to be accessed, the relevant information of network to be accessed is added toIn the IoT configuration information that preset service is provided;Described preset service institute is issued in the NAN addedThe IoT configuration information provided, so that the IoT equipment in described NAN obtains described network to be accessedRelevant information access described network to be accessed.So so that IoT equipment is without at SoftAP mouldRelevant information the access network that just can obtain network to be accessed is switched between formula and STA mode,The network insertion process making IoT equipment is easier, decreases the time used by network insertion;Further,It is operated manually without user, alleviates the operation burden of user, improve Consumer's Experience.
Other features and advantages of the present invention will be described in detail in detailed description of the invention part subsequently.
Detailed description of the invention
Below in conjunction with accompanying drawing, the detailed description of the invention of the present invention is described in detail.It should be appreciated thatDetailed description of the invention described herein is merely to illustrate and explains the present invention, is not limited to thisBright.
Fig. 1 is the flow chart of the method for IoT equipment access network according to an embodiment of the present invention.ShouldMethod can be used for non-IoT equipment, the such as terminal unit such as mobile phone, panel computer.As it is shown in figure 1, shouldMethod can comprise the steps.
In step s 110, neighbours' sensing network (NAN) is added.
WLAN perception (Wi-Fi Aware) technology, for a set of NAN of Wi-Fi Alliance definitionSpecification, has the feature of real-time and low-power consumption, it is possible to send low volume data information, is used for realizing serviceFind, as compared to conventional WLAN (such as, Wi-Fi), there is lower energy expenditure, it is possible toRun continuously on the backstage of equipment.Wi-Fi Aware technology provides NAN, it may for example comprise oneOr the NAN of multiple NAN cluster, as in figure 2 it is shown, NAN cluster can include multiple NAN equipment,These NAN equipment uses identical NAN configuration parameter to carry out the synchronizing information of equipment room.At NANIn, NAN equipment can send the multicast message NAN equipment to other, it is also possible to send unicast message toOther NAN equipment.When NAN equipment supports Wi-Fi function and Wi-Fi Aware function simultaneously,As it is shown on figure 3, this NAN equipment can be simultaneously introduced two networks, and for two nets addedNetwork can use multiple medium access to control (MAC) address.
For example, non-IoT equipment supports NAN function, and it is by the friendship of NAN agreement definedFlow process joins in the NAN cluster being presently in environment mutually.Meanwhile, one or more supportsThe IoT equipment of NAN function also can join in this NAN cluster according to NAN agreement.So, shapeBecome to include non-IoT equipment and the NAN of IoT equipment.
In the step s 120, obtain the relevant information of network to be accessed, by the relevant letter of network to be accessedBreath adds in the IoT configuration information that preset service is provided.
Wherein, the relevant information of network to be accessed includes following at least one: AP in network to be accessedSSID and password.
Such as, the SSID of AP during non-IoT equipment can obtain the WLAN that the expectation of IoT equipment accessesAnd password.Non-IoT equipment can obtain SSID and the password of AP from manual configuration information, it is also possible toAfter by certification, from AP or server, obtain SSID and password that encryption sends.The present invention coupleMode in the relevant information of non-IoT equipment acquisition network to be accessed does not limit.Non-IoT equipment is by instituteThe relevant information of the network to be accessed obtained adds the IoT configuration information that preset service is provided to.
In step s 130, the NAN added issues the IoT configuration information that preset service is provided,So that the relevant information that the IoT equipment in NAN obtains network to be accessed accesses network to be accessed.
For example, NAN service discovery frame (SDF) can be used to exchange information at NAN equipment room.SDF includes announcing message (Publish message) and subscribing to message (Subscribe message).SDF includes service describing attribute (SDA), SDA can include information as shown in table 1 below.
Table 1
The service name (Service name) of preset service can be defined as IotConfigure (Internet of ThingsNet configuration), according to regulation in Wi-Fi Aware, service name IotConfigure is carried out Hash operation and obtainObtain Service ID.Further, the field Service Info in above-mentioned table 1 is utilized to carry preset serviceThe IoT configuration information that IotConfigure is provided, including the relevant information of network to be accessed, exampleSuch as the SSID of AP and password in network to be accessed.Wherein, data acquisition TLV (Type in Service Info(type), Length (length), Value (value)) organizational form.Type takes a byte, usesType in definition Value.Such as, Type is to represent when 0 that in Value, content is the SSID of AP,Type is to represent when 1 that in Value, content is the access pin of AP.Length represents the length of Value,It it is 1 byte.Value represents SSID or the password of concrete data content, such as AP.So,Preset service is defined as IotConfigure, according to IotConfigure generate Service ID, with in advanceIf what service was associated announces the Service ID using generation in message, at the Service announcing messageInfo is carried the relevant information of network to be accessed by TLV form.
In one embodiment, the described IoT that issue preset service is provided in the NAN added joinsConfidence breath comprises the steps that and receives the subscription message that in NAN, IoT equipment sends;When subscribing to message instruction IoTDuring device request preset service, generate the announcement message of the IoT configuration information including that preset service provided,The announcement message generated is sent to IoT equipment.
For example, IoT equipment can send multi-cast subscriptions message in NAN network periodically, ordersRead newspapers and literary composition carries Service ID corresponding for preset service IotConfigure, indicate this IoT device requestPreset service IotConfigure.After non-IoT equipment receives subscription message, find that self can provideThis preset service IotConfigure, announces message in being in response to this subscription message to IoT device replied,Service corresponding to preset service IotConfigure is inserted in the Service id field announcing messageID, carries, in the Service Info field announcing message, the IoT that preset service IotConfigure is providedConfiguration information, including the relevant information (such as, the SSID of AP and password) of network to be accessed.After IoT equipment receives announcement message, therefrom parse the relevant information of network to be accessed, utilize this phaseClose information access network to be accessed.
In one embodiment, the described IoT that issue preset service is provided in the NAN added joinsConfidence breath includes generating the announcement message of the IoT configuration information including that preset service provided, and is being addedNAN in the announcement message that generated of multicast.
For example, non-IoT equipment in NAN periodically multicast announce message, announcing messageService id field is inserted Service ID corresponding for preset service IotConfigure, is announcing messageService Info field in carry the IoT configuration information that preset service IotConfigure is provided, itsInclude the relevant information (such as, the SSID of AP and password) of network to be accessed.IoT equipment receivesAfter announcing message, the Service id field according to announcing message identifies preset serviceIotConfigure, finds that self is interested in this service, the most therefrom parses the relevant of network to be accessedInformation, utilizes this relevant information to access network to be accessed.
Technique scheme is implemented in non-IoT equipment so that IoT equipment is without in SoftAP patternAnd between STA mode, switch over relevant information the access network that just can obtain network to be accessed, makeThe network insertion process obtaining IoT equipment is easier, decreases the time used by network insertion;Further, nothingNeed user to be operated manually, alleviate the operation burden of user, improve Consumer's Experience.
Fig. 4 is the flow chart of the method for IoT equipment access network according to an embodiment of the present invention.ShouldMethod can be used for IoT equipment, such as intelligentized Furniture etc..As shown in Figure 4, the method can include walking as followsSuddenly.
In step S410, add neighbours' sensing network (NAN).
For example, IoT equipment can support NAN function and the STA of Wi-Fi of Wi-Fi Aware simultaneouslyFunction.IoT equipment can pass through NAN function, utilizes the interaction flow of NAN agreement defined to joinIn the NAN cluster being presently in environment.This NAN cluster may also include non-IoT equipment.
In the step s 420, the IoT that the preset service that the non-IoT equipment in NAN that receives is issued is providedConfiguration information.
In one embodiment, the preset service that the non-IoT equipment in described reception NAN is issued is carriedThe IoT configuration information of confession comprises the steps that and sends the subscription message of preset service described in instruction IoT device request;The non-IoT equipment in NAN that receives is included what preset service was provided in response to what subscription message repliedThe announcement message of IoT configuration information.
For example, IoT equipment can send multi-cast subscriptions message in NAN network periodically, ordersRead newspapers and literary composition carries Service ID corresponding for preset service IotConfigure, indicate this IoT device requestPreset service IotConfigure.After non-IoT equipment receives subscription message, find that self can provideThis preset service IotConfigure, announces message in being in response to this subscription message to IoT device replied,Service corresponding to preset service IotConfigure is inserted in the Service id field announcing messageID, carries, in the Service Info field announcing message, the IoT that preset service IotConfigure is providedConfiguration information, including the relevant information (such as, the SSID of AP and password) of network to be accessed.IoT equipment receives the announcement message of non-IoT device replied.
In another embodiment, the preset service institute that the non-IoT equipment in described reception NAN is issuedThe IoT configuration information provided comprise the steps that the non-IoT device multicast received in described NAN include pre-If the announcement message of the IoT configuration information that service is provided.
For example, non-IoT equipment in NAN periodically multicast announce message, announcing messageService id field is inserted Service ID corresponding for preset service IotConfigure, is announcing messageService Info field in carry the IoT configuration information that preset service IotConfigure is provided, itsInclude the relevant information (such as, the SSID of AP and password) of network to be accessed.IoT equipment is at NANIn can receive this announcement message of non-IoT device multicast.
In step S430, from the IoT configuration information that preset service is provided, obtain network to be accessedRelevant information.
Wherein, the relevant information of network to be accessed includes following at least one: AP in network to be accessedSSID and password.
For example, after IoT equipment receives announcement message, according to the Service ID word announcing messageSection identifies preset service IotConfigure, determines that this announcement message is associated with preset service, and fromThe IoT that parsing preset service IotConfigure in the Service Info field of announcement message is provided joinsConfidence ceases, including the relevant information (such as, the SSID of AP and password) of network to be accessed.
In step S440, the relevant information of the network to be accessed obtained is utilized to access network to be accessed.
For example, IoT equipment can pass through STA mode, and utilization parses from announcement messageThe SSID of AP and password access network to be accessed, such as, access Internet of Things.
Technique scheme is implemented in IoT equipment, and IoT equipment is without at SoftAP pattern and STASwitch between pattern, the relevant information of network to be accessed can be obtained from the NAN added and utilizeThis relevant information access network such that it is able to simplify network insertion process, reduces the time used by network insertion;And, it is not necessary to user is operated manually, and alleviates the operation burden of user, improves Consumer's Experience.
Fig. 5 is the flow chart of the method for IoT equipment access network according to an embodiment of the present invention, itsIn, shown equipment includes AP, non-IoT equipment and IoT equipment.For making in the present invention technical scheme moreIt is described it can be readily appreciated that following from the angle of the overall operation of above three equipment, but skill in the present inventionArt scheme is not limited to this.
In step S502, non-IOT equipment and IOT equipment are automatic according to NAN protocol interaction flow processJoin in same NAN cluster.In step S504, non-IOT equipment gets network to be accessedRelevant information, the SSID of such as AP and password;Non-IOT equipment for service name isThe preset service of IotConfigure, uses service name IotConfigure to be carried out in accordance with regulations Hash operation rawBecome Service ID, add to be accessed in the IoT configuration information that preset service IotConfigure is providedThe relevant information of network.In step S506, IoT equipment, in NAN, periodically sends multicastSubscribing to message, (IoT equipment passes through wherein to carry Service ID corresponding for preset service IotConfigureService Name carries out Hash operation and obtains this Service ID), represent IoT device request preset serviceIotConfigure.For example, MAC Address used by message multicast can be 51-6F-9A-01-00-00.In step S508, non-IOT equipment receives subscription message from NAN, according to subscribing in messageService id field identifies preset service IotConfigure, finds that oneself can provide preset serviceIotConfigure, generates NAN SDF clean culture and announces message, uses Service ID in announcing message,And carry the IoT configuration information that preset service IotConfigure is provided, such as, at Service infoField includes two TLV information, carries SSID and the password of AP respectively.In step S510,IOT equipment receives NAN SDF clean culture and announces message, identifies according to Service id field and presets clothesBusiness IotConfigure, and inside Service info field, parse SSID and the password of AP.In stepIn rapid S512, IOT equipment uses the SSID of AP and password to connect AP, accesses Internet of Things.
Fig. 6 is the flow chart of the method for IoT equipment access network according to an embodiment of the present invention, itsIn, shown equipment includes AP, non-IoT equipment and IoT equipment.For making in the present invention technical scheme moreIt is described it can be readily appreciated that following from the angle of the overall operation of above three equipment, but skill in the present inventionArt scheme is not limited to this.
In step S602, non-IOT equipment and IOT equipment are automatic according to NAN protocol interaction flow processJoin in same NAN cluster.In step 604, non-IOT equipment gets network to be accessedThe SSID of relevant information, such as AP and password, for the default clothes that service name is IotConfigureBusiness, uses service name IotConfigure to be carried out in accordance with regulations Hash operation and generates Service ID, presettingThe IoT configuration information that service IotConfigure is provided adds the relevant information of network to be accessed.?In step S606, non-IOT equipment periodically sends multicast in NAN and announces message, is announcingMessage uses Service ID, and carries the IoT configuration information that preset service IotConfigure is provided,Such as, include two TLV information in Service info field, carry the SSID of AP and close respectivelyCode.The multicast mac address announcing message can be 51-6F-9A-01-00-00.In step S608,IOT equipment receives NAN SDF multicast and announces message, identifies according to Service id field and presets clothesBusiness IotConfigure, finds that self is interested in this preset service, and inside Service info fieldParse SSID and the password of AP.In step S610, IOT equipment use AP SSID andPassword connects AP, accesses Internet of Things.
In technique scheme, the IoT configuration information that preset service is provided can also include otherIoT configuration information, is not limited to only include the relevant information of network to be accessed.Additionally, except can be in public affairsThe field Service Info of cloth message carries outside the IoT configuration information that preset service is provided, also may be usedTo use other fields in message to carry the IoT configuration information that preset service is provided, such as, use newIn the SDA of definition, attribute carries the IoT configuration information that this preset service is provided.
Fig. 7 the is shown device of a kind of Internet of Things IoT equipment access network, for non-IoT equipment,As it is shown in fig. 7, this device can include such as lower module.
Network connecting module 710, is used for adding neighbours sensing network NAN;
Message processing module 720, for obtaining the relevant information of network to be accessed, by network to be accessedRelevant information is added in the IoT configuration information that preset service is provided;
Information transmission modular 730, for issuing what described preset service was provided in the NAN addedIoT configuration information, so that the IoT equipment in described NAN obtains the relevant of described network to be accessedInformation accesses described network to be accessed.
In one embodiment, information transmission modular 720 can be used for receiving IoT equipment in described NAN and sends outThe subscription message sent;When preset service described in described subscription message indicates described IoT device request, rawBecome the announcement message of the IoT configuration information including that preset service provided, send institute to described IoT equipmentThe announcement message generated.
In one embodiment, information transmission modular 720 can be used for generating and includes what preset service was providedThe announcement message of IoT configuration information, the announcement message that multicast is generated in the NAN added.
In one embodiment, the relevant information of network to be accessed can include following at least one: networking waitingService set SSID of access node AP and password in network.
Said apparatus is corresponding with the method being previously used for non-IoT equipment, illustrates in the method for can be found inDescribe in detail, do not repeat them here.
Fig. 8 the is shown device of a kind of Internet of Things IoT equipment access network, for IoT equipment, asShown in Fig. 8, this device can include such as lower module.
First link block 810, is used for adding neighbours sensing network NAN;
Communication module 820, for receiving the preset service institute that the non-IoT equipment in described NAN is issuedThe IoT configuration information provided;
Processing module 830, for obtaining networking waiting from the IoT configuration information that preset service is providedThe relevant information of network;
Second link block 840, for utilize acquisition network to be accessed relevant information access described in treatAccess network.
In one embodiment, communication module 820 is used for sending described in the described IoT device request of instruction and presettingThe subscription message of service;The non-IoT equipment received in described NAN is returned in response to described subscription messageThe multiple announcement message including IoT configuration information that preset service provided.
In one embodiment, communication module 820 is for receiving the non-IoT device multicast in described NANThe announcement message including IoT configuration information that preset service provided.
In one embodiment, the relevant information of network to be accessed includes following at least one: network to be accessedService set SSID of middle access node AP and password.
Said apparatus is corresponding with the method being previously used for non-IoT equipment, illustrates in the method for can be found inDescribe in detail, do not repeat them here.
The invention also discloses the system of a kind of Internet of Things IoT equipment access network, including using as previously mentionedIn any device of non-IoT equipment, and as previously mentioned for any device of IoT equipment.Such as Fig. 9Shown in, can be carried out by NAN between the device for non-IoT equipment and the device for IoT equipmentInformation communicates.
In said apparatus or system, IoT equipment is without entering between SoftAP pattern and STA modeRow switching, can obtain the relevant information of network to be accessed and utilize this relevant information from the NAN addedAccess network such that it is able to simplify network insertion process, reduces the time used by network insertion;Further, nothingNeed user to be operated manually, alleviate the operation burden of user, improve Consumer's Experience.
The preferred embodiment of the present invention is described in detail above in association with accompanying drawing, but, the present invention does not limitDetail in above-mentioned embodiment, in the technology concept of the present invention, can be to the present inventionTechnical scheme carry out multiple simple variant, these simple variant belong to protection scope of the present invention.
It is further to note that each the concrete technology described in above-mentioned detailed description of the invention is specialLevy, in the case of reconcilable, can be combined by any suitable means, in order to avoid need notThe repetition wanted, various possible compound modes are illustrated by the present invention the most separately.
Additionally, combination in any can also be carried out between the various different embodiment of the present invention, as long as itsWithout prejudice to the thought of the present invention, it should be considered as content disclosed in this invention equally.