CN108712485A - A kind of resource subscription method and apparatus of internet of things equipment - Google Patents

A kind of resource subscription method and apparatus of internet of things equipment Download PDF

Info

Publication number
CN108712485A
CN108712485A CN201810443341.4A CN201810443341A CN108712485A CN 108712485 A CN108712485 A CN 108712485A CN 201810443341 A CN201810443341 A CN 201810443341A CN 108712485 A CN108712485 A CN 108712485A
Authority
CN
China
Prior art keywords
internet
resource
things equipment
subscription
things
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810443341.4A
Other languages
Chinese (zh)
Other versions
CN108712485B (en
Inventor
张琨
刁克刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Group Co Ltd
Original Assignee
Hisense Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Group Co Ltd filed Critical Hisense Group Co Ltd
Priority to CN201810443341.4A priority Critical patent/CN108712485B/en
Publication of CN108712485A publication Critical patent/CN108712485A/en
Priority to PCT/CN2018/113514 priority patent/WO2019205557A1/en
Application granted granted Critical
Publication of CN108712485B publication Critical patent/CN108712485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An embodiment of the present invention provides a kind of resource subscription method and apparatus of internet of things equipment, this method includes:Register internet of things equipment;The device resource of the internet of things equipment if business platform pulls subscription generates target spoke to the internet of things equipment;The resource subscription request message for carrying the target spoke and subscribing to the device resource is sent to the internet of things equipment;If not receiving the resource subscription response message that the internet of things equipment sends the resource subscription request message within the preset period, confirm that subscribing to the device resource waits for time-out;Time-out is waited for according to the device resource is subscribed to, preserves the target spoke.Generate that resource subscription response message is thought to subscribe to successfully but not send resource subscription response message successful in internet of things equipment, platform of internet of things is thought to wait for time-out, still preserve target spoke so that internet of things equipment is consistent the state of subscription when there is communication abnormality with platform of internet of things.

Description

A kind of resource subscription method and apparatus of internet of things equipment
Technical field
The present invention relates to the technical fields of communication, more particularly to the resource subscription method and dress of a kind of internet of things equipment It sets.
Background technology
The mankind are brought into virtual world by Internet technology revolution, and virtual world is taken back reality by Internet of Things revolution no matter In life, work, or business, industrial scene, the boundary between virtual world and real world will be obscured increasingly.
After internet of things equipment accesses platform of internet of things, business platform can be to the internet of things equipment by platform of internet of things Resource is subscribed to, and internet of things equipment returns to confirmation message to this subscription.
But the features such as covering of Internet of Things wireless network is wide, signal is weak, bandwidth is small, the confirmation message transmission of internet of things equipment Loss Rate is higher, once go out active, it may appear that internet of things equipment think to subscribe to successfully, platform of internet of things determination think failure, So that the two inconsistent situation of state.
On the one hand, it is provided according to the agreement of Internet of Things, if subscribing to a certain resource failure, platform of internet of things cannot be again Same asset is subscribed to, on the other hand, the resource that internet of things equipment reports reaches platform of internet of things, which will be lost It abandons, causes to waste.
Invention content
The embodiment of the present invention proposes a kind of resource subscription method and apparatus of internet of things equipment, to solve internet of things equipment Confirmation message transmission lose cause the problem that state is inconsistent between internet of things equipment and platform of internet of things.
One side according to the present invention provides a kind of resource subscription method of internet of things equipment, including:
Register internet of things equipment;
The device resource of the internet of things equipment if business platform pulls subscription generates target to the internet of things equipment Token;
The resource subscription request for carrying the target spoke and subscribing to the device resource is sent to the internet of things equipment Message;
If not receiving what the internet of things equipment sent the resource subscription request message within the preset period Resource subscription response message then confirms that subscribing to the device resource waits for time-out;
Time-out is waited for according to the device resource is subscribed to, preserves the target spoke.
Optionally, described that target spoke is generated to the internet of things equipment, including:
Judge whether to be stored with the target spoke formerly generated to the internet of things equipment;
If so, deleting the target spoke being previously generated, target spoke is generated to the internet of things equipment again;
If it is not, then generating target spoke to the internet of things equipment for the first time.
Optionally, further include:
Time-out is waited for according to the device resource is subscribed to, generates and subscribes to time exceeded message;
The subscription time exceeded message is sent to the business platform, to wait for the device resource subscribed to.
Optionally, further include:
If receiving the resource subscription response message that the internet of things equipment is sent within the preset period, confirmation is ordered Read the device resource success;
According to the device resource success is subscribed to, the target spoke is preserved;
According to the device resource success is subscribed to, generates and subscribe to success message;
The subscription success message is sent to the business platform, to wait for the device resource subscribed to.
Optionally, further include:
The resource subscription notification message that the internet of things equipment is sent is received, the resource subscription notification message includes setting For resource and refer to token;
The target spoke is matched with described with reference to token;
When successful match, the device resource is sent to the business platform.
According to another aspect of the present invention, a kind of resource subscription device of internet of things equipment is provided, including:
Facility registration module, for registering internet of things equipment;
Token generation module, if the device resource for the internet of things equipment that pulls subscription for business platform, to described Internet of things equipment generates target spoke;
Request sending module is subscribed to, is carried described in the target spoke and subscription for being sent to the internet of things equipment The resource subscription request message of device resource;
Overtime confirmation module is subscribed to, if for not receiving the internet of things equipment within the preset period to the money The resource subscription response message that source subscription request message is sent then confirms that subscribing to the device resource waits for time-out;
Overtime preserving module, for according to the device resource waiting time-out is subscribed to, preserving the target spoke.
Optionally, the token generation module includes:
Token stores judging submodule, is formerly enabled to the target that the internet of things equipment generates for judging whether to be stored with Board;Submodule is regenerated if so, calling, if it is not, then calling first generation submodule;
Submodule is regenerated, for deleting the target spoke being previously generated, mesh is generated to the internet of things equipment again Mark token;
It is first to generate submodule, for generating target spoke to the internet of things equipment for the first time.
Optionally, further include:
Time exceeded message generation module is subscribed to, subscribing to the device resource for foundation waits for time-out, generates subscription time-out and disappears Breath;
Time exceeded message sending module is subscribed to, for the subscription time exceeded message to be sent to the business platform, to wait for The device resource of subscription.
Optionally, further include:
Successfully confirmation module is subscribed to, if the resource sent for receiving the internet of things equipment within the preset period Subscription response message then confirms and subscribes to the device resource success;
Success preserving module, for according to the device resource success is subscribed to, preserving the target spoke;
Success message generation module is subscribed to, for according to the device resource success is subscribed to, generating and subscribing to success message;
Success message sending module is subscribed to, for the subscription success message to be sent to the business platform, to wait for The device resource of subscription.
Optionally, further include:
Subscribing notification receiving module, the resource subscription notification message sent for receiving the internet of things equipment, the money Source subscribing notification message includes device resource and refer to token;
Token matched module, for matching the target spoke with reference to token with described;
Device resource sending module, for when successful match, the device resource to be sent to the business platform.
The embodiment of the present invention includes following advantages:
In embodiments of the present invention, if business platform pulls subscription internet of things equipment device resource, Internet of Things is set It is standby to generate target spoke, the resource subscription request message for carrying target spoke and subscribing to device resource is sent to internet of things equipment, If not receiving the resource subscription response message that internet of things equipment sends resource subscription request message within the preset period, Then confirm that subscribing to device resource waits for time-out, waits for time-out according to device resource is subscribed to, target spoke is preserved, in internet of things equipment Generate resource subscription response message think to subscribe to successfully but do not send resource subscription response message it is successful in the case of, Internet of Things Platform thinks waiting time-out, still preserves target spoke so that internet of things equipment is with platform of internet of things when there is communication abnormality The state of subscription is consistent so that the device resource that follow-up internet of things equipment reports can be verified and report business flat Platform ensures the subscription success of device resource.
Description of the drawings
Fig. 1 is a kind of step flow chart of the resource subscription method of internet of things equipment of one embodiment of the invention;
Fig. 2 is a kind of configuration diagram of Internet of Things of one embodiment of the invention;
Fig. 3 is a kind of communication exemplary plot of Internet of Things of one embodiment of the invention;
Fig. 4 is the step flow chart of the resource subscription method of another internet of things equipment of one embodiment of the invention;
Fig. 5 is the step flow chart of the resource subscription method of another internet of things equipment of one embodiment of the invention;
Fig. 6 is the step flow chart of the resource subscription method of another internet of things equipment of one embodiment of the invention;
Fig. 7 is a kind of structure diagram of the resource subscription device of internet of things equipment of one embodiment of the invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, the step of resource subscription method for showing a kind of internet of things equipment of one embodiment of the invention, flows Cheng Tu can specifically include following steps:
Step 101, internet of things equipment is registered.
In the concrete realization, the embodiment of the present invention can be applied in platform of internet of things, which can be only Vertical computing device, or computing cluster, the embodiment of the present invention do not limit this.
On the one hand, internet of things equipment, such as ammeter, water meter, weather monitoring instrument, are registered in platform of internet of things, and Platform of internet of things is accessed, is communicated with platform of internet of things according to Internet of Things fidonetFido, receives the instruction of platform of internet of things, and carry out Corresponding processing, alternatively, the device resource of subscription is reported to platform of internet of things, such as user power consumption, user's water consumption, temperature Deng.
On the other hand, business platform is connect with platform of internet of things, and the equipment for subscribing to internet of things equipment according to business demand provides Source carries out corresponding business processing, such as statistics daily or monthly user power consumption, to generate electricity consumption charging list, draw per when Or daily temperature curve variation diagram, etc..
It in one embodiment, should as shown in Fig. 2, being configured with Internet of Things communications module 211 in internet of things equipment 200 Internet of Things communications module 211 can pass through RS485, UART (Universal Asynchronous Receiver Transmitter, universal asynchronous receiving-transmitting transmitter), I2C (Inter Integrated Circuit, built-in integrated circuit) etc. Mode accesses in the processor of internet of things equipment 200, and is communicated with the processor.
Under normal circumstances, internet of things equipment 200 (Internet of Things communications module 211) is located in the Intranet 210 of operator, and object Networked platforms 231 are located in the public network 230 of operator, and therefore, internet of things equipment 200 (Internet of Things communication module 211) is sent to The data of base station 212 are carried out by NAT (Network Address Translation, network address translation) server 220 Intranet 210 arrive public network 230 address of cache, then by UDP (User Datagram Protocol, User Datagram Protocol)/ IP (Internet Protocol Address, Internet protocol address) is forwarded to platform of internet of things 231, and similarly, Internet of Things is flat The data of platform 231 carry out the address of cache that public network 230 arrives Intranet 210 by NAT servers 220, then forward base by UDP/IP Stand 212, base station 212 is sent to internet of things equipment 200 (Internet of Things communications module 211).
Since platform of internet of things 231 and business platform 232 belong to public network 230, it can directly pass through TCP (Transmission Control Protocol, transmission control protocol)/IP is communicated, by business platform 232 to Internet of Things The device resource of net equipment 200 is subscribed to, alternatively, receiving the device resource of internet of things equipment 200 from business platform 232.
In practical applications, the type of internet of things equipment is different, and the Internet of Things fidonetFido applied is different, to make Those skilled in the art more fully understand the embodiment of the present invention, by NB-IoT (Narrow Band Internet of Things, Based on cellular narrowband Internet of Things) it is illustrated as a kind of example of internet of things equipment.
In this example, platform of internet of things is communicated by RFC7641 agreements with NB-IoT equipment, to subscribe to NB-IoT The device resource of equipment.
As shown in figure 3, internet of things equipment (such as NB-IoT equipment) is after start-up, notice Internet of Things communications module is noted Volume, Internet of Things communications module are established with base station and are wirelessly connected, and send registration request by the wireless connection.
The registration request of Internet of Things communications module is sent to NAT servers by base station, NAT servers to the registration request into After row Intranet to the address conversion of public network, it is sent to platform of internet of things.
Platform of internet of things authenticates internet of things equipment according to the registration request, if identifying that the internet of things equipment is to close Method equipment then confirms and succeeds in registration, it is allowed to access platform of internet of things.
On the one hand, the notice to succeed in registration is sent to NAT servers by platform of internet of things, and NAT servers register this After the notice of work(carries out public network to the address conversion of Intranet, it is sent to base station, this is succeeded in registration by being wirelessly connected in base station Notice be sent to Internet of Things communications module, Internet of Things communications module notifies internet of things equipment registration to complete.
On the other hand, the platform of internet of things notice that will reach the standard grade is sent to business platform, and notice internet of things equipment registration is reached the standard grade, industry After business platform receives the notice of reaching the standard grade, the message confirmed is sent to business platform.
Step 102, if business platform pulls subscription the internet of things equipment device resource, to the internet of things equipment Generate target spoke.
As shown in figure 3, Internet of Things cloud platform is notified that business platform internet of things equipment after internet of things equipment succeeds in registration It reaches the standard grade, then business platform is monitored, latency services platform asks the subscription of interested device resource.
User can operate on business platform, select the device resource subscribed to, and generate to subscribe to according to TCP/IP and ask It asks, is sent to platform of internet of things.
Platform of internet of things is asked according to the subscription, generates the target spoke token of this subscription.
In one embodiment of the invention, step 102 may include following sub-step:
Sub-step S11 judges whether to be stored with the target spoke formerly generated to the internet of things equipment;If so, holding Row sub-step S12, if it is not, then executing sub-step S13.
Sub-step S12 deletes the target spoke being previously generated, and generates target spoke to the internet of things equipment again.
Sub-step S13 generates target spoke to the internet of things equipment for the first time.
After first succeed in registration, for internet of things equipment, Internet of Things can be waited for flat within the preset period The resource subscription request message of platform.
In oneainstance, if receiving resource subscription request message within the period, internet of things equipment is to object Networked platforms send resource subscription response message and are confirmed, at this point, internet of things equipment thinks that device resource is subscribed to successfully.
In another scenario, if not receiving resource subscription request message, internet of things equipment within the period Re-start registration.
In the case, for platform of internet of things, platform of internet of things has generated target spoke token, has been stored in Monitor in table, and send out resource subscription request message, and since the transmission such as NAT servers, base station go wrong, lead to not by Resource subscription request message is sent to internet of things equipment.
Hereafter, when internet of things equipment re-starts registration, new session is generated with platform of internet of things again.
Since target spoke token is effective in a session between platform of internet of things and internet of things equipment, object Whether networked platforms formerly can generate internet of things equipment after internet of things equipment registration monitoring table look-up and being stored with Target spoke token.
If so, indicating that internet of things equipment is not registered for the first time, then the target spoke token being previously generated is deleted, stopped Monitoring last session requires the device resource subscribed to, the resource that release platform of internet of things occupies resource cost to be reduced, again to this Secondary session generates new target spoke token, monitors the device resource of this Dialog request subscription.
If not provided, indicating that internet of things equipment is registered for the first time, target spoke token is generated to session for the first time, monitors this The device resource that Dialog request is subscribed to.
Step 103, the resource for carrying the target spoke and subscribing to the device resource is sent to the internet of things equipment Subscription request message.
In embodiments of the present invention, platform of internet of things can generate resource subscription request message according to agreements such as RFC7641 (i.e. CoAP Registration message) carries target spoke token and is sent to internet of things equipment (such as NB-IoT equipment).
As shown in figure 3, resource subscription request message is sent to NAT servers by platform of internet of things, NAT servers are to the money After source subscription request message carries out public network to the address conversion of Intranet, it is sent to base station, base station is by being wirelessly connected the money Source subscription request message is sent to Internet of Things communications module, and Internet of Things communications module sends relevant subscription to internet of things equipment and asks It asks.
Step 104, disappear to resource subscription request if not receiving the internet of things equipment within the preset period The resource subscription response message sent is ceased, then confirms that subscribing to the device resource waits for time-out.
Step 105, according to the device resource waiting time-out is subscribed to, the target spoke is preserved.
After platform of internet of things is sent to resource subscription request message, then internet of things equipment pair is waited within the preset period The resource subscription response message that resource subscription request message is sent.
Under normal circumstances, if internet of things equipment receives resource subscription request message, to resource subscription request message into Row confirm, according to RFC7641/7252 generate resource subscription response message (i.e. CoAP 2.xx message), indicate this subscription at Work(is sent to platform of internet of things, and preserves the target spoke token in resource subscription request message.
As shown in figure 3, if internet of things equipment confirms subscription, Internet of Things communications module, Internet of Things Netcom are notified Believe that module generates resource subscription response message, is sent to base station by being wirelessly connected, the resource subscription response message is sent out in base station It send to NAT servers, after NAT servers carry out Intranet to the address conversion of public network to the resource subscription response message, sends To platform of internet of things.
Therefore, if platform of internet of things does not receive the resource subscription response message of internet of things equipment within the period, Occur subscribing to device resource waiting time-out, it is understood that there may be the following two kinds situation:
1, the resource subscription request message of platform of internet of things is not sent to internet of things equipment.
In this case, platform of internet of things has generated resource subscription request message, and is set by NAT servers, base station etc. It is standby to be sent to internet of things equipment, since the transmission such as NAT servers, base station go wrong, resource subscription request message is caused not sent out It send to internet of things equipment, therefore, internet of things equipment will not correspondingly generate resource subscription response message, and platform of internet of things is also Resource subscription response message can not be received.
Since internet of things equipment can re-start registration in this case, (i.e. step 101), platform of internet of things are again right Device resource is subscribed to, and therefore, platform of internet of things stores target spoke, can't be impacted to subsequent subscription.
2, the resource subscription response message of internet of things equipment is not sent to platform of internet of things.
In this case, internet of things equipment has received resource subscription request message and generates resource subscription response message, It is sent to internet of things equipment by equipment such as NAT servers, base stations, since the transmission such as NAT servers, base station go wrong, is led Resource subscription response message is caused not to be sent to platform of internet of things.
At this point, internet of things equipment is thought to subscribe to successfully, registration (i.e. step 101), for Internet of Things can't be re-started For platform, target spoke is stored, internet of things equipment can be made subsequently to report the device resource of subscription using the target spoke When, platform of internet of things still can be verified correctly.
In embodiments of the present invention, if business platform pulls subscription internet of things equipment device resource, Internet of Things is set It is standby to generate target spoke, the resource subscription request message for carrying target spoke and subscribing to device resource is sent to internet of things equipment, If not receiving the resource subscription response message that internet of things equipment sends resource subscription request message within the preset period, Then confirm that subscribing to device resource waits for time-out, waits for time-out according to device resource is subscribed to, target spoke is preserved, in internet of things equipment Generate resource subscription response message think to subscribe to successfully but do not send resource subscription response message it is successful in the case of, Internet of Things Platform thinks waiting time-out, still preserves target spoke so that internet of things equipment is with platform of internet of things when there is communication abnormality The state of subscription is consistent so that the device resource that follow-up internet of things equipment reports can be verified and report business flat Platform ensures the subscription success of device resource.
With reference to Fig. 4, the step of showing the resource subscription method of another internet of things equipment of one embodiment of the invention Flow chart can specifically include following steps:
Step 401, internet of things equipment is registered.
Step 402, if business platform pulls subscription the internet of things equipment device resource, to the internet of things equipment Generate target spoke.
Step 403, the resource for carrying the target spoke and subscribing to the device resource is sent to the internet of things equipment Subscription request message.
Step 404, disappear to resource subscription request if not receiving the internet of things equipment within the preset period The resource subscription response message sent is ceased, then confirms that subscribing to the device resource waits for time-out.
Step 405, according to the device resource waiting time-out is subscribed to, the target spoke is preserved.
Step 406, it according to the device resource waiting time-out is subscribed to, generates and subscribes to time exceeded message.
Step 407, the subscription time exceeded message is sent to the business platform, to wait for the device resource subscribed to.
In embodiments of the present invention, time-out is waited for for subscribing to device resource, is not regarded as to subscribe to device resource failure, this When, subscription time exceeded message can be generated, business platform is sent to by TCP/IP.
After business platform receives the subscription time exceeded message, know that subscribing to device resource waits for time-out, then continues waiting for object Networked platforms report it to subscribe to the device resource of internet of things equipment.
With reference to Fig. 5, the step of showing the resource subscription method of another internet of things equipment of one embodiment of the invention Flow chart can specifically include following steps:
Step 501, internet of things equipment is registered.
Step 502, if business platform pulls subscription the internet of things equipment device resource, to the internet of things equipment Generate target spoke.
Step 503, the resource for carrying the target spoke and subscribing to the device resource is sent to the internet of things equipment Subscription request message.
Step 504, if receiving the resource subscription response message that the internet of things equipment is sent within the preset period, Then confirm and subscribes to the device resource success.
Step 505, according to the device resource success is subscribed to, the target spoke is preserved.
After platform of internet of things is sent to resource subscription request message, then internet of things equipment pair is waited within the preset period The resource subscription response message that resource subscription request message is sent.
If platform of internet of things receives the resource subscription response message of internet of things equipment within the period, can be true Recognize and subscribe to device resource success, at this point, storage target spoke is to monitoring table so that internet of things equipment subsequently uses the target spoke When reporting the device resource of subscription, platform of internet of things can be verified correctly.
Step 506, it according to the device resource success is subscribed to, generates and subscribes to success message.
Step 507, the subscription success message is sent to the business platform, to wait for the device resource subscribed to.
As shown in figure 3, platform of internet of things generates when subscribing to device resource success and subscribes to success message, pass through TCP/IP It is sent to business platform, subscription is confirmed.
After business platform receives the subscription success message, knows and subscribe to device resource success, it is normal that Internet of Things is waited for set The standby device resource for reporting it to subscribe to.
With reference to Fig. 6, the step of showing the resource subscription method of another internet of things equipment of one embodiment of the invention Flow chart can specifically include following steps:
Step 601, internet of things equipment is registered.
Step 602, if business platform pulls subscription the internet of things equipment device resource, to the internet of things equipment Generate target spoke.
Step 603, the resource for carrying the target spoke and subscribing to the device resource is sent to the internet of things equipment Subscription request message.
Step 604, judge whether that receiving the internet of things equipment asks the resource subscription within the preset period The resource subscription response message for asking message to send;If so, 605 are thened follow the steps, if it is not, thening follow the steps 607.
Step 605, confirm and subscribe to the device resource success.
Step 606, according to the device resource success is subscribed to, the target spoke is preserved.
Step 607, confirm that subscribing to the device resource waits for time-out.
Step 608, according to the device resource waiting time-out is subscribed to, the target spoke is preserved.
Step 609, the resource subscription notification message that the internet of things equipment is sent is received.
Step 610, the target spoke is matched with described with reference to token.
Step 611, when successful match, the device resource is sent to the business platform.
As shown in figure 3, being directed to the requirement under the application scenarios such as NB-IoT to internet of things equipment low-power consumption, very most cases Under, internet of things equipment enters the state of sleep as early as possible after completing to initialize, and internet of things equipment can not connect during sleep Receive data.
For example, in NB-IoT, internet of things equipment can pass through the moulds such as energy saver mode PSM, the discontinuous reception eDRX of extension Formula is slept.
Therefore, internet of things equipment after start-up, initialization is completed before sleep, ensure internet of things equipment and Internet of Things The subscription status of platform is consistent, ensures the device resource that subscription is normally reported after internet of things equipment wakes up.
Internet of things equipment upon awakening, acquires the device resource of subscription, and it is logical to generate resource subscription according to RFC7641/7252 Know message (i.e. CoAP Notification message), and some target spoke formerly preserved is sent to as with reference to token Platform of internet of things.
Platform of internet of things receives the resource subscription notification message of internet of things equipment at runtime, wherein resource subscription notifies Message includes device resource and refer to token.
Platform of internet of things from resource subscription notification message extraction equipment resource with refer to token, and extracted in monitoring table The corresponding target spoke of the internet of things equipment.
For platform of internet of things, which can be formerly to subscribe to device resource to wait for the mesh preserved when time-out Mark token, or formerly subscribe to the target spoke preserved when device resource success, the embodiment of the present invention does not limit this System.
Platform of internet of things will be matched with reference to token with target spoke, if the two successful match, then it is assumed that the resource Subscribing notification message is legal, device resource can be sent to business platform by TCP/IP.
As shown in figure 3, if internet of things equipment acquires device resource, Internet of Things communications module, Internet of Things can be transmitted to The device resource is encapsulated as resource subscription notification message by Network Communication module, is sent to base station by being wirelessly connected, base station should Resource subscription notification message is sent to NAT servers, and NAT servers carry out Intranet to public network to the resource subscription notification message After address conversion, it is sent to platform of internet of things, platform of internet of things is sent to business after check token, by device resource and puts down Platform.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
With reference to Fig. 7, a kind of structural frames of the resource subscription device of internet of things equipment of one embodiment of the invention are shown Figure, can specifically include following module:
Facility registration module 701, for registering internet of things equipment;
Token generation module 702, if the device resource for the internet of things equipment that pulls subscription for business platform, to institute It states internet of things equipment and generates target spoke;
Request sending module 703 is subscribed to, the target spoke and subscription institute are carried for being sent to the internet of things equipment State the resource subscription request message of device resource;
Overtime confirmation module 704 is subscribed to, if for not receiving the internet of things equipment within the preset period to institute The resource subscription response message for stating the transmission of resource subscription request message then confirms that subscribing to the device resource waits for time-out;
Overtime preserving module 705, for according to the device resource waiting time-out is subscribed to, preserving the target spoke.
In one embodiment of the invention, the token generation module 702 includes:
Token stores judging submodule, is formerly enabled to the target that the internet of things equipment generates for judging whether to be stored with Board;Submodule is regenerated if so, calling, if it is not, then calling first generation submodule;
Submodule is regenerated, for deleting the target spoke being previously generated, mesh is generated to the internet of things equipment again Mark token;
It is first to generate submodule, for generating target spoke to the internet of things equipment for the first time.
In one embodiment of the invention, further include:
Time exceeded message generation module is subscribed to, subscribing to the device resource for foundation waits for time-out, generates subscription time-out and disappears Breath;
Time exceeded message sending module is subscribed to, for the subscription time exceeded message to be sent to the business platform, to wait for The device resource of subscription.
In one embodiment of the invention, further include:
Successfully confirmation module is subscribed to, if the resource sent for receiving the internet of things equipment within the preset period Subscription response message then confirms and subscribes to the device resource success;
Success preserving module, for according to the device resource success is subscribed to, preserving the target spoke;
Success message generation module is subscribed to, for according to the device resource success is subscribed to, generating and subscribing to success message;
Success message sending module is subscribed to, for the subscription success message to be sent to the business platform, to wait for The device resource of subscription.
In one embodiment of the invention, further include:
Subscribing notification receiving module, the resource subscription notification message sent for receiving the internet of things equipment, the money Source subscribing notification message includes device resource and refer to token;
Token matched module, for matching the target spoke with reference to token with described;
Device resource sending module, for when successful match, the device resource to be sent to the business platform.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
In embodiments of the present invention, if business platform pulls subscription internet of things equipment device resource, Internet of Things is set It is standby to generate target spoke, the resource subscription request message for carrying target spoke and subscribing to device resource is sent to internet of things equipment, If not receiving the resource subscription response message that internet of things equipment sends resource subscription request message within the preset period, Then confirm that subscribing to device resource waits for time-out, waits for time-out according to device resource is subscribed to, target spoke is preserved, in internet of things equipment Generate resource subscription response message think to subscribe to successfully but do not send resource subscription response message it is successful in the case of, Internet of Things Platform thinks waiting time-out, still preserves target spoke so that internet of things equipment is with platform of internet of things when there is communication abnormality The state of subscription is consistent so that the device resource that follow-up internet of things equipment reports can be verified and report business flat Platform ensures the subscription success of device resource.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Resource subscription method to a kind of internet of things equipment provided by the present invention and a kind of money of internet of things equipment above Device is subscribed in source, is described in detail, and specific case used herein carries out the principle of the present invention and embodiment It illustrates, the explanation of above example is only intended to facilitate the understanding of the method and its core concept of the invention;Meanwhile for this field Those skilled in the art, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up Described, the content of the present specification should not be construed as limiting the invention.

Claims (10)

1. a kind of resource subscription method of internet of things equipment, which is characterized in that including:
Register internet of things equipment;
The device resource of the internet of things equipment if business platform pulls subscription generates target to the internet of things equipment and enables Board;
Disappear to the resource subscription request that the internet of things equipment sends the carrying target spoke and subscribes to the device resource Breath;
If not receiving the resource that the internet of things equipment sends the resource subscription request message within the preset period Subscription response message then confirms that subscribing to the device resource waits for time-out;
Time-out is waited for according to the device resource is subscribed to, preserves the target spoke.
2. according to the method described in claim 1, it is characterized in that, described generate target spoke, packet to the internet of things equipment It includes:
Judge whether to be stored with the target spoke formerly generated to the internet of things equipment;
If so, deleting the target spoke being previously generated, target spoke is generated to the internet of things equipment again;
If it is not, then generating target spoke to the internet of things equipment for the first time.
3. according to the method described in claim 1, it is characterized in that, further including:
Time-out is waited for according to the device resource is subscribed to, generates and subscribes to time exceeded message;
The subscription time exceeded message is sent to the business platform, to wait for the device resource subscribed to.
4. according to the method described in claim 1, it is characterized in that, further including:
If receiving the resource subscription response message that the internet of things equipment is sent within the preset period, confirms and subscribe to institute State device resource success;
According to the device resource success is subscribed to, the target spoke is preserved;
According to the device resource success is subscribed to, generates and subscribe to success message;
The subscription success message is sent to the business platform, to wait for the device resource subscribed to.
5. method according to claim 1 or 2 or 3 or 4, which is characterized in that further include:
The resource subscription notification message that the internet of things equipment is sent is received, the resource subscription notification message includes equipment money Source with refer to token;
The target spoke is matched with described with reference to token;
When successful match, the device resource is sent to the business platform.
6. a kind of resource subscription device of internet of things equipment, which is characterized in that including:
Facility registration module, for registering internet of things equipment;
Token generation module, if the device resource for the internet of things equipment that pulls subscription for business platform, to the Internet of Things Net equipment generates target spoke;
Request sending module is subscribed to, the target spoke and the subscription equipment are carried for being sent to the internet of things equipment The resource subscription request message of resource;
Overtime confirmation module is subscribed to, if being ordered to the resource for not receiving the internet of things equipment within the preset period The resource subscription response message for readding request message transmission then confirms that subscribing to the device resource waits for time-out;
Overtime preserving module, for according to the device resource waiting time-out is subscribed to, preserving the target spoke.
7. device according to claim 6, which is characterized in that the token generation module includes:
Token stores judging submodule, for judging whether to be stored with the target spoke formerly generated to the internet of things equipment; Submodule is regenerated if so, calling, if it is not, then calling first generation submodule;
Submodule is regenerated, for deleting the target spoke being previously generated, target is generated to the internet of things equipment again and is enabled Board;
It is first to generate submodule, for generating target spoke to the internet of things equipment for the first time.
8. device according to claim 6, which is characterized in that further include:
Time exceeded message generation module is subscribed to, for according to the device resource waiting time-out is subscribed to, generating and subscribing to time exceeded message;
Time exceeded message sending module is subscribed to, for the subscription time exceeded message to be sent to the business platform, is subscribed to waiting for Device resource.
9. device according to claim 6, which is characterized in that further include:
Successfully confirmation module is subscribed to, if the resource subscription sent for receiving the internet of things equipment within the preset period Response message then confirms and subscribes to the device resource success;
Success preserving module, for according to the device resource success is subscribed to, preserving the target spoke;
Success message generation module is subscribed to, for according to the device resource success is subscribed to, generating and subscribing to success message;
Success message sending module is subscribed to, for the subscription success message to be sent to the business platform, is subscribed to waiting for Device resource.
10. the device described according to claim 6 or 7 or 8 or 9, which is characterized in that further include:
Subscribing notification receiving module, the resource subscription notification message sent for receiving the internet of things equipment, the resource are ordered It includes device resource and refer to token to read notification message;
Token matched module, for matching the target spoke with reference to token with described;
Device resource sending module, for when successful match, the device resource to be sent to the business platform.
CN201810443341.4A 2018-04-24 2018-05-10 Resource subscription method and device for Internet of things equipment Active CN108712485B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810443341.4A CN108712485B (en) 2018-05-10 2018-05-10 Resource subscription method and device for Internet of things equipment
PCT/CN2018/113514 WO2019205557A1 (en) 2018-04-24 2018-11-01 Resource subscription for internet of things device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810443341.4A CN108712485B (en) 2018-05-10 2018-05-10 Resource subscription method and device for Internet of things equipment

Publications (2)

Publication Number Publication Date
CN108712485A true CN108712485A (en) 2018-10-26
CN108712485B CN108712485B (en) 2019-12-20

Family

ID=63867912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810443341.4A Active CN108712485B (en) 2018-04-24 2018-05-10 Resource subscription method and device for Internet of things equipment

Country Status (1)

Country Link
CN (1) CN108712485B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019205557A1 (en) * 2018-04-24 2019-10-31 海信集团有限公司 Resource subscription for internet of things device
CN108712485B (en) * 2018-05-10 2019-12-20 海信集团有限公司 Resource subscription method and device for Internet of things equipment
CN111125648A (en) * 2018-11-01 2020-05-08 大唐移动通信设备有限公司 Equipment change method and device
CN111260304A (en) * 2019-11-26 2020-06-09 上海赛连信息科技有限公司 Trial account management and issuing method and device
CN111474902A (en) * 2020-03-30 2020-07-31 新疆天地集团有限公司 Intelligent control system applied to aerial villa building structure
CN112199210A (en) * 2020-09-21 2021-01-08 中国建设银行股份有限公司 Data processing method and device based on Internet of things, computer equipment and medium
CN112448822A (en) * 2019-09-02 2021-03-05 华为技术有限公司 Cross-network awakening method and related equipment
CN112905320A (en) * 2021-02-05 2021-06-04 北京邮电大学 System, method and device for executing tasks of Internet of things
WO2021134757A1 (en) * 2020-01-02 2021-07-08 Oppo广东移动通信有限公司 Method and device for exchanging information with user
CN113163029A (en) * 2021-05-20 2021-07-23 厦门亿联网络技术股份有限公司 Network session account deployment method, device, terminal, server and storage medium
CN115460211A (en) * 2021-06-07 2022-12-09 中移物联网有限公司 Information interaction method and device
WO2023115585A1 (en) * 2021-12-24 2023-06-29 Oppo广东移动通信有限公司 Subscription configuration method and apparatus, computer device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130276144A1 (en) * 2012-04-11 2013-10-17 Intermec Ip Corp. Wireless sensor field enumeration
CN103780663A (en) * 2012-10-26 2014-05-07 中兴通讯股份有限公司 Terminal peripheral remote management method, device and system
CN105656768A (en) * 2014-11-14 2016-06-08 北京海尔广科数字技术有限公司 Method for improving resource utilization rate of Alloyn gateway and Alloyn gateway
US20160212099A1 (en) * 2015-01-16 2016-07-21 Zingbox, Ltd. Private cloud control
CN107018147A (en) * 2017-05-09 2017-08-04 上海斐讯数据通信技术有限公司 A kind of Internet of Things communication means and system, gateway module

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712485B (en) * 2018-05-10 2019-12-20 海信集团有限公司 Resource subscription method and device for Internet of things equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130276144A1 (en) * 2012-04-11 2013-10-17 Intermec Ip Corp. Wireless sensor field enumeration
CN103780663A (en) * 2012-10-26 2014-05-07 中兴通讯股份有限公司 Terminal peripheral remote management method, device and system
CN105656768A (en) * 2014-11-14 2016-06-08 北京海尔广科数字技术有限公司 Method for improving resource utilization rate of Alloyn gateway and Alloyn gateway
US20160212099A1 (en) * 2015-01-16 2016-07-21 Zingbox, Ltd. Private cloud control
CN107018147A (en) * 2017-05-09 2017-08-04 上海斐讯数据通信技术有限公司 A kind of Internet of Things communication means and system, gateway module

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019205557A1 (en) * 2018-04-24 2019-10-31 海信集团有限公司 Resource subscription for internet of things device
CN108712485B (en) * 2018-05-10 2019-12-20 海信集团有限公司 Resource subscription method and device for Internet of things equipment
CN111125648A (en) * 2018-11-01 2020-05-08 大唐移动通信设备有限公司 Equipment change method and device
CN111125648B (en) * 2018-11-01 2022-03-29 大唐移动通信设备有限公司 Equipment change method and device
CN112448822B (en) * 2019-09-02 2022-03-01 华为云计算技术有限公司 Cross-network awakening method and related equipment
CN112448822A (en) * 2019-09-02 2021-03-05 华为技术有限公司 Cross-network awakening method and related equipment
CN111260304A (en) * 2019-11-26 2020-06-09 上海赛连信息科技有限公司 Trial account management and issuing method and device
CN111260304B (en) * 2019-11-26 2024-03-08 上海赛连信息科技有限公司 Trial account management and issuing method and device
CN114651434A (en) * 2020-01-02 2022-06-21 Oppo广东移动通信有限公司 Method and device for information interaction with user
WO2021134757A1 (en) * 2020-01-02 2021-07-08 Oppo广东移动通信有限公司 Method and device for exchanging information with user
CN111474902A (en) * 2020-03-30 2020-07-31 新疆天地集团有限公司 Intelligent control system applied to aerial villa building structure
CN112199210A (en) * 2020-09-21 2021-01-08 中国建设银行股份有限公司 Data processing method and device based on Internet of things, computer equipment and medium
CN112905320A (en) * 2021-02-05 2021-06-04 北京邮电大学 System, method and device for executing tasks of Internet of things
CN113163029A (en) * 2021-05-20 2021-07-23 厦门亿联网络技术股份有限公司 Network session account deployment method, device, terminal, server and storage medium
CN113163029B (en) * 2021-05-20 2023-06-30 厦门亿联网络技术股份有限公司 Network session account deployment method, device, terminal, server and storage medium
CN115460211A (en) * 2021-06-07 2022-12-09 中移物联网有限公司 Information interaction method and device
WO2023115585A1 (en) * 2021-12-24 2023-06-29 Oppo广东移动通信有限公司 Subscription configuration method and apparatus, computer device, and storage medium

Also Published As

Publication number Publication date
CN108712485B (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN108712485A (en) A kind of resource subscription method and apparatus of internet of things equipment
US11444986B2 (en) Device triggering
CN104145466A (en) Method and apparatus for dynamic server|client controlled connectivity logic
WO2019205557A1 (en) Resource subscription for internet of things device
CN107360247B (en) The method and the network equipment of processing business
CN103023727B (en) Portal Performance Test System and method
CN106357609A (en) User creation method and system, public network server and private cloud equipment
WO2020011026A1 (en) Terminal application control method, apparatus, and system
CN105227403B (en) A kind of OpenStack network flow monitoring methods
CN109729122A (en) Determine the method and device of ethernet mac address
CN113965904A (en) Device registration method, device and storage medium
Cai et al. Design and implementation of a WiFi sensor device management system
CN104301294A (en) DNS query request response method and device and network side equipment
CN105163335B (en) A kind of network access management method, server, mobile terminal and system
WO2017165999A1 (en) Network service implementation method, service controller, and communication system
CN111434100B (en) Apparatus, method, and computer-readable storage medium for data transceiving with IoT devices
CN112804277A (en) Load control information sending method, device, equipment and storage medium
JP6509413B1 (en) Device, method and program for transmitting and receiving data with IoT device
CN114268856B (en) Method for communication between three-phase intelligent gateway and control master station
EP3043529A1 (en) System, method, and server for keeping wireless local area network terminal online all the time
US10356581B2 (en) Login processing method and device of machine-to-machine/man communication terminal equipment
CN117114678A (en) Secure payment method performed in tag device, and payment apparatus
CN117319993A (en) Information transmission method and device and electronic equipment
CN116546658A (en) Terminal user tracing method and device, computer storage medium and electronic equipment
CN109981660A (en) A kind of information processing method, electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant