Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
Fig. 3 is Internet of Things according to an embodiment of the present invention using the integrated approach flow chart with third party's service, such as Fig. 3 institute
Show, this method mainly includes the following steps that (step S302- step S304):
Step S302, Internet of Things application proxy judge whether needs and third according to the business demand inside Internet of things system
Side's service is communicated.
Step S304, in the case where the judgment result is yes, Internet of Things application proxy are communicated with third party's service, no
Then, business demand is sent to Internet of Things application platform and handled by Internet of Things application proxy.
In the present embodiment, business demand can be the first business demand from Internet of Things application proxy or come from Internet of Things
Second business demand of net application platform, wherein the second business demand is to be sent to by user by Internet of Things application control platform
Internet of Things application platform.
In the present embodiment, when business demand is the first business demand,
Internet of Things application proxy is judged whether to need to carry out communicating this with third party's service according to the first business demand
For one step, it can be implemented by following implementation steps:
(1) judged in Internet of Things application proxy when Internet of Things application proxy arrives at the scheduled time with the presence or absence of for triggering
The application logic of Internet of Things application flow, wherein correspond to the first business demand using logic;
(2) there is no using logic, Internet of Things application proxy judge whether to need and third party's service into
Row communication;
Based on this, for the step for Internet of Things application proxy is communicated with third party's service, can by with
Lower embodiment is realized:
In the case where Internet of Things application proxy determines to need to be communicated with third party's service, Internet of Things application proxy is straight
It connects and is communicated with third party's service.
In the present embodiment, when business demand is the second business demand,
Internet of Things application proxy is judged whether to need to carry out communicating this with third party's service according to the second business demand
For one step, it can be realized by following implementation:
Internet of Things application proxy judges whether the corresponding business of the second business demand meets preset and third party's service and hand over
Mutual type of service;That is, deciding that Internet of Things is answered when the corresponding business of the second business demand meets the type of service
It needs to be communicated with third party's service with agency, when the corresponding business of the second business demand does not meet the type of service, just
Determine that Internet of Things application proxy does not need to be communicated with third party's service;
Based on this, for the step for Internet of Things application proxy is communicated with third party's service, can by with
Lower embodiment is realized: the case where the corresponding business of the second business demand meets type of service (namely Internet of Things application proxy
Need to be communicated with third party's service) under, Internet of Things application proxy is directly communicated with third party's service, or assists object
Working application platform is communicated with third party's service.
In practical applications, it in order to realize that above-mentioned Internet of Things applies the integrated approach with third party's service, needs using one
A implementation system, in the system other than the Internet of Things application proxy and Internet of Things application platform that are related in the above method,
Usually also need Internet of Things application control platform and platform of internet of things.Wherein, Internet of Things application proxy, Internet of Things application platform with
And platform of internet of things can be collectively referred to as Internet of Things application, it should be noted that, can be to object in order to facilitate the realization of the above method
Working application is developed in advance.
It is simply introduced below with reference to the development process applied to Internet of Things.
Fig. 4 is the development process figure of Internet of Things application according to an embodiment of the present invention, as shown in figure 4, development process master
Include the following steps (step S402- step S416):
Step S402, developer D1 carry out the developing plug in M2M application proxy, wherein the plug-in unit may be implemented M2M and answer
With the interaction and interrelated logic processing between console and third party's service and M2M application platform, step S404 is executed;
The plug-in unit that exploitation is completed is loaded into M2M application proxy by step S404, developer D1, at this point, M2M application proxy
Have the ability communicated with corresponding third party's service and M2M application platform, and interface can be provided for M2M application control
Platform calls, and executes step S410;
Step S406, developer D2 carry out opening for M2M application flow in M2M application platform, using application build environment
Hair executes step S408;
The M2M application flow that exploitation is completed is loaded into application execution environment by step S408, developer D1, at this point, M2M
Application platform has the specific M2M application flow execution of offer one and service ability, executes step S410;
Step S410, judges whether M2M application proxy has external service ability, i.e., M2M application flow and M2M apply generation
Plug-in unit is managed whether all in accessible state (or can provide service state), if it is judged that being "Yes", is entered step
S414, otherwise, waiting condition are further continued for executing subsequent step after having;
Step S412, developer D3 develop M2M application control platform, enter step S414;
Optionally, this step can execute parallel with step S402, and convergence waiting is carried out before step S410, works as step
When the judging result of S410 is "Yes", S414 is entered step;
Step S414, M2M application control platform, M2M application proxy plug-in unit and M2M application flow carry out joint debugging, and joint debugging is completed
Afterwards, S416 is entered step.
Step S416, development process terminate, at this point, M2M application can externally provide complete service, can also carry out
M2M terminal disposition and M2M application on-line running.
Above-mentioned Internet of Things is applied below with reference to Fig. 5, preferred embodiment shown in fig. 6 and the integrated approach of third party's service
It is described in detail.
Fig. 5 is that the Internet of Things of preferred embodiment one according to the present invention applies the integrated approach flow chart with third party's service,
As shown in figure 5, the process mainly includes the following steps that (step S502- step S514):
Step S502, terminal user log in M2M application control platform, are operated, and send M2M application for operation information
Agency;
After step S504, M2M application proxy receives message, the Message Processing process in M2M application plug-in is triggered;
It should be noted that M2M application proxy can be the case where not receiving the message of M2M application control platform transmission
Under, according to the plug-in unit logical definition in M2M application proxy, automatic trigger process flow answer with third party's service or M2M
With platform interaction;
Step S506, M2M application proxy judged, if message belongs to triggering M2M application flow, just by message into
It is sent to M2M application platform after the processing of one step, S510 is entered step, if message belongs to needs and third party's service interacts
, then M2M application proxy is after further, disappear with the interface and third party's service provided by third party's service
Breath interaction, enters step S508;
Step S508, third party's service receive the message that M2M application proxy sends over, and carry out at correlation to message
Reason, and processing result is returned to M2M application proxy;
After step S510, M2M application platform receives the message of M2M application proxy transmission, executes corresponding Internet of Things and answer
With process, wherein need and M2M platform carries out interacting message;
It after step S512, M2M platform receives the message of M2M application platform transmission, performs corresponding processing, if necessary to send out
Terminal is given, then sends a message to terminal, if you do not need to being sent to terminal, then completion is handled inside M2M application platform;
Step S514, M2M terminal completes specified operation according to the message received.
Fig. 6 is that the Internet of Things of preferred embodiment two according to the present invention applies the integrated approach flow chart with third party's service,
In the present embodiment, third party's service can be provided based on HTTPS authentication service and timed events configuration service.As shown in fig. 6,
The process mainly includes the following steps that (step S602- step S626):
Step S602, terminal user log in M2M application control platform;
Step S604, terminal user operate, and send M2M application proxy for operation information mode in a manner of HTTP;
After step S606, M2M application proxy receives message, the corresponding plug-in unit of triggering M2M application proxy carries out message
Processing;
Plug-in unit in step S608, M2M application proxy judges whether message needs to access third party's clothes after handling message
Business enters step S610, if message is not belonging to and third party if message belongs to needs and third party's service interacts
Service interaction, M2M application platform is just sent a message to after further, enters step S620;
Step S610, M2M application proxy is based on HTTPS, according to the authentication rules of third party's service, completes and third party takes
Then the authentication process of business is redirected to third party's service, or match with Internet of Things application platform together with third party into
Row information interaction, and the operation interface of third party's service is returned into the M2M that user is operating in a manner of http response and is answered
With console, S612 is entered step;
Step S612, user log on third party's service, carry out the configuration of M2M application flow clocked flip event, enter
Step S626;
Plug-in unit timer-controlled self-inspection in step S614, M2M application proxy, enters step S616;
The plug-in unit of step S616, M2M application proxy judges whether the triggering M2M application flow task of starting in need, such as
Fruit has, then enters step S620, if not provided, entering step S618;
Step S617 judges whether to need to access third party, if it is, entering step S618, otherwise, enters step
S614;
Plug-in unit in step S618, M2M application proxy obtains from third party's service and matches according to the rule of third party's service
The timed events list set, and processing forms the clocked flip task that plug-in unit can identify in M2M application proxy, enters step
S614;
The information that the processing of step S620, M2M application proxy receives, and it is assembled into triggering M2M application flow again
WebService message, is sent, and S622 is entered step;
After step S622, M2M platform receives the message of M2M application platform transmission, perform corresponding processing, then by message
It is sent to M2M terminal, enters step S624;
Step S624, M2M terminal completes specified operation according to the message received, and process terminates, and enters step S626;
Step S626, process terminate.
Integrated approach with third party's service, Internet of Things application proxy energy are applied using Internet of Things provided by the above embodiment
It is enough to decide whether to be communicated with third party's service according to the business demand in system, so that Internet of things system and third party be taken
Business organically combines, and solves the ability of Internet of Things application platform access external system and third party in the prior art and takes
Be engaged in interface mismatch, the larger problem of development difficulty of Internet of Things application, and then reached and enhanced Internet of Things application access the
The ability of tripartite's service simplifies the effect of the exploitation of Internet of Things application.
Internet of Things application proxy provided in an embodiment of the present invention is described in detail below with reference to Fig. 7 and Fig. 8.
Fig. 7 is the structural block diagram of Internet of Things application proxy according to an embodiment of the present invention, as shown in fig. 7, the Internet of Things is answered
Judgment module 10 is specifically included that with agency, for judging whether needs and third according to the business demand inside Internet of things system
Side's service is communicated;Execution module 20 is connected to judgment module 10, is the case where being for the judging result in judgment module
Under, it is communicated with third party's service, otherwise, business demand is sent to Internet of Things application platform and is handled.
In the present embodiment, business demand are as follows: the first business demand from Internet of Things application proxy comes from Internet of Things
Second business demand of application platform, wherein the second business demand is to be sent to object by Internet of Things application control platform by user
Working application platform.
Fig. 8 is the structural block diagram of Internet of Things application proxy according to the preferred embodiment of the invention, as shown in figure 8, excellent at this
In the Internet of Things application proxy for selecting embodiment to provide, judgment module 10 may include: the first judging unit 12, in pre- timing
It is carved into the application logic judged whether there is when coming for trigger working application process, wherein correspond to first using logic
Business demand;Second judgment unit 14 is connected to the first judging unit 12, for sentencing there is no using logic
It is disconnected whether to need to be communicated with third party's service;Execution module 20 may include: the first communication unit 22, for sentencing second
The judging result of disconnected unit is in the case where being, directly to be communicated with third party's service.
In the Internet of Things application proxy that the preferred embodiment provides, judgment module 10 can also include: that third judgement is single
Member 16, for judging whether the corresponding business of the second business demand meets the preset type of service interacted with third party's service;
Execution module 20 can also include: the second communication unit 24, for meeting type of service in the corresponding business of the second business demand
In the case where, it is directly communicated with third party's service, or Internet of Things application platform is assisted to be communicated with third party's service.
Using Internet of Things application proxy provided by the above embodiment, can be decided whether according to the business demand in system with
Third party's service is communicated, so that Internet of things system organically be combined with third party's service, solves existing skill
The ability of Internet of Things application platform access external system and the exploitation that third party's service interface mismatches, Internet of Things is applied are difficult in art
Larger problem is spent, and then has reached and has enhanced the ability of Internet of Things application access third party's service, simplifies Internet of Things application
Exploitation effect.
Internet of Things provided in an embodiment of the present invention is applied below with reference to Fig. 9 to Figure 14 and the integrated system of third party's service
It is in detail.
Fig. 9 is structural block diagram of the Internet of Things according to an embodiment of the present invention using the integrated system with third party's service, should
System is applied realizing Internet of Things provided by the above embodiment and the integrated approach of third party's service, include in system Fig. 7 and
(in Fig. 9, numbered is 92), as shown in figure 9, the system specifically includes that Internet of Things to Internet of Things application proxy shown in Fig. 8
Application proxy 92, Internet of Things application control platform 94 and Internet of Things application platform 96.Wherein, Internet of Things application proxy 92 is main
Function has been described in detail in the above-mentioned explanation for Internet of Things application proxy, therefore is no longer repeated herein, mainly
It is stressed for Internet of Things application control platform 94 and Internet of Things application platform 96.Internet of Things application control platform 94, is used for
The second business demand that user inputs is handed down to Internet of Things application platform 96;Internet of Things application platform 96 is used for the second industry
Business demand is sent to Internet of Things application proxy 92;It is answered with for meeting preset Internet of Things in the corresponding business of the second business demand
In the case where acting on behalf of the type of service that 92 interact with third party's service, the assistance of accepted thing working application agency 92 and third party
Service is communicated, and in the case where the corresponding business of the second business demand does not meet type of service, triggers the Internet of Things of oneself
Application flow;And for there are the feelings using logic for trigger working application process in Internet of Things application proxy 92
Under condition, the Internet of Things application flow of oneself is triggered, wherein correspond to the first business demand using logic.
Figure 10 is that Internet of Things according to the preferred embodiment of the invention is applied and the structure of the integrated system of third party's service is shown
Be intended to, as shown in Figure 10, the system of the preferred embodiment can with platform of internet of things 98, in the system of the preferred embodiment,
Internet of Things application platform 96 is also used to after triggering oneself Internet of Things application flow, will correspond to the of the first business demand
One business information or the second business information corresponding to the second business demand are handed down to platform of internet of things 98 after being packaged;Internet of Things
Net platform 98, for receiving and issuing the first business information and the second business information after Internet of Things application platform encapsulates.
Certainly, the integrated system of Fig. 9, Internet of Things shown in Fig. 10 application and third party's service are only a kind of preferred implementation
Mode, it is not limited to which this, in practical applications, above-mentioned Internet of Things is applied and the integrated system of third party's service can be with
It is realized by other constituted modes.
For example, it is also possible to constitute above-mentioned Internet of Things application and third party's service to mode illustrated in fig. 14 using Figure 11
Integrated system.
Figure 11 is that the Internet of Things of a preferred embodiment according to an embodiment of the present invention applies the collection with third party's service
At the structural schematic diagram of system, as shown in figure 11, which specifically includes that M2M terminal, M2M platform, M2M application platform, third
Side's service, M2M application proxy and M2M application control platform.
Wherein, M2M terminal is connected with M2M platform, for perceive environmental information and and M2M platform progress information exchange, M2M
Terminal is also used to receive and dispatch management and using data.
M2M platform is connected with M2M terminal, M2M application platform, for being managed to M2M terminal, M2M application platform, also
It can be used as the data channel between M2M terminal and M2M application platform, M2M platform can also support M2M terminal, M2M application flat
The registration and state-detection of platform, M2M platform can also provide service interface for M2M application platform, to provide object M2M ability, into
And M2M application platform can be interacted by the service interface and M2M terminal for calling M2M platform.
In the present embodiment, M2M application platform, third party's service, M2M application proxy and M2M application control platform can be with
Collectively constitute complete M2M application.
M2M application platform and M2M platform, M2M application proxy are connected, and are used between M2M platform logical based on M2M agreement
Letter, the application flow for receiving the transmission of M2M application proxy trigger information, can be by M2M communication ability, IT ability, telecommunications energy
At least one of power, operational capability, external system access ability are packaged into component, and M2M platform provides component capacity of arranging movements, group
M2M application flow is formed after part layout, M2M application platform is for managing and executing M2M application flow;In M2M application platform
Application flow can be flowed according to M2M application platform from regular access third party's service according still further to from regular realization application
The triggering of journey.Herein, there are two types of own meanings: (1) interaction protocol is determining, i.e., certain determine rule (for example,
BPEL, WebService, HTTP etc.);(2) process of interaction is determining;In M2M application platform, using build environment master
It is used for using layout, application execution environment is mainly used for the load and execution of application.
Wherein, M2M application proxy and M2M application control platform, third party's service, M2M application platform are connected, and are used for Internet of Things
Using the succession with third party's service, M2M application proxy can extend the function of M2M application platform, comprising: M2M application control
Platform is interacted by M2M application proxy and third party's service;M2M application control platform triggers M2M application by M2M application proxy
Application flow in platform;M2M application control platform passes through M2M application proxy and the interaction of M2M application platform.
Figure 12 is that the Internet of Things of another preferred embodiment according to an embodiment of the present invention is applied and third party's service
The structural schematic diagram of integrated system in the system shown in Figure 12, can load and execute several and insert in M2M application proxy
Part, a plug-in unit and an Internet of Things application control platform are corresponding, plug-in unit and M2M application control platform, third party's service, M2M application
Platform connection.Plug-in unit has customized logic executive capability, the processing capacity of third party's service returned data, M2M application stream
The abilities such as the communication of ability and M2M application platform of processing capacity and third party's service communication of journey returned data.M2M application
Console passes through plug-in unit and third party's service, the interaction of M2M application platform.
Figure 13 is that the Internet of Things of another preferred embodiment according to an embodiment of the present invention is applied and third party's service
The structural schematic diagram of integrated system in the system shown in Figure 13, can load and execute several and insert in M2M application proxy
Part, a plug-in unit and an Internet of Things application control platform are corresponding, plug-in unit and M2M application control platform, third party's service, M2M application
Platform connection;M2M application control platform can pass through plug-in unit and third party's service, the interaction of M2M application platform;Multiple M2M application controls
Platform processed can carry out information exchange by plug-in unit.
Figure 14 is that the Internet of Things of another preferred embodiment according to an embodiment of the present invention is applied and third party's service
The structural schematic diagram of integrated system in the system shown in Figure 14, loads and executes several plug-in units in M2M application proxy, and one
A plug-in unit and a M2M application control platform are corresponding, plug-in unit and application control platform message processing module, third party's service Message Processing
Module, platform message processing module are connected, and M2M application proxy can be applied by application control platform message processing module and M2M
Console carries out interacting message, can also carry out interacting message by third party's service message processing module and third party's service,
Interacting message can also be carried out by platform message processing module and M2M application platform.Pass through the embodiment, M2M application proxy
Unified interacting message mode is externally provided, while reducing the development difficulty of plug-in unit.
Wherein, M2M application control platform can be used under M2M application or Third-Party Service sending instructions, for opening up
Now or maintenance M2M application data, M2M application control platform are used for the user management M2M application of M2M terminal, browsing
The interface application of M2M application data is the operation interface of human-computer interaction in M2M application.M2M application control platform can be shown as
WEB, mobile terminal application, IPTV operation interface, the forms such as pc client operation interface.
Integrated system with third party's service, Internet of Things application proxy energy are applied using Internet of Things provided by the above embodiment
It is enough to decide whether to be communicated with third party's service according to the business demand in system, so that Internet of things system and third party be taken
Business organically combines, and solves the ability of Internet of Things application platform access external system and third party in the prior art and takes
Be engaged in interface mismatch, the larger problem of development difficulty of Internet of Things application, and then reached and enhanced Internet of Things application access the
The ability of tripartite's service simplifies the effect of the exploitation of Internet of Things application.
It can be seen from the above description that the present invention realizes following technical effect: in existing Internet of things system and
An Internet of Things application proxy is added between tripartite's service, Internet of Things application proxy can be determined according to the business demand in system
Whether communicated with third party's service, so that Internet of things system organically be combined with third party's service, is solved
The ability of Internet of Things application platform access external system and third party's service interface mismatch in the prior art, Internet of Things is applied
The larger problem of development difficulty, can obtain following effect: (1) enhancing the ability of M2M application access third party's service;(2)
It is disposed by layering, simplifies the exploitation of M2M application control platform, can be opened respectively using different team according to the actual situation
Send out M2M application control platform, the plug-in unit in M2M application proxy, M2M application flow, especially when needing to access third party's service,
M2M application control platform developer can quickly develop various M2M application control platforms according to the needs of terminal user;(3) pass through
The processing logic that M2M application flow is triggered, is encapsulated into the plug-in unit of M2M application proxy, further simplifies M2M application control
The exploitation of platform.And then reached and enhanced the ability of Internet of Things application access third party's service, simplify the exploitation of Internet of Things application
Purpose.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.