Summary of the invention
Management method for the internet-of-things terminal in correlation technique add operation complexity, increased the weight of the load of platform of internet of things problem and the present invention is proposed, for this reason, main purpose of the present invention is the management method and the platform of internet of things equipment that provide a kind of internet-of-things terminal group.
To achieve these goals, according to an aspect of the present invention, provide a kind of management method of internet-of-things terminal group, it comprises: platform of internet of things receives the group operation requests message from Internet of Things application, wherein, title and the operation information that operation requests message carries internet-of-things terminal group to be operated is organized; Platform of internet of things obtains the information of each internet-of-things terminal in tool denominative internet-of-things terminal group; Platform of internet of things is to the operation indicated by each internet-of-things terminal executable operations information.
Further, platform of internet of things comprises the operation indicated by each internet-of-things terminal executable operations information: platform of internet of things connects with each internet-of-things terminal respectively according to the address information of each internet-of-things terminal, wherein, the information of each internet-of-things terminal at least comprises the address information of each internet-of-things terminal; Platform of internet of things performs the operation indicated by operation information to each internet-of-things terminal, wherein, operation comprise following one of at least: read operation, write operation, retouching operation, executable operations.
Further, before platform of internet of things receives the group operation requests message from Internet of Things application, also comprise: platform of internet of things receives builds group request message from Internet of Things application, wherein, build the group name that group request message carries internet-of-things terminal group to be set up and claim and group membership's information; Platform of internet of things judges that group name claims whether to be used; If do not used, then platform of internet of things is set up and is stored the information of internet-of-things terminal group, and wherein, the information of internet-of-things terminal group at least comprises: group name claims and group membership's information.
Further, before platform of internet of things receives the group operation requests message from Internet of Things application, also comprise: platform of internet of things receives builds group request message from Internet of Things application, wherein, build the group name that group request message carries internet-of-things terminal group to be set up and claim and group membership's information; Platform of internet of things judges whether Internet of Things application has the authority of building group; If do not have authority, then platform of internet of things returns to Internet of Things application and builds group request failure response; If have authority, then platform of internet of things judges that group name claims whether to be used; If do not used, then platform of internet of things is set up and is stored the information of internet-of-things terminal group, and wherein, the information of internet-of-things terminal group at least comprises: group name claims and group membership's information.
Further, group membership's information comprises: the mark of each internet-of-things terminal in internet-of-things terminal group to be set up, and the information of internet-of-things terminal group also comprises: the address information of internet-of-things terminal corresponding with the mark of internet-of-things terminal respectively.
Further, platform of internet of things receive from Internet of Things application build group request message after, also comprise: platform of internet of things receives the fabric anomaly request message from Internet of Things application, and wherein, the group name that fabric anomaly request message carries internet-of-things terminal group to be managed claims and management information; Platform of internet of things obtains the information claiming corresponding internet-of-things terminal group with the group name of internet-of-things terminal group to be managed; The information of platform of internet of things to the internet-of-things terminal group obtained carries out the bookkeeping indicated by management information.
Further, platform of internet of things comprises the bookkeeping that the information of internet-of-things terminal group obtained carries out being indicated by management information: the information of platform of internet of things to the internet-of-things terminal group obtained is carried out the checking of the group membership's information indicated by management information, deleted or retouching operation.
To achieve these goals, according to a further aspect in the invention, provide the management method of another kind of internet-of-things terminal group, it comprises: the enable GMNAE module of the general M2M network application in platform of internet of things receives the fabric anomaly request message from Internet of Things application; Fabric anomaly request message is sent to address in platform of internet of things and device application memory device RADAR module by GMNAE module; RADAR module performs the operation indicated by fabric anomaly request message; Operating result is returned to Internet of Things application by GMNAE module by RADAR module.
Further, the group name that fabric anomaly request message carries internet-of-things terminal group to be managed claims and management information, and RADAR module performs the operation indicated by fabric anomaly request message and comprises: RADAR module obtains the information with the internet-of-things terminal group that group name claims; The operation that RADAR module is indicated by management information the information and executing of internet-of-things terminal group obtained, wherein, operation comprise following one of at least: checking, delete or revising group membership's information.
Further, fabric anomaly request message carries: the group name of internet-of-things terminal group to be created claims, group membership's information, and RADAR module performs the operation indicated by fabric anomaly request message and comprises: RADAR module creation has group name and claims the information with the internet-of-things terminal group of group membership's information.
To achieve these goals, according to another aspect of the invention, provide a kind of platform of internet of things equipment, it comprises: the first receiver module, for receiving the group operation requests message from Internet of Things application, wherein, title and the operation information that operation requests message carries internet-of-things terminal group to be operated is organized; First acquisition module, for obtaining the information of each internet-of-things terminal in tool denominative internet-of-things terminal group; First processing module, for the operation indicated by each internet-of-things terminal executable operations information.
Further, the said equipment also comprises: the second receiver module, builds group request message for receiving from Internet of Things application, wherein, builds the group name that group request message carries internet-of-things terminal group to be set up and claims and group membership's information; First judge module, for judging that group name claims whether to be used; Set up memory module, for claiming at group name to set up when not used and storing the information of internet-of-things terminal group, wherein, the information of internet-of-things terminal group at least comprises: group name claims and group membership's information.
Further, the said equipment also comprises: the second judge module, for platform of internet of things receive from Internet of Things application build group request message after judge Internet of Things application whether there is the authority of building group; Sending module, builds group request failure response for returning to Internet of Things application when judging that Internet of Things application does not have authority.
Further, the said equipment also comprises: the 3rd receiver module, and for receiving the fabric anomaly request message from Internet of Things application, wherein, the group name that fabric anomaly request message carries internet-of-things terminal group to be managed claims and management information; Second acquisition module, for obtaining the information claiming corresponding internet-of-things terminal group with the group name of internet-of-things terminal group to be managed; Second processing module, for the bookkeeping carrying out being indicated by management information to the information of the internet-of-things terminal group obtained.
The present invention has following beneficial effect:
1) Internet of Things application performs identical operation by platform of internet of things to each internet-of-things terminal belonged in same internet-of-things terminal group, reduces the complexity of operation, and alleviates the load of platform of internet of things;
2) by managing the information of the internet-of-things terminal group in platform of internet of things, the information setting up, revise, delete different internet-of-things terminal groups can be realized, thus different Internet of Things application can be adapted to, add the flexibility of system.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Be described below in conjunction with accompanying drawing 1 pair of Internet of things system.As shown in Figure 1, comprise according to the Internet of things system of the embodiment of the present invention: M2M application module 102, platform of internet of things 104 and M2M terminal 106.
In the present embodiment, platform of internet of things 104 (also referred to as M2M professional ability module) each terminal to Internet of Things, carry out control and management, sensing data can be received, and these data are processed, be supplied to the application of concrete Internet of Things, meanwhile, also possess the functions such as safety, charging, network management.
According to the specification of ETSI M2M, the platform of internet of things 104 of the present embodiment mainly comprises:
1) M2M equipment and gateway proxy (M2M Device and Gateway Proxy is called for short MDGP Proxy), it is used as not support that the M2M terminal of ETSI M2M specification is linked into the agent equipment of M2M application platform.In the present embodiment, this MDGP Proxy is optional equipment.
2) management (M2M Device and GatewayManagement the is called for short MDGM) module of M2M equipment and gateway, it has the functions such as performance management, fault management, configuration management.In the present embodiment, this MDGM module is essential equipment.
3) security capabilities (Security Capability, SC) module, it is for providing security service.In the present embodiment, this SC module is essential equipment.
4) address and device application memory device (Reachability Addressing andDevice Application Repository, be called for short RADAR), it is mainly used in address and the application message of store M 2M terminal, and safeguard the state of M2M terminal, can certain operations be triggered when state changes.In the present embodiment, this RADAR is essential equipment.
5) (Network and Communication ServiceSelection is selected in network and communication service, be called for short NCSS) module, when it communicates for there is multiple communication mode in platform of internet of things and terminal, provide the module of selection function according to network condition and demand.In the present embodiment, this NCSS module is essential equipment.
6) transaction management (Transaction Management is called for short TM) module, it is for defining affairs, and when affairs do not complete, can carry out the operations such as rollback.In the present embodiment, this TM module is optional equipment.
7) history data store (History and Data Retention is called for short HDR) module, it is for store historical data.In the present embodiment, this HDR module is optional equipment.
8) general M2M network application enable (Generic M2M Network ApplicationEnablement is called for short GMNAE) module, it is the communication interface between platform of internet of things and M2M application module.
9) general M2M equipment application enabled (Generic M2M Device ApplicationEnablement is called for short GMDAE) module, it is the communication interface between platform of internet of things and M2M terminal.
In the present embodiment, M2M application module 102 is the specific services of the M2M generated by platform of internet of things 104.
In the present embodiment, M2M terminal 106 comprises M2M equipment and M2M gateway, this M2M terminal 106 primary responsibility data acquisition, report, the function such as receiving management.
In embodiments of the present invention, mainly improve the communication mechanism between above-mentioned M2M application module 102 and M2M terminal 106, namely Internet of Things application performs identical operation by platform of internet of things to each internet-of-things terminal belonged in same internet-of-things terminal group.The management method of the internet-of-things terminal group according to the embodiment of the present invention is described below in conjunction with accompanying drawing 2.
As shown in Figure 2, mainly comprise the steps: according to the management method of the internet-of-things terminal group of the embodiment of the present invention
S202, platform of internet of things receives the group operation requests message from Internet of Things application, and wherein, group operation requests message carries title and the operation information of internet-of-things terminal group to be operated;
S204, platform of internet of things obtains the information of each internet-of-things terminal in tool denominative internet-of-things terminal group;
S206, platform of internet of things is to the operation indicated by each internet-of-things terminal executable operations information.
In the prior art, when multiple different internet-of-things terminal is operated, Internet of Things application needs to send multiple operation requests message to platform of internet of things, and platform of internet of things is when the operating result of receiver networked terminals, need to Internet of Things application return multiple operation response message, thus add operation complexity, increased the weight of the load of platform of internet of things.But, in embodiments of the present invention, Internet of Things application performs identical operation by platform of internet of things to each internet-of-things terminal belonged in same internet-of-things terminal group, like this, Internet of Things application only needs to send an operation requests message to platform of internet of things, and platform of internet of things returns an operation requests response when the operating result of the internet-of-things terminal of all requests of reception to Internet of Things application, thus reduce the complexity of operation, and alleviate the load of platform of internet of things.
Preferably, described platform of internet of things comprises the operation that described each internet-of-things terminal performs indicated by described operation information: described platform of internet of things connects with described each internet-of-things terminal respectively according to the address information of described each internet-of-things terminal, wherein, the information of described each internet-of-things terminal at least comprises the described address information of described each internet-of-things terminal; Described platform of internet of things performs to described each internet-of-things terminal the operation indicated by described operation information, wherein, described operation comprise following one of at least: read operation, write operation, retouching operation, executable operations.
Preferably, before described platform of internet of things receives the group operation requests message from Internet of Things application, what described platform of internet of things reception was applied from described Internet of Things builds group request message, wherein, build the group name that group request message carries internet-of-things terminal group to be set up described in claim and group membership's information; Described platform of internet of things judges that described group name claims whether to be used; If do not used, then described platform of internet of things is set up and is stored the information of internet-of-things terminal group, and wherein, the information of described internet-of-things terminal group at least comprises: described group name claims and described group membership's information.
In platform of internet of things, set up the information of internet-of-things terminal group by the way, thus can realize operating one group of internet-of-things terminal, reduce the complexity of operation.
Preferably, before described platform of internet of things receives the group operation requests message from Internet of Things application, what described platform of internet of things reception was applied from described Internet of Things builds group request message, wherein, build the group name that group request message carries internet-of-things terminal group to be set up described in claim and group membership's information; Described platform of internet of things judges whether the application of described Internet of Things has the authority of building group; If do not have authority, then described platform of internet of things returns to described Internet of Things application and builds group request failure response; If have authority, then described platform of internet of things judges that described group name claims whether to be used; If do not used, then described platform of internet of things is set up and is stored the information of internet-of-things terminal group, and wherein, the information of described internet-of-things terminal group at least comprises: described group name claims and described group membership's information.
By the way, the Internet of Things application access without mandate can be prevented, thus the flexible control of Internet of Things application can be realized.
Preferably, described group membership's information comprises: described in the mark of each internet-of-things terminal in internet-of-things terminal group to be set up, the information of described internet-of-things terminal group also comprises: the address information of internet-of-things terminal corresponding with the mark of described internet-of-things terminal respectively.
Preferably, described platform of internet of things receive from Internet of Things application build group request message after, described platform of internet of things receives the fabric anomaly request message from Internet of Things application, and wherein, the group name that described fabric anomaly request message carries internet-of-things terminal group to be managed claims and management information; Described platform of internet of things obtains the information claiming corresponding internet-of-things terminal group with the group name of described internet-of-things terminal group to be managed; The information of described platform of internet of things to the internet-of-things terminal group of described acquisition carries out the bookkeeping indicated by described management information.
By the way, can manage the information of the internet-of-things terminal group in platform of internet of things, such as, carry out amendment that group name claims, the amendment of group membership's information, increase or deletion, thus the management of the information to internet-of-things terminal group can be realized neatly.
Preferably, the bookkeeping that the information of described platform of internet of things to the internet-of-things terminal group of described acquisition carries out being indicated by described management information comprises: the information of described platform of internet of things to the internet-of-things terminal group of described acquisition is carried out the checking of the group membership's information indicated by described management information, deleted or retouching operation.
Foundation to internet-of-things terminal group, management and operation is described in detail below by accompanying drawing.
Fig. 3 is the preferred flow charts setting up internet-of-things terminal group according to the embodiment of the present invention.As shown in Figure 3, mainly comprise the following steps according to the method setting up internet-of-things terminal group of the embodiment of the present invention:
S302, M2M application sends internet-of-things terminal to GMNAE and sets up vertical request, and wherein, this foundation request can the group name of belongings networked terminals group claim and group membership's information.Preferably, group membership can comprise some marks of M2M equipment and M2M gateway, such as: port.Like this, different operations can be carried out when a certain M2M terminal has multiple port to different ports.Preferably, the mark of M2M application is generally also carried in above-mentioned foundation request.
S304, after request message is submitted to GMNAE, GMNAE judges whether this M2M application has authority, and judges whether unique the group name of asking claims.If M2M application has authority and the group name applied for claims not used, then carry out subsequent operation.If this M2M application does not have authority or the group name applied for claim to be used, then directly can return error message.After the information successfully setting up internet-of-things terminal group, the information of this M2M set of terminal is stored into RADAR by GMNAE.
Event memory returns by S306, RADAR.
Event memory is returned to M2M application by S308, GMNAE.
Fig. 4 is the preferred flow charts of the management internet-of-things terminal group according to the embodiment of the present invention.As shown in Figure 4, comprise according to the method for the management internet-of-things terminal group of the embodiment of the present invention:
S402, M2M application sends the management request of internet-of-things terminal group to GMNAE, wherein, this management request can comprise: check, deletion, retouching operation information.Preferably, M2M application identities is carried in management request.
S404, after management request is submitted to GMNAE, GMNAE checks the authorization conditions that this M2M applies.If there is no limiting operation, directly return request failure response.If had permission, then check accordingly to RADAR, delete, retouching operation.
S406, RADAR return result.
Result is returned to M2M application by S408, GMNAE.
Fig. 5 is the preferred flow charts of the operating article networked terminals group according to the embodiment of the present invention.As shown in Figure 5, comprise the steps: according to the method for the operating article networked terminals group of the embodiment of the present invention
S502, M2M application sends the operation requests of M2M set of terminal to GMNAE, wherein, this operation requests may be for certain read operation organized, write operation or amendment or executable operations etc.
Preferably, aforesaid operations request can carry M2M application identities, the group information of M2M set of terminal and concrete operation information.In addition, aforesaid operations request can also carry result echo plex mode and the need of transaction management.In the present embodiment, result echo plex mode can be directly return one by one, also can be that batch returns together; Refer to the need of transaction management: in this request, if some operation failures, whether carry out rolling back action.
S504, after aforesaid operations request is submitted to GMNAE, GMNAE to obtain the group membership's information in the M2M set of terminal of asking to RADAR according to solicited message.
Group membership's information returns by S506, RADAR.
S508, if need transaction, then GMNAE is operated M2M terminal by TM.Concrete, GMNAE is to TM transmit operation information.
Operation information is sent to each M2M terminal of institute's solicit operation by S510, TM.
S512, each M2M terminal, according to operation information executable operations, such as, reads the number of degrees etc. in ammeter.
S514, each M2M terminal returns operating result to TM.
S516, TM return operating result to GMNAE.
S518, if stored when needing data zero, batch is supplied to M2M application, then data send to HDR to store by GMNAE temporarily.
S520, carries out data preparation.Such as, the time of arrangement can be a timing, as just returned to certain hour, also can be see that all terminals all return.The mode of disposal data is returned the mode that data are wished with M2M application, if need batch to return, then carries out assigned operation to data.For the presumable part failure result in the inside, also information is returned to M2M application.
Operating result is returned to M2M application by S522, GMNAE.
Fig. 2 shows the management method of a kind of preferred internet-of-things terminal group of the present invention, but the present invention is not limited only to this, and such as, Fig. 6 shows the management method of another kind of preferred internet-of-things terminal group.
As shown in Figure 6, comprise the following steps according to the management method of the internet-of-things terminal group of the embodiment of the present invention:
S602, the GMNAE module in platform of internet of things receives the fabric anomaly request message from Internet of Things application;
S604, above-mentioned fabric anomaly request message is sent to the RADAR module in above-mentioned platform of internet of things by above-mentioned GMNAE module;
S606, above-mentioned RADAR module performs the operation indicated by above-mentioned fabric anomaly request message;
S608, operating result is returned to the application of above-mentioned Internet of Things by above-mentioned GMNAE module by above-mentioned RADAR module.
By the management method shown in Fig. 6, the embodiment of the present invention can be implemented in platform of internet of things and sets up internet-of-things terminal group, revise and delete, thus realizes the management of the information to internet-of-things terminal group neatly.In addition, on the basis that the information of internet-of-things terminal group is set up, Internet of Things application can perform identical operation by platform of internet of things to each internet-of-things terminal belonged in same internet-of-things terminal group, like this, Internet of Things application only needs to send an operation requests message to platform of internet of things, and platform of internet of things returns an operation requests response when the operating result of the internet-of-things terminal of all requests of reception to Internet of Things application, thus reduce the complexity of operation, and alleviate the load of platform of internet of things.
Preferably, the group name that above-mentioned fabric anomaly request message carries internet-of-things terminal group to be managed claims and management information, and above-mentioned RADAR module performs the operation indicated by above-mentioned fabric anomaly request message and comprises: above-mentioned RADAR module obtains the information with the internet-of-things terminal group that above-mentioned group name claims; The operation that the information and executing of above-mentioned RADAR module to the internet-of-things terminal group of above-mentioned acquisition is indicated by above-mentioned management information, wherein, aforesaid operations comprise following one of at least: checking, delete or revising group membership's information.
By the way, the management of the information to internet-of-things terminal group can be realized neatly.
Preferably, above-mentioned fabric anomaly request message carries: the group name of internet-of-things terminal group to be created claims, group membership's information, and above-mentioned RADAR module performs the operation indicated by above-mentioned fabric anomaly request message and comprises: above-mentioned RADAR module creation has above-mentioned group name and claims the information with the internet-of-things terminal group of group membership's information.
By the way, the management of the information to internet-of-things terminal group can be realized neatly.
Fig. 7 is the schematic diagram of the platform of internet of things equipment according to the embodiment of the present invention.As shown in Figure 7, comprise according to the platform of internet of things equipment of the embodiment of the present invention: the first receiver module 702, first acquisition module 704, first processing module 706.
In working order, the first receiver module 702 receives the group operation requests message from Internet of Things application, and wherein, described group of operation requests message carries title and the operation information of internet-of-things terminal group to be operated.Then, the first acquisition module 704 obtains the information of each internet-of-things terminal had in the internet-of-things terminal group of described title.Then, the first processing module 706 performs operation indicated by described operation information to described each internet-of-things terminal.
In embodiments of the present invention, Internet of Things application performs identical operation by platform of internet of things to each internet-of-things terminal belonged in same internet-of-things terminal group, like this, Internet of Things application only needs to send an operation requests message to platform of internet of things, and platform of internet of things returns an operation requests response when the operating result of the internet-of-things terminal of all requests of reception to Internet of Things application, thus reduce the complexity of operation, and alleviate the load of platform of internet of things.
Preferably, can also comprise according to the platform of internet of things equipment of the embodiment of the present invention: the second receiver module 708, first judge module 710 and set up memory module 712.
In working order, the second receiver module 708 receive apply from described Internet of Things build group request message, wherein, described in build the group name that group request message carries internet-of-things terminal group to be set up and claim and group membership's information.Then, the first judge module 710 judges that described group name claims whether to be used.Then, set up memory module 712 and claim to set up when not used at described group name and store the information of internet-of-things terminal group, wherein, the information of described internet-of-things terminal group at least comprises: described group name claims and described group membership's information.
In platform of internet of things, set up the information of internet-of-things terminal group by the way, thus can realize operating one group of internet-of-things terminal, reduce the complexity of operation.
Preferably, described group membership's information comprises: described in the mark of each internet-of-things terminal in internet-of-things terminal group to be set up, the information of described internet-of-things terminal group also comprises: the address information of internet-of-things terminal corresponding with the mark of described internet-of-things terminal respectively.
Preferably, can also comprise according to the platform of internet of things equipment of the embodiment of the present invention: the second judge module 714, sending module 716.
Under operating state, platform of internet of things receive apply from described Internet of Things build group request message after, and before the first judge module 710 judges that building the group name that carries of group request message claims whether to be previously used, the second judge module 714 judges whether the application of described Internet of Things has the authority of building group.If judge that the application of described Internet of Things does not have authority, then the second judge module 714 notifies that sending module 716 returns to the application of described Internet of Things and builds group request failure response, and notifies that described first judge module 710 cancels and describedly judge that described group name claims whether by the step used; If judge that the application of described Internet of Things has authority, then the second judge module 714 notifies that described first judge module 710 performs and describedly judges that described group name claims whether by the step used.
By the way, the Internet of Things application access without mandate can be prevented, thus the flexible control of Internet of Things application can be realized.
Preferably, can also comprise according to the platform of internet of things equipment of the embodiment of the present invention: the 3rd receiver module 718, second acquisition module 720, second processing module 722.
In working order, the 3rd receiver module 718 receives the fabric anomaly request message from Internet of Things application, and wherein, the group name that described fabric anomaly request message carries internet-of-things terminal group to be managed claims and management information.Then, the second acquisition module 720 obtains the information claiming corresponding internet-of-things terminal group with the group name of described internet-of-things terminal group to be managed.Then, the information of the second processing module 722 to the internet-of-things terminal group of described acquisition carries out the bookkeeping that indicated by described management information.
By the way, can manage the information of the internet-of-things terminal group in platform of internet of things, such as, carry out amendment that group name claims, the amendment of group membership's information, increase or deletion, thus the management of the information to internet-of-things terminal group can be realized neatly.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.