Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Figure 1A is the running environment schematic diagram of method of being carried out registering at platform of internet of things by equipment of the present invention in an embodiment.As shown in Figure 1A, user terminal 102 and equipment 104 are positioned at same local area network (LAN), user terminal 102 sends broadcast packet and whether there is the equipment supporting rendezvous protocol with inquiry in local area network (LAN), if equipment 104 supports the agreement of this agreement, then respond physical label code to user terminal 102, physical label code is sent to platform of internet of things 106 by user terminal 102, platform of internet of things 106 obtains equipment account and device password according to the registration of physical label code, equipment 104 is returned to by user terminal 102, equipment 104 logs in platform of internet of things 106 according to equipment account and device password, thus equipment 104 can communicate with platform of internet of things 106, and communicate with the miscellaneous equipment or user terminal that are connected to platform of internet of things 106.
Platform of internet of things 108 in Figure 1A is for providing the support to Internet of Things service, such as, according to equipment account and the device password of the registration of physical label code for logging in platform of internet of things 108, and carry out message forwarding between the equipment or user terminal of each login platform of internet of things 108, etc.
User terminal 102 in Figure 1A can be mobile phone, notebook computer, panel computer etc. can carry out alternately with user and the intelligent subscriber terminal of accessible network arbitrarily.In one embodiment, as shown in Figure 1B, this user terminal 102 comprises the processor, storage medium, internal memory, network interface, display screen and the input mechanism that are connected by system bus to the internal structure of user terminal 102.User terminal 102 can carry out alternately with user, and the input mechanism of user terminal 102 triggers dependent instruction according to user operation, the display screen of user terminal 102 then by relevant information display to user.Store for realizing software instruction equipment being carried out the method registered at platform of internet of things of the present invention in the storage medium of user terminal 102, the processor of user terminal 102 performs the method that equipment carries out at platform of internet of things registering to realize the present invention by these instructions.
Equipment 104 in Figure 1A can be the equipment that television set, camera, printer, intelligent lamp, intelligence beginning etc. can be accessed by arbitrarily local area network (LAN).In one embodiment, as shown in Figure 1 C, this equipment 104 comprises control chip, work functions mechanism, network access device and storage medium to the internal structure of equipment 104.Wherein, the work of control chip cooperation control work functions mechanism, network access device and storage medium, work functions mechanism is for realizing the basic function of equipment 104, and the work functions mechanism of such as camera at least has the function etc. catching image; Network access device has network connecting function; Store in storage medium for realizing software instruction equipment being carried out the method registered at platform of internet of things of the present invention, control chip performs the method that equipment carries out at platform of internet of things registering to realize the present invention by these instructions.
The invention provides a kind of method of equipment being carried out register at platform of internet of things; hereafter executive agent in this way for user terminal for example illustrates step included by the method; but this executive agent of user terminal should not as the restriction to the method registered at platform of internet of things by equipment of the present invention, and the method only changing executive agent also belongs to the scope of protection of the invention.
As shown in Figure 2, in one embodiment, a kind of method of equipment being carried out register at platform of internet of things, comprises the following steps:
Step S202, user terminal sends broadcast packet in local area network (LAN), to obtain in local area network (LAN) the equipment supporting rendezvous protocol.
Broadcast packet can be described as broadcast data packet again, and above-mentioned local area network (LAN) supports broadcast capability.The broadcast packet that user terminal sends is used in local area network (LAN), inquire the equipment whether existing and support rendezvous protocol.Comprise in this broadcast packet and represent whether inquiry exists the information of the equipment supporting rendezvous protocol, and this information encapsulates according to preset format in broadcast packet.
Above-mentioned rendezvous protocol is the agreement of platform of internet of things agreement, and the agreement of holder networked platforms agreement is the prerequisite of carrying out with platform of internet of things communicating.
After equipment in local area network (LAN) receives broadcast packet, resolve broadcast packet, if equipment supports rendezvous protocol, then respond the facility information of equipment to described user terminal.
Step S204, user terminal receives the facility information supporting in local area network (LAN) that the equipment of rendezvous protocol sends, and this facility information comprises physical label code.
Physical label code is can the sequence number of unique identification equipment, and can be determined before equipment dispatches from the factory, the physical label code of any two equipment is not identical.
Step S206, physical label code is sent to platform of internet of things by user terminal.
User terminal logged on platform of internet of things in advance, thus can communicate with platform of internet of things.In one embodiment, the user terminal described in present specification is provided with Internet of Things client, this Internet of Things client is client software that can be mutual with platform of internet of things.In the present embodiment, the user account that user terminal can register at platform of internet of things by Internet of Things client in advance and user cipher, and by Internet of Things client with this user account and user cipher login platform of internet of things.And, in present specification, equipment is carried out the step that in the method registered, user terminal performs at platform of internet of things and all come by this Internet of Things client.
In one embodiment, above-mentioned Internet of Things client is instant communication client, and platform of internet of things comprises the instant communication server for providing instant messaging to serve.In the present embodiment, user terminal by instant communication client with the instant messaging account registered at instant communication server and instant messaging password login instant communication server, due to the part that instant communication server is platform of internet of things, thus also just sign in platform of internet of things.
Step S208, the equipment account according to the generation of physical label code that user terminal receiver networked platforms returns and device password corresponding with it, this equipment account and device password are used for device logs platform of internet of things, communicate with platform of internet of things to make equipment.
Step S210, equipment account and device password are sent to corresponding equipment by user terminal.
After equipment receives equipment account and device password, equipment account and device password can be stored into this locality, and sign in platform of internet of things according to this equipment account and device password.
In one embodiment, the physical label code that user terminal receives is encrypted according to the private key of transmitting apparatus.The physical label code of equipment can store in a device in advance after encryption, is also encrypted physical label code by equipment.
In the present embodiment, equipment account and device password obtain according to the physical label code registration after deciphering, and the physical label code PKI corresponding according to the private key of transmitting apparatus is decrypted.
Physical label code is decrypted and can be undertaken by user terminal or platform of internet of things.
The equipment of same equipment vendors can hold identical private key and PKI.The present embodiment is encrypted according to the physical label code of unsymmetrical key to equipment and decodes, and can realize the certification to equipment identities exactly.
In one embodiment, equipment account and device password are according to not yet obtaining in the physical label code registration that platform of internet of things is registered.All this feature can be realized below in three embodiments.
In a first embodiment, the facility information that in step S204, user terminal receives is support rendezvous protocol in local area network (LAN) and not yet at the facility information that the equipment of platform of internet of things registration sends.Namely, after equipment in local area network (LAN) receives broadcast packet, resolve broadcast packet, if equipment supports rendezvous protocol and it is not yet registered at platform of internet of things, the facility information of equipment is then responded to described user terminal, if in platform of internet of things registration, then do not responded the facility information of equipment to described user terminal.
In a second embodiment, whether the facility information that in step S204, user terminal receives comprises equipment in the information of platform of internet of things registration; Namely after the equipment in local area network (LAN) receives broadcast packet, resolve broadcast packet, if equipment supports rendezvous protocol, then respond to described user terminal and whether comprise equipment mark code with expression at the facility information of the information of platform of internet of things registration.
In step S206, whether user terminal is registered at platform of internet of things according to facility information judgment device, and not yet will be sent to platform of internet of things at the physical label code of the equipment of platform of internet of things registration.
In the third embodiment, after platform of internet of things receives physical label code, check that whether this physical label code is registered, if not, then generate equipment account corresponding to physics identification code and device password, store physical label code, corresponding relation between equipment account and device password, and this equipment account and device password are sent to user terminal, if so, then the chartered message of this physical label code is issued to user terminal.
In one embodiment, before step S202, the above-mentioned method being carried out registering at platform of internet of things by equipment is further comprising the steps of: user terminal auxiliary equipment access to LAN.In one embodiment, this step comprises the following steps:
(1) user terminal receives the username and password of router in the local area network (LAN) of input.
In present specification, for according to the username and password couple in router of the router in local area network (LAN) thus access to LAN illustrates the process of access to LAN, but the process of access to LAN should not be limited to the username and password couple in router of the router according to local area network (LAN), access to LAN can be carried out according to other network insertion identifying information of local area network (LAN).When the network insertion identifying information of local area network (LAN) is object requests access to LAN to be accessed, the information that local area network (LAN) needs to identify checking and determines whether to permit access according to this.Such as, the username and password of router in local area network (LAN), or the username and password etc. of Wi-Fi Hotspot in local area network (LAN).
(2) user terminal obtains the identification parameter of equipment.In one embodiment, the identification parameter of equipment resolves the parameter identifying that the process of wherein carried information relates to for equipment from information carrier, the user name of the password of the wireless network card of such as equipment, the WLAN focus of equipment, the discernible audiorange of equipment, NFC key that equipment is corresponding etc.
(3) user terminal generates and carries the information carrier of the username and password of router, and this information carrier meets the identification parameter of equipment, can only go out username and password wherein to make this information carrier by this recognition of devices.
In one embodiment, information carrier can comprise packet, acoustic signals, radiofrequency signal etc. arbitrarily can beared information and therefrom can parse the carrier of carried information.Concrete, in one embodiment, the IP packet of the username and password comprising router can be generated, and be encrypted according to the codon pair IP packet of the wireless network card of equipment, to make to be gone out the username and password in this IP packet by this recognition of devices.In another embodiment, generate the packet comprising the username and password of the router of local area network (LAN), and comprise the user name of WLAN focus in this packet, to represent that this packet is the packet sending to WLAN focus.In another embodiment, the username and password and the acoustic signals of frequency of sound wave in the discernible audiorange of equipment that carry router can be generated, to make to be gone out the username and password in this acoustic signals by this recognition of devices.In other examples, can be encrypted according to the username and password of NFC double secret key router corresponding to equipment, the radiofrequency signal of the username and password of the router after encryption is carried according to NFC communication protocol generation, to make to be gone out the username and password in radiofrequency signal by this recognition of devices, etc.
(4) information carrier is sent to equipment by user terminal, the username and password access to LAN of router in the local area network (LAN) carried according to information carrier to make equipment.
In above-described embodiment, even if for the equipment not having input unit, also can make its username and password getting router in local area network (LAN) and be linked into local area network (LAN) further, for equipment access platform of internet of things provides basis.
The present invention also provides a kind of implementation method of carrying out communicating with internet of things equipment, this internet of things equipment refers to the agreement of holder networked platforms agreement and has the equipment of network access device, the equipment described in present specification all holder networked platforms agreement agreement and there is network access device.In one embodiment, a kind of implementation method of carrying out communicating with internet of things equipment, comprises the following steps:
(1) user terminal auxiliary equipment is registered at platform of internet of things; This process can comprise the step described in method being carried out at platform of internet of things by equipment in above-mentioned any embodiment registering.
(2) user account used for current for the machine login platform of internet of things and equipment are bound to platform of internet of things request by user terminal, and the user terminal logging in platform of internet of things with this user account can be communicated via platform of internet of things with this equipment.
Before step (2), user terminal signs in platform of internet of things with user account and user cipher.Concrete, user terminal signs in platform of internet of things by Internet of Things client with user account and user cipher.
Concrete, user terminal can to platform of internet of things transmitting apparatus bind request, apparatus bound request comprises the Internet of Things client logs platform of internet of things of current operation on the equipment account of equipment and user terminal user account used, to ask platform of internet of things this user account and equipment account to be bound, the user terminal logging in platform of internet of things with this user account by Internet of Things client can be communicated via platform of internet of things with the equipment logging in platform of internet of things with this equipment account.
In one embodiment, above-mentioned implementation method of carrying out communicating with internet of things equipment, further comprising the steps of: the equipment that user terminal is bound with above-mentioned user account communicates via platform of internet of things.Prerequisite is, user terminal logs in platform of internet of things by Internet of Things client with user account, and equipment logs in platform of internet of things with equipment account.Equipment corresponding to equipment account that the Internet of Things client logs platform of internet of things of current operation on user terminal user account used binds is referred to the equipment that user terminal is bound.
The above-mentioned step carrying out relating in the implementation method communicated user terminal with internet of things equipment all can have been come by the Internet of Things client running on user terminal.
Above-mentioned implementation method of carrying out communicating with internet of things equipment can be used for the communication realized between user side and equipment.
Although mentioned above implementation method of carrying out communicating with internet of things equipment take executive agent as user terminal for example is described; but this executive agent of user terminal should not as the restriction to the implementation method communicated with internet of things equipment of the present invention, and the method only changing executive agent also belongs to the scope of protection of the invention.
A kind of method of equipment being carried out register at platform of internet of things described from equipment side is hereafter also provided; although hereafter with executive agent for equipment for example illustrates step included by the method; but this executive agent of equipment should not as the restriction to the method, and the method only changing executive agent also belongs to the scope of protection of the invention.
As shown in Figure 3, in one embodiment, a kind of method of equipment being carried out register at platform of internet of things, comprises the following steps:
Step S302, equipment receives the broadcast packet that the user terminal in local area network (LAN) transmits, and this broadcast packet is used in local area network (LAN), inquire the equipment whether existing and support rendezvous protocol.
Broadcast packet can be described as broadcast data packet again, and above-mentioned local area network (LAN) supports broadcast capability.Comprise in broadcast packet and represent whether inquiry exists the information of the equipment supporting rendezvous protocol, and this information encapsulates according to preset format in broadcast packet.
Above-mentioned rendezvous protocol is the agreement of platform of internet of things agreement, and the agreement of holder networked platforms agreement is the prerequisite of carrying out with platform of internet of things communicating.
After equipment in local area network (LAN) receives broadcast packet, resolve broadcast packet,
Step S304, if equipment supports rendezvous protocol, then respond the facility information of equipment to described user terminal, this facility information comprises the physical label code of equipment, to make described user terminal, physical label code is sent to platform of internet of things.
Physical label code is can the sequence number of unique identification equipment, and can be determined before equipment dispatches from the factory, the physical label code of any two equipment is not identical.
After platform of internet of things receives physical label code, obtain equipment account and password according to the registration of physical label code, and this equipment account and password are returned to described user terminal, this equipment account and device password are then returned to equipment by described user terminal.
Step S306, the equipment account that equipment receiver networked platforms is returned by described user terminal and device password, platform of internet of things obtains described equipment account and device password according to described physical label code registration, equipment account and device password are used for device logs platform of internet of things, communicate with platform of internet of things to make equipment.
In one embodiment, above-mentioned the method that equipment carries out registering at platform of internet of things is also comprised step: the equipment account that device storage receives and device password.Equipment account and device password are stored, uses for during device logs.
In one embodiment, above-mentioned the method that equipment carries out registering at platform of internet of things is also comprised step: equipment logs in platform of internet of things with its equipment account and device password.Device logs to platform of internet of things, thus can realize communicating with platform of internet of things.
In one embodiment, above-mentioned also comprises step by the method that equipment carries out registering at platform of internet of things: after signing in platform of internet of things, and equipment sends the heartbeat packet of indication equipment running status to platform of internet of things.
In one embodiment, the physical label code that equipment is responded to described user terminal is encrypted according to the private key of equipment.The physical label code of equipment can store in a device in advance after encryption, is also encrypted physical label code by equipment, and equipment before the physical label code responding equipment to described user terminal, can be encrypted physical label code.
In the present embodiment, equipment account and device password obtain according to the physical label code registration after deciphering, and the PKI that this physical label code is corresponding according to described private key is decrypted.
Physical label code is decrypted and can be undertaken by described user terminal or platform of internet of things.
The equipment of same equipment vendors can hold identical private key and PKI.The present embodiment is encrypted according to the physical label code of unsymmetrical key to equipment and decodes, and can realize the certification to equipment identities exactly.
In one embodiment, equipment account and device password are according to not yet obtaining in the physical label code registration that platform of internet of things is registered.All can realize this feature in three embodiments below, but the embodiment that can realize this feature is not limited to following three embodiments.
In a first embodiment, after equipment receives broadcast packet, resolve broadcast packet, if equipment supports rendezvous protocol and it is not yet registered at platform of internet of things, the facility information of equipment is then responded to described user terminal, if in platform of internet of things registration, then do not responded the facility information of equipment to described user terminal.
In a second embodiment, after equipment receives broadcast packet, resolve broadcast packet, if equipment supports rendezvous protocol, then respond to described user terminal and whether comprise equipment mark code with expression at the facility information of the information of platform of internet of things registration.Whether described user terminal is registered at platform of internet of things according to facility information judgment device, and not yet will be sent to platform of internet of things at the physical label code of equipment of platform of internet of things registration, then do not send to platform of internet of things at the physical label of the registered equipment of platform of internet of things.
In the third embodiment, after platform of internet of things receives physical label code, check that whether this physical label code is registered, if not, then generate equipment account corresponding to physics identification code and device password, store physical label code, corresponding relation between equipment account and device password, and this equipment account and device password are sent to described user terminal, if so, then the chartered message of this physical label code is issued to described user terminal.
In one embodiment, before step S302, the above-mentioned method being carried out registering at platform of internet of things by equipment is further comprising the steps of: equipment access local area network (LAN).In one embodiment, this step comprises the following steps: (1) equipment obtains the information carrier carrying the username and password of LAN router from user terminal, this information carrier carried out process according to the identification parameter of equipment, made this information carrier can only go out username and password wherein by recognition of devices.(2) equipment identifies the username and password of router from information carrier.(3) equipment is according to username and password couple in router.
In a specific embodiment, the step of equipment access local area network (LAN) comprises the following steps: the listen mode of the wireless network card that (1.1) opening of device is built-in, wireless network card can intercept and capture IP packet in the listen mode.(1.2) equipment intercepts and captures the IP packet comprising the username and password of router of user terminal transmission by wireless network card, and this IP packet carried out encryption according to the password of the wireless network card of equipment.(1.3) equipment is decrypted according to the codon pair IP packet of wireless network card, and extracts the username and password of router from IP packet.(1.4) equipment is according to username and password couple in router.
In a specific embodiment, the step of equipment access local area network (LAN) comprises the following steps: the hotspot pattern of the wireless network card that (2.1) opening of device is built-in, thus sets up the WLAN focus of self.(2.2) equipment receives the access request of the accessing WLAN network focus that user terminal sends by wireless network card, comprises the user name of WLAN focus in access request.(2.3) equipment is by user terminal accessing WLAN network focus.(2.4) equipment receives by wireless network card the packet that user terminal sends to WLAN focus, comprises the username and password of router in this packet.(2.5) equipment extracts the username and password of router from packet.(2.6) hotspot pattern of the wireless network card that device revocation is built-in, recovers the basic function of the transmitting/receiving wireless signal of wireless network card.(2.7) equipment is according to the username and password couple in router of router.
In a specific embodiment, the step of equipment access local area network (LAN) comprises the following steps: the acoustic signals in the audiorange that this acoustic receiver device that (3.1) equipment receives user terminal transmission by built-in acoustic receiver device can identify, acoustic signals carries the information of the username and password of router.(3.2) acoustic signals is converted to the username and password of router by equipment.(3.3) equipment is according to the username and password couple in router of router.
In a specific embodiment, the step of equipment access local area network (LAN) comprises the following steps: (4.1) equipment receives the radiofrequency signal of user terminal transmission by built-in NFC communication device, this radiofrequency signal carried out encryption through the NFC key that equipment is corresponding, and this radiofrequency signal carries the information of the username and password of LAN router.(4.2) equipment is decrypted according to the encryption key radio frequency signal of its correspondence, and from radiofrequency signal, parse the username and password of LAN router.(4.3) equipment is according to the username and password couple in router of router.
In above-described embodiment, even if for the equipment not having input unit, also can make its username and password getting router in local area network (LAN) and be linked into local area network (LAN) further, for equipment access platform of internet of things provides basis.
With a concrete application scenarios, the above-mentioned method of being carried out registering at platform of internet of things by equipment is described below.As shown in Figure 4, in this application scenarios, platform of internet of things 400 comprises device management server 408, message center 410, instant communication server 404 and facility registration server 407.Wherein, device management server 408 at least has and to carry out with equipment 406 communicating and the function of correlation behavior of store and management equipment; Message center 410 at least has the function of forwarding messages between device management server 408 and instant communication server 404; Instant communication server 404 at least has to be provided instant messaging service and carries out with user terminal 402 function that communicates; Facility registration server 407 at least has the function obtaining equipment account and device password according to the registration of physical label code.As shown in Figure 4:
0. user terminal 402 is with instant messaging account and instant messaging password login instant communication server 404.
1. user terminal 402 triggers search in local area network (LAN) by the user operation on interface and supports the equipment of rendezvous protocol, and user terminal 402 sends broadcast packet whether there is in local area network (LAN) inquiry the equipment supporting rendezvous protocol in local area network (LAN).
2. support the physical label code of equipment 406 to user terminal 402 transmitting apparatus 406 of rendezvous protocol.
3. this physical label code is sent to facility registration server 407 by user terminal 404.
4. facility registration server 407 obtains equipment account and device password according to the registration of this physical label code, and this equipment account and device password are returned to user terminal 404.
5. this equipment account and device password are sent to equipment 402 by user terminal 404.
6. equipment 40 signs in device management server 408 with this equipment account and device password.
7. equipment 406 sends the heartbeat packet of indication equipment 406 running status to device management server 408.
8. user terminal 402 is sent to instant communication server 404 by sending to the message of equipment 406, message is transmitted to message center 410 by instant communication server 404, message is transmitted to device management server 408 by message center 410, and message is transmitted to equipment 406 by 408 by device management server.Message can be sent to user terminal 402 according to contrary path by equipment 406.Thus the communication realized between user terminal 402 and equipment 406.
As shown in Figure 5, a kind of device equipment being carried out register at platform of internet of things, this device can be arranged in the user terminal different from this equipment, comprise broadcast packet sending module 502, facility information receiver module 504, physical label code sending module 506, account number cipher receiver module 508 and account number cipher sending module 510, wherein:
Broadcast packet sending module 502 for sending broadcast packet in local area network (LAN), to obtain in local area network (LAN) the equipment supporting rendezvous protocol.
Broadcast packet can be described as broadcast data packet again, and above-mentioned local area network (LAN) supports broadcast capability.The broadcast packet that broadcast packet sending module 502 sends is used in local area network (LAN), inquire the equipment whether existing and support rendezvous protocol.Comprise in this broadcast packet and represent whether inquiry exists the information of the equipment supporting rendezvous protocol, and this information encapsulates according to preset format in broadcast packet.
Above-mentioned rendezvous protocol is the agreement of platform of internet of things agreement, and the agreement of holder networked platforms agreement is the prerequisite of carrying out with platform of internet of things communicating.
After equipment in local area network (LAN) receives broadcast packet, resolve broadcast packet, if equipment supports rendezvous protocol, then respond the facility information of equipment to described user terminal.
The facility information that facility information receiver module 504 sends for receiving in local area network (LAN) the equipment of supporting rendezvous protocol, this facility information comprises physical label code.
Physical label code is can the sequence number of unique identification equipment, and can be determined before equipment dispatches from the factory, the physical label code of any two equipment is not identical.
Physical label code sending module 506 is for being sent to platform of internet of things by physical label code.
In one embodiment, above-mentioned equipment is also comprised user terminal login module (not shown) at the device that platform of internet of things carries out registering, for signing in platform of internet of things with user account and user cipher, thus user terminal can be communicated with platform of internet of things.
In one embodiment, login module can in advance at user account and the user cipher login platform of internet of things of platform of internet of things registration.
In one embodiment, platform of internet of things comprises the instant communication server for providing instant messaging to serve.In the present embodiment, login module, with instant messaging account and instant messaging password login instant communication server in advance in instant communication server registration, because instant communication server is the part of platform of internet of things, thus also just signs in platform of internet of things.
Account number cipher receiver module 508 for receiver networked platforms return according to physical label code generate equipment account and with it correspondence device password, this equipment account and device password are used for device logs platform of internet of things, communicate with platform of internet of things to make equipment.
Account number cipher sending module 510 is for sending to corresponding equipment by equipment account and device password.
After equipment receives equipment account and device password, equipment account and device password can be stored into this locality, and sign in platform of internet of things according to this equipment account and device password.
In one embodiment, the physical label code that facility information receiver module 504 receives is encrypted according to the private key of transmitting apparatus.The physical label code of equipment can store in a device in advance after encryption, is also encrypted physical label code by equipment.
In the present embodiment, equipment account and device password obtain according to the physical label code registration after deciphering, and the physical label code PKI corresponding according to the private key of transmitting apparatus is decrypted.
In one embodiment, above-mentioned the device that equipment carries out registering at platform of internet of things is also comprised deciphering module (not shown), the PKI that the private key for the transmitting apparatus according to physical label code correspondence is corresponding is decrypted this physical label code.In another embodiment, physical label code is decrypted and can be undertaken by platform of internet of things.
The equipment of same equipment vendors can hold identical private key and PKI.The present embodiment is encrypted according to the physical label code of unsymmetrical key to equipment and decodes, and can realize the certification to equipment identities exactly.
In one embodiment, equipment account and device password are according to not yet obtaining in the physical label code registration that platform of internet of things is registered.All this feature can be realized below in three embodiments.
In a first embodiment, the facility information that facility information receiver module 504 receives is support rendezvous protocol in local area network (LAN) and not yet at the facility information that the equipment of platform of internet of things registration sends.Namely, after equipment in local area network (LAN) receives broadcast packet, resolve broadcast packet, if equipment supports rendezvous protocol and it is not yet registered at platform of internet of things, the facility information of equipment is then responded to described user terminal, if in platform of internet of things registration, then do not responded the facility information of equipment to described user terminal.
In a second embodiment, whether the facility information that facility information receiver module 504 receives comprises equipment in the information of platform of internet of things registration; Namely after the equipment in local area network (LAN) receives broadcast packet, resolve broadcast packet, if equipment supports rendezvous protocol, then respond to described user terminal and whether comprise equipment mark code with expression at the facility information of the information of platform of internet of things registration.
In the present embodiment, whether physical label code sending module 506 is registered at platform of internet of things according to facility information judgment device, and not yet will be sent to platform of internet of things at the physical label code of the equipment of platform of internet of things registration.
In the third embodiment, after platform of internet of things receives physical label code, check that whether this physical label code is registered, if not, then generate equipment account corresponding to physics identification code and device password, store physical label code, corresponding relation between equipment account and device password, and this equipment account and device password are sent to above-mentioned device place user terminal equipment being carried out register at platform of internet of things, if so, then the chartered message of this physical label code is issued to this user terminal.
In one embodiment, above-mentioned the device that equipment carries out registering at platform of internet of things is also comprised LAN optimization supplementary module, for auxiliary equipment access to LAN.In one embodiment, LAN optimization supplementary module comprises user name password acceptance module, identification parameter acquisition module, information carrier generation module and information carrier sending module, wherein:
User name password acceptance module, for receive input local area network (LAN) in the username and password of router.
Identification parameter acquisition module, for obtaining the identification parameter of equipment.In one embodiment, the identification parameter of equipment resolves the parameter identifying that the process of wherein carried information relates to for equipment from information carrier, the user name of the password of the wireless network card of such as equipment, the WLAN focus of equipment, the discernible audiorange of equipment, NFC key that equipment is corresponding etc.
Information carrier generation module, for generating the information carrier of the username and password carrying router, and this information carrier meets the identification parameter of equipment, can only go out username and password wherein to make this information carrier by this recognition of devices.
In one embodiment, information carrier can comprise packet, acoustic signals, radiofrequency signal etc. arbitrarily can beared information and therefrom can parse the carrier of carried information.Concrete, in one embodiment, information carrier generation module can generate the IP packet of the username and password comprising router, and is encrypted according to the codon pair IP packet of the wireless network card of equipment, to make to be gone out the username and password in this IP packet by this recognition of devices.In another embodiment, information carrier generation module can generate the packet of the username and password of the router comprising local area network (LAN), and comprise the user name of WLAN focus in this packet, to represent that this packet is the packet sending to WLAN focus.In another embodiment, information carrier generation module can generate the username and password and the acoustic signals of frequency of sound wave in the discernible audiorange of equipment that carry router, to make to be gone out the username and password in this acoustic signals by this recognition of devices.In other examples, information carrier generation module can be encrypted according to the username and password of NFC double secret key router corresponding to equipment, the radiofrequency signal of the username and password of the router after encryption is carried according to NFC communication protocol generation, to make to be gone out the username and password in radiofrequency signal by this recognition of devices, etc.
Information carrier sending module, for information carrier is sent to equipment, the username and password access to LAN of router in the local area network (LAN) carried according to information carrier to make equipment.
In above-described embodiment, even if for the equipment not having input unit, also can make its username and password getting router in local area network (LAN) and be linked into local area network (LAN) further, for equipment access platform of internet of things provides basis.
The present invention also provides a kind of implement device carrying out communicating with internet of things equipment, this device can be arranged at user terminal, this internet of things equipment refers to the agreement of holder networked platforms agreement and has the equipment of network access device, the equipment described in present specification all holder networked platforms agreement agreement and there is network access device.In one embodiment, be somebody's turn to do the implement device carrying out with internet of things equipment communicating, comprise:
Facility registration device, registers at platform of internet of things for auxiliary equipment; This facility registration device can comprise the module included by device being carried out at platform of internet of things by equipment in above-mentioned any embodiment registering.
Bind request module, for user account used for current for the machine login platform of internet of things and equipment being bound to platform of internet of things request, the user terminal logging in platform of internet of things with this user account can be communicated via platform of internet of things with this equipment.
Above-mentioned the machine is the user terminal carrying out the implement device place communicated with internet of things equipment.
In one embodiment, above-mentionedly equipment is also comprised user terminal login module (not shown) at the device that platform of internet of things carries out registering, for signing in platform of internet of things with user account and user cipher.The machine current login platform of internet of things user account used also namely user terminal login module sign in platform of internet of things user account used.
Concrete, bind request module can to platform of internet of things transmitting apparatus bind request, apparatus bound request comprises the user account used for the equipment account and the machine current login platform of internet of things that log in platform of internet of things of equipment, to ask platform of internet of things this user account and equipment account to be bound, the user terminal passing to this user account login platform of internet of things can be communicated via platform of internet of things with the equipment logging in platform of internet of things with this equipment account.
In one embodiment, the above-mentioned implement device carrying out communicating with internet of things equipment also comprises device communication module, and the equipment bound for the user account used with the machine current login platform of internet of things communicates via platform of internet of things.Prerequisite is, equipment also logs in platform of internet of things with equipment account.Equipment corresponding to equipment account that the Internet of Things client logs platform of internet of things of current operation on user terminal user account used binds is referred to the equipment that user terminal is bound.
The above-mentioned implement device carrying out communicating with internet of things equipment can be used for the communication realized between user side and equipment.
As shown in Figure 6, a kind of device equipment being carried out register at platform of internet of things, this device is arranged in this equipment, comprises broadcast packet receiver module 602, broadcast packet responding module 604 and account number cipher receiver module 606, wherein:
The broadcast packet that broadcast packet receiver module 602 transmits for the user terminal received in local area network (LAN), this broadcast packet is used in local area network (LAN), inquire the equipment whether existing and support rendezvous protocol.
Broadcast packet can be described as broadcast data packet again, and above-mentioned local area network (LAN) supports broadcast capability.Comprise in broadcast packet and represent whether inquiry exists the information of the equipment supporting rendezvous protocol, and this information encapsulates according to preset format in broadcast packet.
Above-mentioned rendezvous protocol is the agreement of platform of internet of things agreement, and the agreement of holder networked platforms agreement is the prerequisite of carrying out with platform of internet of things communicating.
In one embodiment, above-mentioned also comprises parsing module (not shown) by the device that equipment carries out registering at platform of internet of things, for after receiving broadcast packet, resolves broadcast packet.
If broadcast packet responding module 604 supports rendezvous protocol for equipment, then respond the facility information of equipment to described user terminal, this facility information comprises the physical label code of equipment, to make described user terminal, physical label code is sent to platform of internet of things.
Physical label code is can the sequence number of unique identification equipment, and can be determined before equipment dispatches from the factory, the physical label code of any two equipment is not identical.
After platform of internet of things receives physical label code, can obtain equipment account and password according to the registration of physical label code, and this equipment account and password are returned to described user terminal, this equipment account and device password are then returned to equipment by described user terminal.
The equipment account that account number cipher receiver module 606 is returned by described user terminal for receiver networked platforms and device password, platform of internet of things obtains this equipment account and device password according to the physical label code registration of equipment, equipment account and device password are used for device logs platform of internet of things, communicate with platform of internet of things to make equipment.
As shown in Figure 7, in one embodiment, above-mentioned also comprises account number cipher memory module 608, device logs module 610 and heartbeat packet sending module 612 by equipment at the device that platform of internet of things carries out registering, wherein:
Account number cipher memory module 608 is for storing equipment account and the device password of the equipment of account number cipher receiver module 606 reception.Equipment account and password are stored into equipment the machine, can for device logs to platform of internet of things time.
Device logs module 610 is for logging in platform of internet of things with the equipment account of equipment and device password.Can communicate with platform of internet of things after device logs to platform of internet of things.
Heartbeat packet sending module 612, for after device logs to platform of internet of things, sends the heartbeat packet of indication equipment running status to platform of internet of things.
In one embodiment, any one module in account number cipher memory module 608 and device logs module 610 separately and the device that forms of broadcast packet receiver module 602, broadcast packet responding module 604 and account number cipher receiver module 606 also belong to the scope of protection of the invention.In addition, the device that device logs module 610 and heartbeat packet sending module 612 and broadcast packet receiver module 602, broadcast packet responding module 604 and account number cipher receiver module 606 are formed also belongs to the scope of protection of the invention.
In one embodiment, the physical label code that broadcast packet responding module 604 is responded to described user terminal is encrypted according to the private key of equipment.In one embodiment, the physical label code of equipment can store in a device in advance after encryption.In another embodiment, above-mentioned also comprises encrypting module (not shown) by the device that equipment carries out registering at platform of internet of things, for before the physical label code responding equipment to described user terminal, the physical label code of private key to equipment according to equipment is encrypted.
In the present embodiment, equipment account and device password obtain according to the physical label code registration after deciphering, and the PKI that this physical label code is corresponding according to described private key is decrypted.Physical label code is decrypted and can be undertaken by described user terminal or platform of internet of things.
The equipment of same equipment vendors can hold identical private key and PKI.The present embodiment is encrypted according to the physical label code of unsymmetrical key to equipment and decodes, and can realize the certification to equipment identities exactly.
In one embodiment, equipment account and device password are according to not yet obtaining in the physical label code registration that platform of internet of things is registered.All can realize this feature in three embodiments below, but the embodiment that can realize this feature is not limited to following three embodiments.
In a first embodiment, broadcast packet responding module 604 is after equipment receives broadcast packet, if equipment supports rendezvous protocol and it is not yet registered at platform of internet of things, the facility information of equipment is then responded to described user terminal, if in platform of internet of things registration, then do not responded the facility information of equipment to described user terminal.
In a second embodiment, broadcast packet responding module 604 is after equipment receives broadcast packet, if equipment supports rendezvous protocol, then responds to described user terminal and whether comprises equipment mark code with expression at the facility information of the information of platform of internet of things registration.Whether described user terminal is registered at platform of internet of things according to facility information judgment device, and not yet will be sent to platform of internet of things at the physical label code of equipment of platform of internet of things registration, then do not send to platform of internet of things at the physical label of the registered equipment of platform of internet of things.
In the third embodiment, after platform of internet of things receives physical label code, check that whether this physical label code is registered, if not, then generate equipment account corresponding to physics identification code and device password, store physical label code, corresponding relation between equipment account and device password, and this equipment account and device password are sent to described user terminal, if so, then the chartered message of this physical label code is issued to described user terminal.
In one embodiment, above-mentioned also comprises the device that equipment carries out registering at platform of internet of things: LAN optimization module, for by equipment access local area network (LAN).In one embodiment, LAN optimization module comprises: (1) information carrier acquisition module, for obtaining the information carrier carrying the username and password of LAN router from user terminal, this information carrier carried out process according to the identification parameter of equipment, made this information carrier can only go out username and password wherein by recognition of devices.User name password identification module, for identifying the username and password of router from information carrier.(3) router access module, for according to username and password by equipment access router.
In a specific embodiment, information carrier acquisition module is used for the listen mode of the built-in wireless network card of opening device, and wireless network card can intercept and capture IP packet in the listen mode; The IP packet comprising the username and password of router of the user terminal transmission of the wireless network card intercepting and capturing of acquisition equipment, this IP packet carried out encryption according to the password of the wireless network card of equipment; User name password identification module is used for being decrypted according to the codon pair IP packet of wireless network card, and extracts the username and password of router from IP packet.
In a specific embodiment, information carrier acquisition module is used for the hotspot pattern of the built-in wireless network card of opening device, thus sets up the WLAN focus of self; The access request of the accessing WLAN network focus of the user terminal transmission of the wireless network card reception of acquisition equipment, comprises the user name of WLAN focus in access request; By user terminal accessing WLAN network focus; The user terminal of the wireless network card reception of acquisition equipment sends to the packet of WLAN focus, comprises the username and password of router in this packet.User name password identification module is used for the username and password extracting router from packet.In the present embodiment, the device of equipment access local area network (LAN) is also comprised wireless network card handover module, for the hotspot pattern of the built-in wireless network card of the equipment of cancelling, recover the basic function of the transmitting/receiving wireless signal of wireless network card.
In a specific embodiment, information carrier acquisition module receives acoustic signals in audiorange that this acoustic receiver device that user terminal sends can identify for obtaining the built-in acoustic receiver device of equipment, and acoustic signals carries the information of the username and password of router.User name password identification module is used for username and password acoustic signals being converted to router.
In a specific embodiment, information carrier acquisition module receives the radiofrequency signal of user terminal transmission by the NFC communication device that equipment is built-in, this radiofrequency signal carried out encryption through the NFC key that equipment is corresponding, and this radiofrequency signal carries the information of the username and password of LAN router.User name password identification module is used for the encryption key radio frequency signal corresponding according to equipment and is decrypted, and from radiofrequency signal, parse the username and password of LAN router.
In above-described embodiment, even if for the equipment not having input unit, also can make its username and password getting router in local area network (LAN) and be linked into local area network (LAN) further, for equipment access platform of internet of things provides basis.
Above-mentioned method and apparatus equipment being carried out register at platform of internet of things, the physical label code of the equipment supporting rendezvous protocol in local area network (LAN) can be got, and physical label code is sent to platform of internet of things, equipment account and the device password of equipment is obtained according to the registration of this physical label code to make Physical Network platform, equipment this equipment account and device password can sign in platform of internet of things, thus communicates with platform of internet of things; After equipment communicates with platform of internet of things, the user side then communicated with platform of internet of things can communicate via between platform of internet of things with equipment, thus above-mentioned method and apparatus equipment being carried out register at platform of internet of things, carry out communication provide the foundation for realizing user side and equipment.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.