CN106528289B - Resource operation processing method and device - Google Patents

Resource operation processing method and device Download PDF

Info

Publication number
CN106528289B
CN106528289B CN201510589366.1A CN201510589366A CN106528289B CN 106528289 B CN106528289 B CN 106528289B CN 201510589366 A CN201510589366 A CN 201510589366A CN 106528289 B CN106528289 B CN 106528289B
Authority
CN
China
Prior art keywords
equipment
virtual
internet
resource
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.)
Active
Application number
CN201510589366.1A
Other languages
Chinese (zh)
Other versions
CN106528289A (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.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software 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 Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201510589366.1A priority Critical patent/CN106528289B/en
Priority to PCT/CN2016/085871 priority patent/WO2017045450A1/en
Publication of CN106528289A publication Critical patent/CN106528289A/en
Application granted granted Critical
Publication of CN106528289B publication Critical patent/CN106528289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an operation processing method and device of resources, wherein the operation processing method comprises the following steps: creating virtual equipment resources corresponding to the virtual equipment on the platform of the Internet of things, wherein the virtual equipment resources comprise: the virtual resource device comprises input devices forming the virtual device, output devices forming the virtual device, and operation rules of different virtual resource devices; and sending a request for operating the virtual equipment resource to the Internet of things platform, wherein the Internet of things platform executes the operation on the virtual equipment resource according to the request. By adopting the technical scheme provided by the invention, the problem that resources among associated equipment cannot be effectively combined in an Internet of things system in the related technology is solved, the application of the Internet of things does not need to directly operate specific equipment, and the heterogeneity among the equipment is shielded by an Internet of things platform.

Description

Resource operation processing method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for processing operations of resources.
Background
With the access of various devices to the platform, various applications of the internet of things are abundant, the applications of the internet of things do not meet single data acquisition any more, and innovative applications of the internet of things hope to perform collaborative operations on a plurality of heterogeneous devices and data through the platform of the internet of things, such as smart home services, to acquire various data for monitoring home environments, and to operate devices such as air conditioners according to comprehensive data. More and more applications will enrich, improve better user experience, and expand new services in such a semantic combination manner.
Currently, a one Machine to Machine (oneM 2M for short) system provides a common capability platform to connect various devices and applications, but does not effectively combine associated devices to provide richer data for the applications, but directly reads the data of the devices and operates the devices.
Aiming at the problem that resources among associated devices cannot be effectively combined in an internet of things system in the related art, an effective solution is not provided.
Disclosure of Invention
In order to solve the technical problem, the invention provides a resource operation processing method and device.
According to an aspect of the present invention, there is provided a resource operation processing method, including: creating virtual equipment resources corresponding to the virtual equipment on the platform of the Internet of things, wherein the virtual equipment resources comprise: the virtual resource device comprises input devices forming the virtual device, output devices forming the virtual device, and operation rules of different virtual resource devices; and sending a request for operating the virtual equipment resource to the Internet of things platform, wherein the Internet of things platform executes the operation on the virtual equipment resource according to the request.
Preferably, the virtual device resource further includes: the creator of the virtual equipment resource and the description information of the virtual equipment.
Preferably, the virtual device resources include input devices further including at least one of: the input parameters of the input equipment or the output parameters of the input equipment, the operation mode of the input equipment and the link address of the actual input equipment corresponding to the input equipment on the platform of the Internet of things; the output device of the virtual device resource further comprises at least one of the following resources: the input parameters of the output equipment or the output parameters of the output equipment, the operation mode of the output equipment and the link address of the actual output equipment corresponding to the output equipment on the platform of the Internet of things.
Preferably, the virtual device resource includes an operation rule including at least one of: the operation rule comprises description information of the operation rule, a maker of the operation rule, a user of the operation rule and identification information of the operation rule, wherein the identification information is used for uniquely identifying the operation rule.
Preferably, sending the request for operating the virtual device resource to the internet of things platform comprises:
sending an update request for updating the virtual equipment resource to the Internet of things platform, wherein the Internet of things platform acquires an update permission for updating the virtual equipment resource under the trigger of the update request, and updates the virtual equipment resource when the update permission indication is allowed.
Preferably, the method further comprises: sending an operation request for operating actual input equipment corresponding to the input equipment to the Internet of things platform, wherein the Internet of things platform sends an operation instruction to the actual input equipment, and the operation instruction corresponds to the operation request; and receiving an operation result fed back by the Internet of things platform, wherein the operation result is the operation result received by the Internet of things platform from the actual equipment.
Preferably, the method further comprises:
sending an operation request for operating actual output equipment corresponding to the output equipment to the Internet of things platform, wherein the Internet of things platform sends an operation instruction to the actual output equipment, and the operation instruction corresponds to the operation request;
and receiving the operation result fed back by the actual output equipment and received by the Internet of things platform.
According to another aspect of the present invention, there is also provided an operation processing apparatus for a resource, including: the creating module is used for creating virtual equipment resources corresponding to the virtual equipment on the platform of the internet of things, wherein the virtual equipment resources comprise: the virtual resource device comprises input devices forming the virtual device, output devices forming the virtual device, and operation rules of different virtual resource devices; the sending module is used for sending a request for operating the virtual equipment resource to the Internet of things platform, wherein the Internet of things platform executes the operation on the virtual equipment resource according to the request.
Preferably, the virtual device resource created by the creation module further includes: the creator of the virtual equipment resource and the description information of the virtual equipment.
Preferably, the virtual device resource created by the creation module includes an input device further including at least one of the following resources: the input parameters of the input equipment or the output parameters of the input equipment, the operation mode of the input equipment and the link address of the input equipment corresponding to the input equipment on the platform of the Internet of things; the virtual device resources created by the creation module include output devices that further include at least one of: the output parameters of the output equipment or the output parameters of the output equipment, the operation mode of the output equipment and the link address of the output equipment corresponding to the output equipment on the platform of the Internet of things.
Preferably, the virtual device resource created by the creation module includes an operation rule including at least one of: the operation rule comprises description information of the operation rule, a maker of the operation rule, a user of the operation rule and identification information of the operation rule, wherein the identification information is used for uniquely identifying the operation rule.
Preferably, the sending module is further configured to send an update request for updating the virtual device resource to the internet of things platform, where the internet of things platform acquires an update permission for updating the virtual device resource under the trigger of the update request, and updates the virtual device resource when the update permission indicates permission.
According to the invention, the virtual equipment resources corresponding to the virtual equipment are established on the platform of the Internet of things, the resources among the associated equipment can be effectively integrated through the establishment of the virtual equipment resources, the equipment processing can be realized through the processing of the virtual equipment resources, the problem that the resources among the associated equipment cannot be effectively combined in the system of the Internet of things in the related technology is solved, the application of the Internet of things does not need to directly operate the specific equipment, and the heterogeneity among the equipment is shielded by the platform of the Internet of things.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow diagram of a method of handling operations of a resource according to an embodiment of the invention;
FIG. 2 is a flow diagram of a method of operation of a resource according to an embodiment of the invention;
FIG. 3 is a block diagram of an apparatus for processing operations of a resource according to an embodiment of the present invention;
FIG. 4 is a block diagram of a virtual device resource and its sub-resources in accordance with a preferred embodiment of the present invention;
FIG. 5 is a flowchart of virtual device resource creation in accordance with a preferred embodiment of the present invention;
FIG. 6 is a flowchart of updating virtual device resources in accordance with a preferred embodiment of the present invention;
FIG. 7 is a flowchart for operating virtual device resources including only input devices in accordance with a preferred embodiment of the present invention;
FIG. 8 is a flowchart of operating a virtual device including an input output device, in accordance with a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In an embodiment of the present invention, an operation processing method for a resource is further provided, and fig. 1 is a flowchart of the operation processing method for the resource according to the embodiment of the present invention, as shown in fig. 1, including the following steps:
step S102, virtual equipment resources corresponding to the virtual equipment are established on the platform of the Internet of things, wherein the virtual equipment resources comprise: an input device constituting the virtual device, an output device constituting the virtual device, and operation rules of different virtual resource devices;
step S104, sending a request for operating virtual equipment resources to an Internet of things platform, wherein the Internet of things platform executes the operation on the virtual equipment resources according to the request.
Through the steps, the virtual equipment resources corresponding to the virtual equipment are established on the Internet of things platform, the resources among the associated equipment can be effectively integrated through the establishment of the virtual equipment resources, the processing of the equipment can be realized through the processing of the virtual equipment resources, the problem that the resources among the associated equipment cannot be effectively combined in the Internet of things system in the related technology is solved, the direct operation on the specific equipment is not needed in the application of the Internet of things, and the heterogeneity among the equipment is shielded by the Internet of things platform.
The step S104 may have various implementation forms, and in the embodiment of the present invention, the following technical solutions may be implemented: acquiring the authority for using the virtual equipment resource; the request is sent according to the permission, namely the use permission of the virtual equipment resource by different Internet of things applications is different, and only the Internet of things application knows the permission of the Internet of things application for using the virtual equipment resource, so that the request operation to the Internet of things platform can be conveniently carried out.
In the embodiment of the present invention, different operation rules are configured in the following manner; and configuring different operation rules according to different service requirements.
In order to further improve the above technical solution, in an example of the present invention, an operation method of a resource is further provided, and fig. 2 is a flowchart of the operation method of the resource according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
step S202: creating virtual equipment resources corresponding to the virtual equipment on the platform of the Internet of things, wherein the virtual equipment resources comprise: an input device constituting the virtual device, an output device constituting the virtual device, and operation rules of different virtual resource devices;
step S204: receiving a request for operating the virtual equipment resource sent by the application of the Internet of things;
step S206: and executing the operation on the virtual equipment resource according to the request.
Through the steps, the virtual equipment resources corresponding to the virtual equipment are established on the Internet of things platform, the resources among the associated equipment can be effectively integrated through the establishment of the virtual equipment resources, the processing of the equipment can be realized through the processing of the virtual equipment resources, the problem that the resources among the associated equipment cannot be effectively combined in the Internet of things system in the related technology is solved, the direct operation on the specific equipment is not needed in the application of the Internet of things, and the heterogeneity among the equipment is shielded by the Internet of things platform.
In the actual implementation process, before executing the step of step S206, the following technical solutions need to be executed: judging whether the Internet of things application has permission to request the Internet of things platform to execute the operation on the virtual equipment resource; and if so, executing the operation on the virtual equipment resource according to the request, wherein the actual expression is an authentication process, namely the internet of things platform authenticates the application of the internet of things.
In this embodiment of the present invention, the virtual device resource further includes: the creator of the virtual device resource, the description information of the virtual device, on the other hand, the input device included in the virtual device resource further includes at least one of the following resources: the method comprises the following steps of inputting input parameters of input equipment or output parameters of the input equipment, an operation mode of the input equipment and a link address of the input equipment on the actual input equipment corresponding to the Internet of things platform; the output device of the virtual device resource further comprises at least one of the following resources: the system comprises input parameters of output equipment or output parameters of the output equipment, an operation mode of the output equipment and a link address of the actual output equipment corresponding to the output equipment on the platform of the Internet of things.
Further, the virtual device resource includes an operation rule at least including one of: the description information of the operation rule, the maker of the operation rule, the user of the operation rule and the identification information of the operation rule, wherein the identification information is used for uniquely identifying the operation rule.
The step S104 may be implemented in various ways, and in an optional example of the present invention, sending the request for operating the virtual device resource to the internet of things platform may be implemented by the following technical solution: and sending an update request for updating the virtual equipment resource to an Internet of things platform, wherein the Internet of things platform acquires an update authority for updating the virtual equipment resource under the trigger of the update request, and updates the virtual equipment resource when the update authority indicates permission.
The method further comprises the following steps: sending an operation request for operating the actual input equipment corresponding to the input equipment to an Internet of things platform, wherein the Internet of things platform sends an operation instruction to the actual input equipment, and the operation instruction corresponds to the operation request; and receiving an operation result fed back by the Internet of things platform, wherein the operation result is an operation result received by the Internet of things platform from the actual equipment.
More specifically, an operation request for operating actual output equipment corresponding to the output equipment is sent to an internet of things platform, wherein the internet of things platform sends an operation instruction to the actual output equipment, and the operation instruction corresponds to the operation request; and receiving an operation result fed back by the actual output equipment received by the Internet of things platform.
In an alternative example, step S206 may be implemented by the following scheme: acquiring an operation object corresponding to the request, wherein the operation object comprises: an input device, an input device; and executing the operation corresponding to the request on the operation object.
The operation processing and operation method of the above resources can be briefly described by the following examples, but are not intended to limit the scope of the embodiments of the present invention:
the above technical solution can be summarized as follows: based on the resource structure of the internet of things, a virtual device resource is created, which can comprise one or more input devices or one or more output devices. And defining logic rules in the resources, using different requirements for different services, as shown in the following table one, the virtual device resources at least include one of the following attributes or resources:
watch 1
Figure BDA0000803449670000061
As shown in table two below, the child resource input/output device includes at least one of the following attributes:
watch two
Properties Description of the invention
Parameter(s) Actual input/output parameters corresponding to the device
Operation of The actual operation mode supported by the equipment
Reference linking Linking addresses of resources generated by registering physical devices on the internet of things
As shown in table three below, the rule child resource under the logic rule child resource includes one of the following attributes:
watch III
Properties Description of the invention
Rule description Description of business logic
Rule maker The entity for creating the rule can be an application or an Internet of things platform
Regulating the user Entity having authority to use the same
Rule numbering Each rule has a locally unique number
Furthermore, the input or output device is managed by uniform output device resources or input device sub-resources, including defining part of the attributes of the device, and according to the isomerism of the device, uniform description of the device operation mode is required;
furthermore, all logic rules are managed by uniform logic rule sub-resources, and each rule represents different business logics, triggering conditions of operation and other contents;
further, under the logic rule resource, a rule sub-resource is created according to different requirements, and the sub-resource describes the information of the rule, a rule creator, a rule user and the like by defining various attributes;
further, the application creates virtual equipment resources on the Internet of things platform according to service requirements, and defines input equipment, output equipment and logic rules contained in the virtual equipment; or the platform of the internet of things establishes a universal virtual device resource and also defines input devices and output devices contained in the virtual device and partial logic rules;
furthermore, other applications can acquire and use the virtual device data according to the permission, and can set the exclusive rule according to the service requirements of the applications, and create a new rule sub-resource under the logic rule sub-resource in the virtual device resource for describing the rule needed to be used;
furthermore, the virtual equipment is directly operated by applying an operation mode of resources, the rule in the virtual equipment can be selected according to the authority, and the virtual equipment can automatically realize the business logic defined in the rule according to the selection rule
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required for the invention.
In this embodiment, an operation processing apparatus for a resource is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and details of the foregoing description are omitted, and a description is provided below for modules involved in the apparatus. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated. Fig. 3 is a block diagram of an operation processing apparatus of a resource according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes:
the creating module 30 is configured to create, on the internet of things platform, a virtual device resource corresponding to a virtual device, where the virtual device resource includes: an input device constituting the virtual device, an output device constituting the virtual device, and operation rules of different virtual resource devices;
a sending module 32, connected to the creating module 30, configured to send a request for operating the virtual device resource to the internet of things platform, where the internet of things platform executes an operation on the virtual device resource according to the request.
Through the comprehensive action of each module, virtual equipment resources corresponding to virtual equipment are established on the platform of the Internet of things, resources among associated equipment can be effectively integrated through the establishment of the virtual equipment resources, and then the processing of the equipment can be realized through the processing of the virtual equipment resources, so that the problem that the resources among the associated equipment cannot be effectively combined in the system of the Internet of things in the related art is solved, the application of the Internet of things does not need to directly operate the specific equipment, and the heterogeneity among the equipment is shielded by the platform of the Internet of things.
In this embodiment of the present invention, the virtual device resource created by the creating module 30 further includes: a creator of the virtual device resource, description information of the virtual device; the virtual device resources created by the creation module 30 include input devices that further include at least one of the following resources: the input parameters of the input equipment or the output parameters of the input equipment, the operation mode of the input equipment and the link address of the input equipment corresponding to the input equipment on the platform of the internet of things; the output device included in the virtual device resource created by the creating module further includes at least one of the following resources: the output parameters of the output equipment or the output parameters of the output equipment, the operation mode of the output equipment and the link address of the output equipment corresponding to the output equipment on the platform of the internet of things.
Further, the virtual device resource created by the creation module 30 includes an operation rule including at least one of:
the operation rule identification system comprises description information of the operation rule, a maker of the operation rule, a user of the operation rule and identification information of the operation rule, wherein the identification information is used for uniquely identifying the operation rule.
The sending module 32 is further configured to send an update request for updating the virtual device resource to the internet of things platform, where the internet of things platform acquires an update permission for updating the virtual device resource under the trigger of the update request, and updates the virtual device resource when the update permission indicates permission.
The following is a schematic structural diagram illustrating the operation processing device of the resource and the operation device of the resource provided in the above embodiment of the present invention, and includes: a semantic combination module (equivalent to the creation module 30 in the above embodiment) configured to create, in a resource manner, virtual device resources on the internet of things platform, where the virtual device resources are used to represent various information for implementing semantic combination, such as input devices and output devices that constitute a virtual device, and logic rules;
optionally, the apparatus further comprises: the receiving module is used for receiving operation messages of virtual equipment such as creation, updating, reading, deletion and the like; and the sending module is used for sending the message to the actual input equipment and the input equipment and returning the result of the application request operation to the application.
The receiving module receives a request message for creating the virtual equipment sent by the application and transmits the request message to the semantic combination module, and the semantic combination module performs semantic combination on the actual equipment according to the message in the request; the semantic combination module creates virtual equipment resources in the Internet of things platform, and corresponding equipment information including information description such as equipment parameters and equipment operation is contained in input equipment sub-resources and output equipment sub-resources of the semantic combination module.
In the embodiment of the invention, different logic rules are configured according to business requirements by an application, a semantic combination module is requested to be in logic rule sub-resources of virtual equipment resources, and the semantic combination module creates new rule sub-resources according to application authority and describes the logic rules which need to be realized when the application needs to use the virtual equipment;
further, after learning the virtual device, other applications request the semantic combination module to use the virtual device resource, when the resource has multiple rule selections, the other applications need to select the rule to be used, and the module updates the user information of the rule according to the authority of the other applications; when other applications have more rights, the semantic combination module can perform more operations on the virtual equipment resources and the sub-resources thereof according to the rights of the other applications, for example, a new rule sub-resource is created, so that the semantic combination module is suitable for special business requirements of the other applications;
the application sends a request to operate the virtual equipment resource, and the semantic combination module sends an operation instruction to the actual equipment according to the operation authority of the application, the selected rule and the operation description of the equipment in the virtual equipment resource; after receiving the operation result of the actual device, the semantic combination module can perform semantic combination processing according to rules, such as data aggregation and the like, and returns the result to the application; when the virtual equipment comprises output equipment, the semantic combination module sends an operation instruction to the actual output equipment according to the service logic described in the rule, and after the output equipment returns an operation result, the semantic combination module returns the result to the application.
In order to better understand the above-mentioned operation processing of the resource and the operation flow of the resource, the following description is made with reference to the preferred embodiments, but not intended to limit the scope of the present invention.
It should be noted that, in the preferred embodiment of the present invention, the system architecture is based on a resource-oriented architecture of the internet of things, that is, all entities in the system are regarded as resources, such as application entities, functional entities, data entities, and the like, and semantic combination and operation of virtual devices are implemented in a resource manner.
Fig. 4 is a structural diagram of virtual device resources and their sub-resources according to a preferred embodiment of the present invention, where the resources are located on an internet of things platform, an application may create the virtual device resources on the internet of things platform according to a service demand request, and the internet of things platform may also create some general virtual device resources, where the resources are used to describe information of actual device composition, logic rules, and the like of the virtual device resources, and are specifically described by input device sub-resources, output device sub-resources, and logic rule sub-resources, respectively, where the input/output device sub-resources may include multiple devices, the logic rule sub-resources may include multiple rule sub-resources, and specific contents of the logic rule sub-resources are specifically described by the rule sub-resources below the input/output device sub-.
Fig. 5 is a flowchart of virtual device resource creation according to a preferred embodiment of the present invention, as shown in fig. 5, the flowchart preferably includes the following steps:
and the application acquires the related equipment information or resource information through the Internet of things platform according to the own requirements, and then creates virtual equipment resources.
Step S502: an application sends a request for creating virtual equipment resources to an Internet of things platform, and information such as a unique ID and rules of actual input/output equipment forming the virtual equipment is contained in a message;
step S504: after the Internet of things platform receives the request, authenticating whether the application has the input/output equipment and the corresponding resources contained in the authority operation message; when the application can operate all the devices, the semantic combination module creates virtual device resources;
step S506: and the Internet of things platform returns a successful creation message.
Fig. 6 is a flowchart of updating virtual device resources according to a preferred embodiment of the present invention, as shown in fig. 6, the flowchart preferably includes the following steps:
step S602: an application sends a request for updating virtual equipment resources to an Internet of things platform, and the message comprises information such as attributes or sub-resources needing to be updated, new rules and the like;
step S604: after the Internet of things platform receives the request, authenticating whether the application has the authority to carry out updating operation, and when the application has the authority, updating the sub-resources or attributes needing to be updated in the request message by the semantic combination module or creating new rule sub-resources;
step S606: and the Internet of things platform returns an updating success message.
Fig. 7 is a flowchart for operating a virtual device resource including only an input device according to a preferred embodiment of the present invention, as shown in fig. 7, the flowchart preferably includes the following steps:
step S702: an application sends a request for operating virtual equipment resources to an internet of things platform, for example, data at a certain moment is read, data higher than a certain value is read, and the like, and when a rule is defined or some rules can be used in the application, a rule number is contained in a request message;
step S704: after the Internet of things platform receives the request, authenticating whether the application has the authority to operate the virtual equipment resource, and when the application has the authority, analyzing the request content by the semantic combination module and executing specific service logic according to the rule number in the request;
step S706: the semantic combination module sends an operation instruction to the actual equipment according to the logic rule and the information of the actual equipment needing to be operated, such as parameters, actual operation instructions and the like;
step S708: returning an operation result after the actual equipment executes the instruction;
step S710: the semantic combination module checks whether the business logic still needs to be operated, and processes returned results according to logic rules when the execution only operates the input equipment, such as aggregating the returned results, eliminating some abnormal results and the like;
step S712: and the Internet of things platform returns the processed message to the application.
Fig. 8 is a flowchart of operating a virtual device including an input-output device according to a preferred embodiment of the present invention, as shown in fig. 8, preferably, the flowchart includes the following steps:
step S802: the method comprises the steps that an application sends a request for operating virtual equipment resources to an Internet of things platform, such as indoor temperature and humidity adjustment and the like, and when rules are defined or some rules can be used by the application, rule numbers are contained in request messages;
step S804: after the Internet of things platform receives the request, authenticating whether the application has the authority to operate the virtual equipment resource, and when the application has the authority, analyzing the request content by the semantic combination module and executing specific service logic according to the rule number in the request;
step S806: the semantic combination module sends an operation instruction to the actual equipment according to the logic rule and the information of the actual equipment needing to be operated, such as parameters, actual operation instructions and the like;
step S808: returning an operation result after the actual equipment executes the instruction;
step S810: the semantic combination module checks whether the business logic still needs to be operated, and when the business logic still needs to operate the output equipment, the semantic combination module sends an operation instruction to the actual equipment (the output equipment) according to a return result and a business logic rule and information of operating the actual equipment, such as parameters, an actual operation system and the like;
step S812: sending an actual operation instruction to an output device;
step S814: the actual equipment completes the operation instruction according to the instruction and returns an operation message;
step S816: and after receiving the return message, the semantic combination module checks whether the service logic needs to operate the equipment, and if the service logic does not need to operate, the semantic combination module processes the message according to a message return rule in the service logic, and the Internet of things platform returns the message to the application.
In summary, the embodiments of the present invention achieve the following technical effects: the problem of in the correlation technique, in the thing networking system, can't carry out effective combination with the resource between the associated equipment is solved, the thing networking is used and need not carry out direct operation to specific equipment, has shielded the heterogeneity between the equipment by the thing networking platform.
In another embodiment, a software is provided, which is used to execute the technical solutions described in the above embodiments and preferred embodiments.
In another embodiment, a storage medium is provided, in which the software is stored, and the storage medium includes but is not limited to: optical disks, floppy disks, hard disks, erasable memory, etc.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An operation processing method for a resource, comprising:
creating virtual equipment resources corresponding to the virtual equipment on the platform of the Internet of things, wherein the virtual equipment resources comprise: the virtual resource device comprises input devices forming the virtual device, output devices forming the virtual device, and operation rules of different virtual resource devices;
sending a request for operating the virtual equipment resource to the Internet of things platform, wherein the Internet of things platform executes the operation on the virtual equipment resource according to the request;
under the condition that the Internet of things platform determines that the application has the authority of operating the virtual equipment resource, analyzing request content, and executing business logic according to identification information of an operation rule in the request content;
wherein sending a request to the internet of things platform for operating the virtual device resource comprises:
sending an update request for updating the virtual equipment resource to the Internet of things platform, wherein the Internet of things platform acquires an update permission for updating the virtual equipment resource under the trigger of the update request, and updates the virtual equipment resource when the update permission indication is allowed.
2. The method of claim 1, wherein the virtual device resource further comprises: the creator of the virtual equipment resource and the description information of the virtual equipment.
3. The method of claim 1, wherein the virtual device resources comprise input devices further comprising at least one of: the input parameters of the input equipment or the output parameters of the input equipment, the operation mode of the input equipment and the link address of the actual input equipment corresponding to the input equipment on the platform of the Internet of things; the output device of the virtual device resource further comprises at least one of the following resources: the input parameters of the output equipment or the output parameters of the output equipment, the operation mode of the output equipment and the link address of the actual output equipment corresponding to the output equipment on the platform of the Internet of things.
4. The method of claim 1, wherein the virtual device resource comprises an operation rule comprising at least one of: the operation rule comprises description information of the operation rule, a maker of the operation rule, a user of the operation rule and identification information of the operation rule, wherein the identification information is used for uniquely identifying the operation rule.
5. The method of claim 1, further comprising:
sending an operation request for operating actual input equipment corresponding to the input equipment to the Internet of things platform, wherein the Internet of things platform sends an operation instruction to the actual input equipment, and the operation instruction corresponds to the operation request;
and receiving an operation result fed back by the Internet of things platform, wherein the operation result is the operation result received by the Internet of things platform from the actual equipment.
6. The method of claim 1, further comprising:
sending an operation request for operating actual output equipment corresponding to the output equipment to the Internet of things platform, wherein the Internet of things platform sends an operation instruction to the actual output equipment, and the operation instruction corresponds to the operation request;
and receiving the operation result fed back by the actual output equipment and received by the Internet of things platform.
7. An operation processing apparatus for a resource, comprising:
the creating module is used for creating virtual equipment resources corresponding to the virtual equipment on the platform of the internet of things, wherein the virtual equipment resources comprise: the virtual resource device comprises input devices forming the virtual device, output devices forming the virtual device, and operation rules of different virtual resource devices;
a sending module, configured to send a request for operating the virtual device resource to the internet of things platform, where the internet of things platform executes an operation on the virtual device resource according to the request, analyzes request content when the internet of things platform determines that an application has a right to operate the virtual device resource, and executes a service logic according to identification information of an operation rule in the request content;
the sending module is further configured to send an update request for updating the virtual device resource to the internet of things platform, where the internet of things platform acquires an update permission for updating the virtual device resource under the trigger of the update request, and updates the virtual device resource when the update permission indicates permission.
8. The apparatus of claim 7, wherein the virtual device resource created by the creation module further comprises: the creator of the virtual equipment resource and the description information of the virtual equipment.
9. The apparatus of claim 7, wherein the virtual device resources created by the creation module comprise input devices further comprising at least one of: the input parameters of the input equipment or the output parameters of the input equipment, the operation mode of the input equipment and the link address of the input equipment corresponding to the input equipment on the platform of the Internet of things; the virtual device resources created by the creation module include output devices that further include at least one of: the output parameters of the output equipment or the output parameters of the output equipment, the operation mode of the output equipment and the link address of the output equipment corresponding to the output equipment on the platform of the Internet of things.
10. The apparatus of claim 7, wherein the virtual device resource created by the creation module comprises operation rules that include at least one of: the operation rule comprises description information of the operation rule, a maker of the operation rule, a user of the operation rule and identification information of the operation rule, wherein the identification information is used for uniquely identifying the operation rule.
CN201510589366.1A 2015-09-15 2015-09-15 Resource operation processing method and device Active CN106528289B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510589366.1A CN106528289B (en) 2015-09-15 2015-09-15 Resource operation processing method and device
PCT/CN2016/085871 WO2017045450A1 (en) 2015-09-15 2016-06-15 Resource operation processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510589366.1A CN106528289B (en) 2015-09-15 2015-09-15 Resource operation processing method and device

Publications (2)

Publication Number Publication Date
CN106528289A CN106528289A (en) 2017-03-22
CN106528289B true CN106528289B (en) 2020-10-23

Family

ID=58288036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510589366.1A Active CN106528289B (en) 2015-09-15 2015-09-15 Resource operation processing method and device

Country Status (2)

Country Link
CN (1) CN106528289B (en)
WO (1) WO2017045450A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3367130A1 (en) * 2017-02-22 2018-08-29 STMicroelectronics (Research & Development) Limited Integration of depth map device for adaptive lighting control
CN108156029A (en) * 2017-12-20 2018-06-12 中国电子科技集团公司信息科学研究院 Capability of Internet of things integrates and combined system and ability integrates and combined method
CN113923243A (en) * 2020-06-22 2022-01-11 京东方科技集团股份有限公司 Resource boot method, device and storage medium
CN112147910B (en) * 2020-09-14 2023-02-03 青岛海尔科技有限公司 Method and device for determining execution capacity, storage medium and electronic device
CN112202891A (en) * 2020-09-30 2021-01-08 福州富昌维控电子科技有限公司 Method for virtual deployment of Internet of things platform and server
CN113193979B (en) * 2021-03-25 2023-05-09 深圳市广和通无线股份有限公司 Method, device and computer equipment for realizing virtual peripheral sharing of Internet of things module
CN113347171B (en) * 2021-05-28 2022-07-05 杭州萤石软件有限公司 Internet of things equipment disposal method and method for setting equipment resources in internet of things equipment
CN117555810B (en) * 2024-01-09 2024-04-05 中科物栖(南京)科技有限公司 Virtual debugging method, device, equipment and storage medium of Internet of things application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999850A (en) * 2011-09-08 2013-03-27 南京邮电大学 Intelligent service shop application method
US8707321B2 (en) * 2010-11-02 2014-04-22 Institute For Information Industry Resource sharing system and method thereof
CN103957242A (en) * 2014-04-16 2014-07-30 北京大学工学院南京研究院 Internet-of-things gateway achieving IP virtualization conversion
CN104836831A (en) * 2014-12-09 2015-08-12 中国电子科技集团公司第十五研究所 Object service method used for Internet of Things

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326936A (en) * 2012-03-21 2013-09-25 刘广勤 Multi-protocol gateway of Internet of Things allowing unified access of various heterogeneous sensing layer networks
CN103218220A (en) * 2013-02-25 2013-07-24 上海谐宇网络科技有限公司 Dynamic pluggable component based-Internet of things middleware system
US9454394B2 (en) * 2013-11-22 2016-09-27 Red Hat Israel, Ltd. Hypervisor dynamically assigned input/output resources for virtual devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8707321B2 (en) * 2010-11-02 2014-04-22 Institute For Information Industry Resource sharing system and method thereof
CN102999850A (en) * 2011-09-08 2013-03-27 南京邮电大学 Intelligent service shop application method
CN103957242A (en) * 2014-04-16 2014-07-30 北京大学工学院南京研究院 Internet-of-things gateway achieving IP virtualization conversion
CN104836831A (en) * 2014-12-09 2015-08-12 中国电子科技集团公司第十五研究所 Object service method used for Internet of Things

Also Published As

Publication number Publication date
CN106528289A (en) 2017-03-22
WO2017045450A1 (en) 2017-03-23

Similar Documents

Publication Publication Date Title
CN106528289B (en) Resource operation processing method and device
US10642867B2 (en) Clustering based on a directed graph
US9110884B2 (en) Message publishing and subscribing method and apparatus
CN111182025B (en) Message processing method, device, server and storage medium
CN107515878B (en) Data index management method and device
CN107291744A (en) It is determined that and with the method and device of the relationship between application program
CN112073471A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN110276060B (en) Data processing method and device
CN109754072B (en) Processing method of network offline model, artificial intelligence processing device and related products
CN107168765A (en) A kind of method and system of remote compilation software
CN110910143A (en) Identity identification generation method, device, related node and medium
CN105072139A (en) Recommendation method and recommendation device
US20230254383A1 (en) Operations control of network services
CN112087335A (en) Flow experiment method, device and storage medium
CN111008220A (en) Dynamic identification method and device of data source, storage medium and electronic device
US20150106899A1 (en) System and method for cross-cloud identity matching
CN103051668A (en) Server resource management system and server resource management method
CN110737662A (en) data analysis method, device, server and computer storage medium
CN109698974A (en) A kind of method, apparatus, electronic equipment and the medium of display progress
CN114462016A (en) Resource request method, device and system
CN110580172B (en) Configuration rule verification method and device, storage medium and electronic device
CN113504981A (en) Task scheduling method and device, storage medium and electronic equipment
US9536199B1 (en) Recommendations based on device usage
CN116132076B (en) Terminal binding method and device
CN115086066B (en) Message subscription method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200915

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing Software Co.,Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Applicant before: ZTE Corp.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant