CN108093020A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN108093020A
CN108093020A CN201611051525.3A CN201611051525A CN108093020A CN 108093020 A CN108093020 A CN 108093020A CN 201611051525 A CN201611051525 A CN 201611051525A CN 108093020 A CN108093020 A CN 108093020A
Authority
CN
China
Prior art keywords
target
entity
request
equipment
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611051525.3A
Other languages
Chinese (zh)
Other versions
CN108093020B (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.)
Zhejiang Tmall Technology Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201611051525.3A priority Critical patent/CN108093020B/en
Publication of CN108093020A publication Critical patent/CN108093020A/en
Application granted granted Critical
Publication of CN108093020B publication Critical patent/CN108093020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks

Abstract

The embodiment of the present application discloses data processing method and device, wherein, the described method includes:The three classes entity of Haystack is realized under oBIX specifications, the three classes data entity includes geographical location entity, equipment entity and functions of the equipments point position entity;The device-dependent data of the underlying basis are carried out with unitized description, generates the metadata;Application programming interface API is provided, to carry out upper level applications exploitation using the API and the metadata;When receiving upper level applications to the call request of the API, according to the metadata carried in the request, determine the target entity under the oBIX specifications that target operation object is inherited, and the target labels under the Haystack specifications followed, according to the target entity and the target labels, to be operated to the operation object.By the embodiment of the present application, the efficiency that inquiry exchanges data can be improved, while the metadata proposal based on hybrid tag ensure that the data non-intrusive interaction between various kinds of equipment.

Description

Data processing method and device
Technical field
This application involves technical field of data processing, more particularly to data processing method and device.
Background technology
For realization technology, wisdom building (IB) system is exactly by advanced sensor technology, mechanics of communication, network skill Art, automatic control technology, computer technology and data processing technique etc. organically apply to the operation of building and management process, And in real time, accurately and efficiently Comprehensive Control and management system, target are exactly the efficiency of enhancing building to the one kind established (performance) and improve building output (productivity).
Although current wisdom building management system is by BAS (BAS), fire-fighting system (FAS), security protection system Each subsystems such as system are managed concentratedly, and still, each subsystem is controlled in the vertical field of same device class System essentially adds subsystems equipment master data in the difficulty laterally to interconnect, objectively causes that " information is lonely The phenomenon that island ", it is difficult to realize really intelligence, and later stage system maintenance cost is very high.In addition, system schema do not have can Replicability, it is necessary to customize integrated respectively in each project.
The content of the invention
This application provides data processing method and devices, can improve the efficiency that inquiry exchanges data, while based on mixed The metadata proposal of conjunction label ensure that the data non-intrusive interaction between various kinds of equipment.
This application provides following schemes:
A kind of data processing method, including:
The three classes entity of Haystack, the three classes data entity bag are realized under open building information exchange oBIX specifications Include geographical location entity, equipment entity and functions of the equipments point position entity;
By the three classes entity the device-dependent data of the underlying basis are carried out with unitized description, generates the member Data;
Application programming interface API is provided, to carry out upper level applications using the API and the metadata Exploitation;
When receiving upper level applications to the call request of the API, according to the metadata carried in the request, really Target entity under the oBIX specifications that the operation object that sets the goal is inherited and the target mark under the Haystack specifications followed Label, according to the target entity and the target labels, to be operated to the operation object.
A kind of data processing equipment, including:
Entity realizes unit, for realizing the three classes entity of Haystack under open building information exchange oBIX specifications, The three classes data entity includes geographical location entity, equipment entity and functions of the equipments point position entity;
Metadata generation unit, for being united by the three classes entity to the device-dependent data of the underlying basis One changes description, generates the metadata;
API provides unit, for providing application programming interface API, to utilize the API and the metadata Carry out upper level applications exploitation;
Call request processing unit, during for receiving upper level applications to the call request of the API, according to described The metadata carried in request determines the target entity under the oBIX specifications that target operation object is inherited and is followed Target labels under Haystack specifications, so as to according to the target entity and the target labels, to the operation object It is operated.
According to the specific embodiment that the application provides, this application discloses following technique effects:
By the embodiment of the present application, the building trade tag library of HayStack maturations is combined, and is specifically implemented Definition of the tri- layer data entities of HayStack site/equip/point under OBIX specifications, so as to follow The API of HayStack specifications realizes the compound query under OBIX specifications, can improve inquiry and exchange data as unified entrance Efficiency.The metadata proposal based on hybrid tag ensure that the data non-intrusive interaction between various kinds of equipment simultaneously.
Further, since add the h of HayStack:Prefix label, therefore so that platform user can not only pass through OBIX Location positions inquire equipment one by one, can also be carried by the way that the tag feature comprehensive inquiry of HayStack is all The equipment of the label.
Certainly, any product for implementing the application does not necessarily require achieving all the advantages described above at the same time.
Description of the drawings
It in order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the application Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the schematic diagram of system provided by the embodiments of the present application;
Fig. 2 is the flow chart of first method provided by the embodiments of the present application;
Fig. 3 is the flow chart of second method provided by the embodiments of the present application;
Fig. 4 is the flow chart of third method provided by the embodiments of the present application;
Fig. 5 is the schematic diagram of first device provided by the embodiments of the present application;
Fig. 6 is the schematic diagram of second device provided by the embodiments of the present application;
Fig. 7 is the schematic diagram of 3rd device provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art's all other embodiments obtained belong to the application protection Scope.
Embodiment one
In the embodiment of the present application one, in order to solve problem of detached island of information of the prior art, provide a kind of wisdom and build Control system is built, can carry out data to the underlying basis equipment (including air-conditioning, lamps and lanterns etc.) of building interior in the system adopts Collection sends control instruction, also, API (application programming interface) can also be provided for upper layer application service so that on Layer application service can obtain the data of underlying basis equipment by way of API Calls, alternatively, being sent out to underlying basis equipment Send control instruction.In order to achieve the above object, specifically, referring to Fig. 1, which can include:
Positioned at least one gateway middleware 101 of interior of building, for controlling the interior of building multiple and different The access of the underlying basis equipment of device class, and unification is carried out to the data of different underlying basis equipment in same device class Change is handled;
And
Control server 102 positioned at high in the clouds for providing application programming interface API, receives upper level applications Call request to the API, and corresponding underlying basis equipment is issued to by the gateway middleware, so as to the bottom Layer infrastructure device is operated.
During specific implementation, the underlying basis equipment in building can include two major classes, and one kind is sensor kind equipment, bag Include temperature sensor, humidity sensor, photosensitive sensor, face recognition device, car license recognition equipment, etc.;Another kind of is to hold The equipment of row class, including air-conditioning, lighting apparatus, access control equipment, etc..Wherein, sensor kind equipment is mainly used for acquisition building Environmental data inside object, and high in the clouds control server can be submitted to.It performs kind equipment and is realizing the process of itself function In, can also the data that itself is generated be submitted to high in the clouds control server or controlled beyond the clouds under the control of server, held The specific instruction of row.
In practical applications, in order to by cloud platform underlying device data are carried out with constantly sampling and lasting excellent Change control, reach most effective the purpose of utilizing the energy, reducing operation and maintenance cost, it can also be to the cloth of underlying basis equipment Office etc. carries out specification, that is, can be disposed according to specific codes and standards to the underlying basis equipment in building.Specifically It can include Indoor Lighting Design rule, the selection of electric power metering separate design standard, environment comprehensive sensor data acquisition point Principle and space layout rule, air conditioning system with variable and fan coil+fresh air system Guidance Rule, wireless WIFI designs are led Then, the requirement specification of wisdom building to electromechanical equipment data access, etc..Specific rule or normative content can be according to realities Border is specified, here without being described in detail.
Upper level applications can include the native applications of cloud platform exploitation, furthermore it is also possible to be opened including some third parties The third-party application of originator exploitation, specific upper level applications can specifically automate lamp control, access identification, station timesharing rent It rents, preengage parking stall, etc..
The embodiment of the present application is to be added between underlying basis equipment and upper level applications two layers, wherein one layer is net Layer is closed, another layer is the key-course in high in the clouds.Wherein, on gateway layer, one or more gateways can be affixed one's name in interior of building and set Standby (specific gateway device quantity can be determined according to underlying basis number of devices in building etc.), and in this gateway Preset gateway middleware is installed, the various underlying basis equipment in building can be linked into the gateway, bottom in equipment The data that infrastructure device generates can be uploaded to the control server in high in the clouds, the control that control server generates by gateway middleware System instruction can also be handed down to underlying basis equipment by this gateway middleware.
Specifically, the main function of gateway middleware can (usually be referred to as industry, example to same device class Such as, lighting apparatus classification is also referred to as lighting apparatus industry, and air-conditioning equipment classification is also referred to as fresh air industry, etc.) in different bottoms The data of infrastructure device carry out unitized processing.This is because on all kinds of underlying basis equipment, it can be with slave device classification angle Degree is divided into different device class equipment, the equipment including lighting apparatus classification, the equipment of fresh air device class, etc..And And in same building object, for the equipment of same device class, it is also possible to there are differences such as different vendor, different types, and The different types of equipment of different vendor, even if belonging to same device class, it is also possible to be had differences in data representation etc..Example Such as, equally it is lighting apparatus, different vendor may have different definition to range of luminance values, wherein, vendor A is defined as 0~ 100, manufacturer B is defined as 0~10, etc..It therefore, can be by gateway middleware to same for the ease of carrying out unified control The data of the different types of equipment of different vendor carry out unitized processing in device class so that upper level applications can pass through Unified instruction controls the equipment in same device class.It for example, can be by each lighting apparatus manufacturer to brightness value Scope be collectively expressed as 0~100, also, in a gateway between in part, the data representation of the original definition of different vendor can be preserved Mode when receiving the control instruction that upper level applications issue, can also carry out data conversion, so by gateway middleware first Afterwards, then it is handed down to specific underlying basis equipment.For example, the scope of the brightness value of certain original definition of underlying basis equipment for 0~ 10, in the control instruction received, it by the brightness regulation of the underlying basis equipment is " 80 " to be, then can convert first, When specifically sending regulating command to the underlying basis equipment, the target brightness value of adjusting can be scaled " 8 ", etc..
During specific implementation, numberical range that gateway middleware can also define each manufacturer and numerical value model after reunification Correspondence between enclosing is preserved, to convert during specific inquiry or control.For example, for foregoing The example of lighting apparatus, specifically can be as shown in the following Table 1:
Table 1
In addition to lighting apparatus, the humidity tune of temperature regulating range, moisture control unit on Temperature-controlled appliance The signal strength range, etc. of adjusting range, the network equipment, can in the manner described above, to the difference between different vendor into The unitized processing of row, and preserve corresponding mapping relations.For example, on Temperature-controlled appliance, the mapping relations of preservation can be as Shown in following table 2:
Table 2
On moisture control unit, the mapping relations of preservation can be as shown in the following Table 3:
Table 3
In addition, gateway middleware can also have the function of rights management, data buffer storage, local service data processing etc., example Such as, can be that the data for the underlying basis equipment that will be collected locally are cached in gateway on data buffer storage function, this Sample when upper level applications need to inquire about certain data, directly can provide response, etc. according to the data of caching.Here not An another description.
Server is controlled on high in the clouds, belongs to part most crucial in cloud platform, is properly termed as the " big of entire wisdom building Brain ", also, since control server is located at high in the clouds, accordingly it is also possible to be known as " cloud brain ", being somebody's turn to do " cloud brain " can be to multiple Underlying basis equipment in different wisdom buildings is controlled.Also, in the embodiment of the present application, high in the clouds control server Main function can provide API (application programming interface) for upper level applications, in this way, upper level applications can be with It is built by this API, and then, in application program operational process, it is possible to by way of calling API, to high in the clouds Server is controlled to send corresponding operation requests, in this way, high in the clouds control server can be issued by the gateway middleware To corresponding underlying basis equipment, set with the related data for obtaining corresponding underlying basis equipment or to the corresponding underlying basis It is standby to issue control instruction.
During specific implementation, on the offer of API, in an implementation mode, common API can be to provide, at this point, should With program when calling API, it is possible to specify the title of controlled device, type, etc..But the shortcomings that this mode, is, it should Need that all there is corresponding understanding to the title, type, function point of specific underlying basis equipment with the developer of program, this is just Improve the knowledge threshold to developer.For example, for above-mentioned common API Calls, it usually needs by multiple parameters come Uniquely one specific equipment of positioning, such as (device ID, device type, state/action name), etc..Wherein, Specific device ID, device type, state/action name is required in a program being referred to by developer It is fixed.
In order to reduce the knowledge threshold of developer so as to knowledge such as the titles, type, function point of underlying basis equipment There is no the technical staff of enough understandings, can carry out the development of application program yet, it in the embodiment of the present application, can also be It is correspondingly improved in protocol level, specifically, can provide to generate the underlying basis equipment of each device class Data carry out the metadata of unitized description, wherein, so-called metadata, and be properly termed as broker data, relaying data is The data (data about data) of data are described, in the embodiment of the present application, metadata is exactly for wisdom building system In the data that are described of each item data, for example, some specific underlying basis equipment can correspond to a unique member Data.In this way, by this metadata, upper level applications can adjust the API using the metadata as parameter With without setting multiple parameter values.
It, in the embodiment of the present application, can be in open building letter in order to realize that the mode with metadata carries out Data Identification Breath exchange oBIX specifications under realize Haystack three classes entity, the three classes entity include geographical location entity, equipment entity, Functions of the equipments point position entity.
In order to make it easy to understand, first below to the relevant knowledge of software view that is arrived involved in wisdom building cloud platform and OBIX specifications, Haystack labels are simply introduced.
In order to build complete wisdom building system, BACnet standards are generated in the prior art, thus the automatic control of wisdom building Network is changed from proprietary type to style of opening.On the basis of open standard, the information of various wisdom building subsystems can be shared, because And it can theoretically build completely integrated wisdom building system.But in fact, due to being had differences between various criterion, even if It is generally acknowledged BACnet standards, it is also difficult to realize the Seamless integration- between various criterion.Therefore, integrated if formulation one is public Interface, and all automatic control network standards support this public integrated interface, then can pass through this public integrated interface Efficiently integrated.
With the demand that enterprise's application (such as human resources, customer relationship, financial management etc.) integrates, require more and more Wisdom building system is linked among management information system in enterprise (MIS), so as to analyze comprehensively all operation informations of enterprise and Carry out decision-making.In addition, the fast development with greater amount of " machine-machine (M2M) " communication service, it is also desirable to develop one Plant the system integration technology with " platform is unrelated, and language is unrelated and agreement is unrelated ".In Internet evolutions, XML/Web Services technologies are increasingly becoming the coke of Enterprise information integration by the characteristics of its " platform is unrelated, and language is unrelated and agreement is unrelated " Point.This technology is widely applied with its open, standard and simplicity in IT industry circle, and positive wisdom building automatic control Field and its system integration application high-speed osmotic.Wisdom building robot control system(RCS) is carried out using XML/Web Services technologies to integrate The specific manifestation of exactly this development trend represents the developing direction of wisdom building robot control system(RCS) integrated technology.
The advantages of just because of XML/Web Services technologies, some normal structures and device class association will Some wisdom building automatic control network standards carry out the extension of XML/Web Services technologies or work out new XML/Web Services technology application standards.Wherein, CABA (North American continent building automatic) association is initiated and worked out based on XML/Web Services technologies --- open building information exchange standard oBIX (open Building Information eXchange)。
OBIX standards are exactly multi-crossed disciplines and the wisdom building system integrated technology of fusion, have specific operational management Function and comprehensive feature, effect are the difference for shielding different building automation and control network standards, provide unified and open wisdom Building system integrated technology, its significance lies in that using wisdom building system as a subsystem of Enterprise information integration, seamlessly It is integrated among management information system in enterprise, so that wisdom building system has broader practice.
Can be seen that oBIX standards from the evolution of wisdom building system integrated technology is the intelligence based on Modern IT Technology Intelligent building system integrated technology standard.As other systems integrated technology, oBIX standards utilize XML/Web Services The core contents such as the data representation function of technology and Interoperability Mechanism define the information model of wisdom building system The network transmission of (Information Model), interoperability mode (Interoperation Mode) and interoperability semanteme Contents such as (Network Transport), thus form its primary structure and corresponding substance.In oBIX standards, Information model is the object model based on object (object) and contract (contract), and interoperability mode is built upon pair As REST (the Representation State on model based on Read (reading), Write (writing) and Invoke (calling) Transfer) interoperate mode.
In oBIX standards, object (object) is the low level XML vocabulary or NameSpace with " application field is unrelated ", It is the component item (element) of oBIX XML documents.The object model except be used to describing wisdom building system information with Outside, it can be also used for the information description in other automatic control fields.All oBIX XML documents can be by the object model defined XML vocabulary or NameSpace formed.Further, since oBIX standards are made of oBIX objects, therefore, in order to identify not The oBIX objects of same type, oBIX standards employ URI (Uniform Resource Identifier, uniform resource identifier Symbol) identification means.
Contract (Contract) is the XML document being made of oBIX objects grammer as defined in oBIX standards, is with answering With relevant semantic " object " model.That is, contract is that have the semantic XML document of interoperability with object model description, Or the oBIX objects with certain interoperability semanteme, effect are the elementary cell description standards for making wisdom building system, So that realize or quote contract with being known that the described interoperability of the contract is semantic per family, this just make contract become with Using relevant interoperability semantic entity, i.e. contract is built upon on low level object model, with interoperability semanteme High-level oBIX objects.For example, entitled oBIX:The contract of Alarm is exactly the standard with relevant information of alarming in oBIX standards Unit is described, which describes the information such as alarm source, time of fire alarming, alert receipt person with oBIX object models, make realization and Quote the contract with can be used according to the normal structure and its interoperability semanteme that is contained of the contract per family and understand this Contract, so as to fulfill the integrated and interoperability of system.
From the effect of contract as can be seen that contract is the oBIX description standard units of higher level semanteme.Contract and object Relation between model is just as the basic data type and object type of object-oriented computer programming language (such as C++, Java etc.) Between relation, although the basic data type in programming language is limited and fixed, using basic data type create The object type built not is to be laid down hard and fast rule by programming language, as long as according to the syntax rule of programming language with substantially Data type is created arbitrarily with applying relevant object type, and all object types for meeting programming grammar rule can be with It is identified and is compiled by same compiler (compiler).The object model and contract of oBIX standards also use this thought, It, can be under XML linguistic constraints as defined in oBIX standards although the limited basic object type of oBIX object model definitions With limited basic object type and contract object type construction with applying relevant any type of contract, so that oBIX is marked Standard has powerful extension mechanism on representation function.
Using above-mentioned thought, anyone can construct any type of contract according to application demand.It is common in order to make Contract type standardizes, and oBIX standards are summarized by abstract, and common contract type is defined as " type contract ", example Such as, oBIX:Point,oBIX:Alarm and oBIX:History etc. is form contract object.In oBIX standards, by oBIX The form contract that standard defines can also referred to as " contract ", and oneself be determined by user or building automation equipment manufacturer according to application The contract of justice is commonly referred to as " extension contract ".
In interoperability mode, oBIX standards employ " client/server (C/S) " model, and interoperate all Journey is summarized as Read (reading), Write (writing) and three kinds of operating process of Invoke (calling).Wherein, Read reads clothes for client The oBIX information of business device, Write are used for objective user orientation server and write oBIX information, and Invoke is used for the behaviour of client's invoking server Make process.This interoperability mode is commonly referred to as REST (REpresentational State in Web network environments Transfer) mode.REST modes are the general names of above-mentioned resource access mode, are the design sides that a kind of network-oriented resource accesses Formula, every resource operation for meeting this access mode are properly termed as REST modes.
By described above as it can be seen that oBIX standards of the prior art have the scalability the characteristics of strong, still, the application is sent out A shortcomings that person of good sense has found during the embodiment of the present application is realized, oBIX is:Lack definite business API, to data It inquired about, set when operations, it appears underaction.In other words, oBIX standards are more suitable for the specification in commercial Application, But when wisdom building system directly applies the oBIX standards, then can seem underaction, it is difficult to above be carried in the normative foundation For specific API.
For this purpose, in the embodiment of the present application, can combine oBIX standards autgmentability it is strong the characteristics of, marked in original oBIX It being extended on the basis of standard so that the standard after extension has both the features such as data are succinct, light on the basis of original advantage, And then specific API is easy to implement, provide more convenient condition for the integrated of upper level applications.Specifically, the present application People contemplates HayStack labels, because it is in succinct, light, device class label maturation the advantage of data.Wherein, Business object is abstracted as site (geography/situation of building), equip (equipment entity), point (function point position) three by HayStack Class entity, and allow to establish incidence relation therebetween, data format is succinctly bright and clear.Therefore, in the embodiment of the present application, it is possible to OBIX standards with HayStack labels are combined, the above-mentioned three classes entity structure of Haystack is realized under oBIX specifications, That is using the device class label of HayStack as data of activating business, and specifically implement site/ under oBIX specifications This three layer datas entity of equip/point.
Specifically, each layer data entity can be extended in the following manner respectively:
(1) on the Site labels in HayStack, Location classes can be expanded in oBIX, the oBIX Location can be the top layer parent of all geographical location objects, it then follows the site labels of HayStack, in addition, further including one A sublocation for being directed toward lower floor, the upperLocation on a direction upper strata, one is directed toward on the Location and associates Business Entity entityCollect, etc..That is, by the way that Location classes are instantiated, can be used to indicate that One geographical location object, for example, specific certain mansion, certain floor, some region, etc..
(2) the Equip labels on HayStack, can realize commEntity classes in oBIX, the oBIX CommEntity classes can be the public parent of all devices object.That is, by instantiating such, can be used to indicate that One specific underlying basis equipment, for example, certain air-conditioning, some lighting apparatus, etc..During specific implementation, for CommEntity classes can be directed to different device classes, generate different device class templates, specifically express some bottom During infrastructure device, it can be described by inheriting the template of corresponding device class.
(3) the Point labels on HayStack.CommPoint classes can be expanded in oBIX, such can be pair The top layer of functions of the equipments point position is abstracted, and all Point templates can inherit it, and Point examples then inherit corresponding templates, it Major Members can be a reference for being directed toward its upper layer device, represent any one point position be all subordinated to specific equipment. For example, for " air-conditioning " device class, functions of the equipments point position can have:“power”、“speed”、“highspeed”、 8 function point positions such as " minspeed ", " lowspeed ", " model ", " temp ", " value " can be respectively then each work( Position can be put and set corresponding template.The equipment of distinct device classification has different function point positions, accordingly it is also possible to be respectively each A corresponding each function point position of device class equipment generates corresponding template.During specific implementation, equipment can also be defined Dependence between metadata.For example, certain facility information template is fresh air industry template AirCondition, is field: “h:equip h:Hvac obix/def/contract/commEquip " illustrate the template except inheriting obix's CommEquip templates, and the equip labels of HayStack tag libraries and hvac labels are also followed, it ensure that the equipment is real Example meets the data standard of HayStack.
By the above-mentioned means, the data in system can be indicated with the mode of metadata, also, due to symbol OBIX specifications are closed, therefore, can be identified per one kind data object with the mode of URI.
It, can be with being identified as example, for certain geographical location object " No.1 building second floor west side region ":“href”: “http://beehive/obix/def/contract/location/01/02/W ", at the same time it can also by " is " field come Illustrate the object specification specifically met and the HayStack labels carried.For example, " is ":“h:site obix/def/ Contract/location ", by " is " field, which inherits oBIX location classes, and follows The site labels of HayStack tag libraries.
For another example, the specific underlying basis equipment of " th_001_XYZ " entitled to Mr. Yu, URI marks can be: “http:// ... obix/things/th_001_XYZ ", same way, it is also possible to illustrate that the object specifically meets by " is " field Specification and the HayStack labels that carry.For example, " is ":obix/def/schema/aircondition obix/ def/contract/siteRef h:equip h:Hvac, by " is " field, which inherits oBIX's Aircondition device classes template and siteRef templates, and follow the equip labels of HayStack tag libraries with And hvac labels.In addition, the equipment have 8 function point position objects (Power, Speed, HighSpeed, MinSpeed, LowSpeed、Model、Temp、Value)。
By the above-mentioned means, server is controlled beyond the clouds, it can be to each geographical location pair of specific wisdom building interior As, the function point position in infrastructure device, equipment, instantiated in the manner described above respectively, that is to say, that in wisdom building Each geographical location, each infrastructure device, each specific function point position, can correspond to respective URI.If in this way, Layer application program needs to obtain the data of some specific object or some specific object is controlled, it is possible to right with this The URI of elephant is the relevant API of parameter call.
Specific API can there are many, for example, GET, PUT, POST etc. can be included, and it is possible to control beyond the clouds The inside of each API is realized defined in server, that is, the specific process flow when specific API is called.It is for example, right In air-conditioning equipment th_001_XYZ, if certain upper level applications needs to obtain its temperature data, following sentence can be passed through To realize:
GET http://beehive/obix/things/th_001_XYZ/temp
The control server in high in the clouds can be inquired about according to the URI in request, passed through after the call request is received " is " field of the object, it may be determined that go out the object inherit oBIX aircondition device classes template and SiteRef templates, and the equip labels of HayStack tag libraries and hvac labels are followed, it can thus identify and provide Body is a kind of air-conditioning equipment of fresh air device class, then can be according to the specific process flow defined in API, to the request Handled accordingly, the instruction for obtaining the device temperature data sent to corresponding gateway middleware, in a gateway between on part After passing specific temperature data, then the temperature data is supplied to specific upper level applications.
It for another example, can be with if certain upper level applications needs to set the temperature of air-conditioning equipment th_001_XYZ for 38 degree It is realized by following sentence:
It should be noted that on the data of above-mentioned inquiry equipment function point position or to certain equipment function point The process that the data of position are configured is typically to be carried out in the operational process of upper level applications, that is to say, that should on upper strata With having write specific API Calls sentence in the code of program exactly, and concrete operations object is write exactly in the parameter value of sentence URI。
In addition, the h by adding HayStack:Prefix label so that platform user can not only pass through oBIX Location positions inquire equipment one by one, can also be carried by the way that the tag feature comprehensive inquiry of HayStack is all The equipment of the label, for example, inquiry is located at No.1 building second floor (siteRef:0102) (haystack is marked all Light indicators Sign as lights) equipment:
POST http://beehive/obix/compoundQuery
{“tag”:h:“lights”,siteRef:“0102”}
The control server in high in the clouds after receiving the request, can will be set positioned at all Light indicators of No.1 building second floor Standby list returns:
[{“obix”:“obj”,“name”:" th_001_ABC ", href=" obix/things/th_001_ ABC”...}]
Furthermore the h for passing through HayStack:Prefix label so that platform user can also pass through the label of HayStack All function point positions possessed by characteristic comprehensive inquiry equipment, such as:
GET http://beehive/obix/things/th_001_XYZ/
The control server in high in the clouds after receiving the request, can be by the row of the associated all function point bit identifications of the equipment Table returns:
[http://beehive/obix/things/th_001_XYZ/Power, http://beehive/obix/ Things/th_001_XYZ/Speed, http://beehive/obix/things/th_001_XYZ/HighSpeed, http://beehive/obix/things/th_001_XYZ/MinSpeed, http://beehive/obix/things/th_ 001_XYZ/LowSpeed, http://beehive/obix/things/th_001_XYZ/Model, http://beehive/ Obix/things/th_001_XYZ/Temp, http://beehive/obix/things/th_001_XYZ/Value]
It should be noted that in specific implementation, for the comprehensive inquiry based on tag feature, typically in development and application Involved by having during program, for example, the exploitation side that the embodiment of the present application can be application program provide development platform, pass through This development platform, developer can be by inputting this query statement, to inquire about certain specific device class under some position Equipment which has, alternatively, inquiring about some equipment specifically has which function point position etc., and then further according to query result, write Specific data query or control statement, etc..
By it is described above as it can be seen that by combined in oBIX specifications HayStack tag attributes (Site positions, Equip device types, Point function points position), it can inquire about for greater flexibility and control specific operation object, only by one Operation object URI is as metadata, it is possible to obtain the control of institute's information in need or realization to operation object.As a result, The either primary application program of platform or the application program of third party developer's exploitation, can pass through the side of API Calls Formula realizes specific application program, the information such as device class, type, functional attributes without understanding specific equipment.
In addition, in this way, it can also preferably realize the linkage between the equipment of distinct device classification.Specifically , the operation requests that last time application program is submitted in the process of running can include to multiple underlying basis in distinct device classification The operation requests that equipment is operated, at this point, the control server in high in the clouds can be by the gateway middleware by the operation Request is issued to corresponding each underlying basis equipment, with the related data that obtains each underlying basis equipment or to each bottom Layer infrastructure device issues control instruction respectively.For upper level applications, it can realize respectively and each underlying basis are set The standby sentence operated sets specific linkage rule, for example, the brightness of the lighting apparatus when certain region by this sentence When reaching certain first numerical value, then the temperature of the air-conditioning equipment in the region is adjusted and arrive certain second value, etc..Alternatively, in order into One step simplifies the operation of developer, can also above-mentioned sentence be carried out modularization processing so that developer can pass through choosing The mode of component is selected, to carry out the setting of linkage rule.The control mode of this linkage can realize real intelligence, example Such as, by using management, small post office, WIFI accesses, printer to no card video identification shutdown system, estate management, meeting room The combination control of software and hardwares, the extensive work that user is allow easily to be rapidly completed in building are waited, while property management personnel can Easily building are being carried out with maintenance update very much, operation cost, etc. is saved.
It should be noted that in the embodiment of the present application, the way of realization on specific upper level applications can not It is defined, platform itself or third party developer, the API that can be opened based on platform is programmed, and is built for wisdom In user specific service is provided.For example, platform itself can provide some primary applications or service, wherein can wrap It includes:The data of each equipment of interior of building are gathered by the gateway middleware, and carry out data analysis (including energy consumption point Analysis etc.), specific data results can be supplied to application program to be used or be also provided to the pipe of building Reason personnel, etc..And the application program developed on third party, then it can be more versatile and flexible, for example, automation can be included Lamp control, reservation are made a reservation, recognition of face, station timesharing lease, visitor are self-service, reverse car seeking, reservation parking stall, etc..On application Specific control logic etc., then can voluntarily be set by developer in program, here without limiting.
In short, sensor as building sense organ, can collect building in all kinds of basic datas (environment, people set Arrange standby), gateway device by building reaches the control server in high in the clouds, and the control server in high in the clouds is then opened to all kinds of Api interface for developer's exploitation using these basic datas, is preferably serviced to the user and owner of building with providing.It is logical Cross the open standard of this hardware and software platform so that upper level applications can be integrated to be generated using the infrastructure device of each device class Data, can also to each device class equipment carry out linkage control, it can thus be avoided the shape of " information island " Into, it realizes and perceives user, perceive itself, perception periphery.Simultaneously by the ecosystem of itself, can attract the third-party institution/ Individual enters building, service that is innumerable, constantly evolving is provided building, people, equipment, so as to constantly meet building The variation of middle people, personalized demand make whole building form a life entity organic, constantly evolve, open.
Embodiment two
The embodiment from the angle of high in the clouds control server, provides one kind second is that corresponding with previous embodiment one Wisdom building control method, referring to Fig. 2, this method specifically may comprise steps of:
S201:Control server positioned at high in the clouds provides application programming interface API;
S202:When receiving upper level applications to the call request of the API, target wisdom building and wherein is determined The intended gateway middleware of deployment;
S203:The call request is issued to by corresponding underlying basis equipment by the intended gateway middleware, with The underlying basis equipment is operated.
During specific implementation, in order to more easily realize API Calls, the bottom base to each device class can be provided for The data that plinth equipment generates carry out the metadata of unitized description, so that the upper level applications are using the metadata as parameter The API is called.
Specifically, the three classes entity of Haystack can be realized under open building information exchange oBIX specifications, described three Class data entity includes geographical location entity, equipment entity and functions of the equipments point position entity, then, passes through the three classes data Entity carries out the device-dependent data of the underlying basis unitized description, generates the metadata.
In this case, it is described when receiving upper level applications to the call request of the API, it can also be according to institute State the metadata carried in call request, determine target entity under the oBIX specifications inherited of operation object of request and Then the target entity and the target labels are supplied to described by the target labels under the Haystack specifications followed Intended gateway middleware, so that the intended gateway middleware is according to the target entity and the target labels, by described in Operation requests are issued to corresponding underlying basis equipment.
During specific implementation, the call request includes obtaining target formation infrastructure device objective function point position related data Request, at this point it is possible to which the request of the acquisition related data is issued to corresponding bottom by the intended gateway middleware Infrastructure device, so that the underlying basis equipment returns to the related data of the objective function point position, and by the target network It closes middleware and the related data is returned into the control server;Then, the phase intended gateway middleware returned Data are closed, are supplied to the upper level applications.
Alternatively, the call request includes the request being configured to target formation infrastructure device objective function point position, this When, by described request can be set to be issued to corresponding underlying basis equipment by the intended gateway middleware, so as to described Underlying basis equipment is configured the objective function point position according to the request.
In addition, by the use of Haystack labels, it can also realize and more easily inquire about, specifically, can also receive The request of device object information of the target geographic position with target Haystack labels is inquired about, and is carried described in offer The metadata of each device object of Haystack labels.Alternatively, the inquiry associated function of target device object can also be received The request of point position information provides the metadata of the associated each function point position of the target device object.
Embodiment three
The embodiment three is also corresponding with embodiment one, from the angle of gateway middleware, provides a kind of wisdom and builds Control method is built, specifically, referring to Fig. 3, this method can include:
S301:Gateway middleware positioned at interior of building is to different underlying basis are set in same device class in building Standby representation carries out unitized processing;
S302:Receive the API Calls request that the control server in high in the clouds is sent;The API Calls request is by upper layer application Program is sent;
S303:Target formation infrastructure device is determined according to the call request;
S304:The call request is sent to the target formation infrastructure device, to be set to the target formation basis It is standby to be operated.
Wherein, the call request includes the request for obtaining target formation infrastructure device objective function point position related data, At this point, after the related data that the target formation infrastructure device returns is received, can also be according to the unitized processing after Representation carry out data reduction, the data after conversion then are returned to the high in the clouds controls server, so as to by The high in the clouds control server returns to the upper level applications.
Alternatively, the call request includes the request being configured to target formation infrastructure device objective function point position, this When, it, can also unitized treated according to described before the call request is sent to the target formation infrastructure device Representation and the original representation of target formation infrastructure device, the number that will be carried in the request Value converts, using the numerical value after converting, to send described set to the target formation infrastructure device and ask, by described Target formation infrastructure device sets request to perform setting operation according to described.
On above-described embodiment two and embodiment three, concrete implementation details may refer to Jie in previous embodiment one It continues, which is not described herein again.
Example IV
In foregoing individual embodiments, all it is from based on wisdom building control system, concrete implementation mode is carried out It introduces.And in practical applications, on " metadata " describing mode provided in the embodiment of the present application, can also be in others It is applied in system, for this purpose, the embodiment of the present application additionally provides a kind of data processing method, referring to Fig. 4, this method can include following Step:
S401:The three classes entity of Haystack, the three classes data are realized under open building information exchange oBIX specifications Entity includes geographical location entity, equipment entity and functions of the equipments point position entity;
S402:By the three classes entity the device-dependent data of the underlying basis are carried out with unitized description, generation The metadata;
S403:Application programming interface API is provided, it should to carry out upper strata using the API and the metadata Use program development;
S404:When receiving upper level applications to the call request of the API, according to the first number carried in the request According to determining under the target entity under the oBIX specifications that target operation object is inherited and the Haystack specifications followed Target labels, according to the target entity and the target labels, to be operated to the operation object.
During specific implementation, the geographical location entity includes the top layer parent Location of geographical location object, member It is closed including being directed toward the class sublocation of lower floor, the class upperLocation on direction upper strata and being directed toward geographical location object Join the class entityCollect of device object.
The equipment entity can include being respectively device class template that each device class is established, and member includes pair Function point position possessed by the equipment of device class is answered, will pass through the device class template for inheriting corresponding device class, generation The metadata of device object.
The member of the functions of the equipments point position entity includes being directed toward the reference of its upper layer device.
During specific implementation, the call request includes obtaining target formation infrastructure device objective function point position related data Request,, can basis when being operated to the operation object specifically according to the target entity and the target labels The target entity and the target labels obtain dependency number of the target formation infrastructure device in objective function point position According to, and it is supplied to the upper level applications.
Wherein, the underlying basis equipment includes the underlying basis equipment of target wisdom building interior, wherein, the target Wisdom building interior is also deployed with gateway middleware, by the gateway middleware to different underlying basis in same device class The representation of equipment carries out unitized processing;
At this point, specifically the target formation infrastructure device is obtained according to the target entity and the target labels It, can be first according to the target entity and the target labels, to the net in the related data of objective function point position It closes middleware and sends the request for obtaining the related data, so that the gateway middleware is receiving the target formation basis After equipment is submitted to data, according to it is described it is unitized treated that representation carries out data reduction, and will be after conversion Data return, it is then possible to receive that the gateway middleware provides on the target formation infrastructure device in objective function The related data of point position.
In addition, the call request can also include asking to what target formation infrastructure device objective function point position was configured It asks, it, can be with when being operated to the operation object at this point, specifically according to the target entity and the target labels According to the target entity and the target labels, by described request is set to be issued to the target formation infrastructure device, with Toilet states target formation infrastructure device and the objective function point position is configured according to the request.
Similar, if the underlying basis equipment includes the underlying basis equipment of target wisdom building interior, wherein, institute It states target wisdom building interior and is also deployed with gateway middleware, by the gateway middleware to different bottoms in same device class The representation of layer infrastructure device carries out unitized processing;Then specifically by described request is set to be issued to the mesh described During base number of a tender layer infrastructure device, by described request can be set to be sent to institute according to the target entity and the target labels Gateway middleware is stated, so that the gateway middleware is according to unitized treated representation and the mesh The original representation of base number of a tender layer infrastructure device, the numerical value carried in the request is converted, after conversion Numerical value sends described set to the target formation infrastructure device and asks, set by the target formation infrastructure device according to described It puts request and performs setting operation.
As it can be seen that by under oBIX specifications combine HayStack tag attributes (Site positions, Equip device types, Point function points position), simultaneously control device can be inquired about for greater flexibility, as soon as only by a device object URI, can be obtained required The data wanted carry out control operation to equipment.In addition, the h by increasing HayStack:Prefix label so that platform makes User can not only inquire equipment one by one by OBIX Location positions, can also pass through the label of HayStack All equipment with the label of characteristic comprehensive inquiry.
For example, in the development phase of application program, inquiry target geographic position can be received and marked with target Haystack The request of the device object information of label provides the metadata of each device object with Haystack labels.
Alternatively, the request of the inquiry associated function point position information of target device object can also be received, the target is provided The metadata of the associated each function point position of device object.
In short, by the example IV, the building trade tag library of HayStack maturations is combined, and is specifically implemented Definition of the tri- layer data entities of HayStack site/equip/point under OBIX specifications, so as to follow The API of HayStack specifications realizes the compound query under OBIX specifications, can improve inquiry and exchange data as unified entrance Efficiency.The metadata proposal based on hybrid tag ensure that the data non-intrusive interaction between various kinds of equipment simultaneously.
Further, since add the h of HayStack:Prefix label, therefore so that platform user can not only pass through OBIX Location positions inquire equipment one by one, can also be carried by the way that the tag feature comprehensive inquiry of HayStack is all The equipment of the label.
, can also be referring to the introduction in previous embodiment one on the specific implementation of the example IV, which is not described herein again.
Corresponding with embodiment two, the embodiment of the present application additionally provides a kind of wisdom building control device, specifically, the dress It puts applied to the control server positioned at high in the clouds, referring to Fig. 5, which can include:
API provides unit 501, for providing application programming interface API;
Gateway middleware determination unit 502, during for receiving upper level applications to the call request of the API, really The intended gateway middleware that the wisdom that sets the goal is built and wherein disposed;
Call request issuance unit 503, for being issued to the call request pair by the intended gateway middleware The underlying basis equipment answered, to be operated to the underlying basis equipment.
During specific implementation, which can also include:
Metadata provides unit, unites for providing for the data generated to the underlying basis equipment of each device class One changes the metadata of description, so that the upper level applications are called the API by parameter of the metadata.
Wherein, in an implementation mode, metadata provides unit and can specifically include:
Entity realizes subelement, for realizing that the three classes of Haystack are real under open building information exchange oBIX specifications Body, the three classes data entity include geographical location entity, equipment entity and functions of the equipments point position entity;
Metadata generates subelement, for being carried out by the three classes entity to the device-dependent data of the underlying basis Unitized description, generates the metadata.
It is described when receiving upper level applications to the call request of the API during specific implementation, it further includes:
Information determination unit, for according to the metadata carried in the call request, determining the operation object institute asked Target entity under the oBIX specifications of succession and the target labels under the Haystack specifications followed;
It is described when the operation requests being issued to corresponding underlying basis equipment by the intended gateway middleware, also Including:
Information provider unit, for the target entity and the target labels to be supplied among the intended gateway So that the intended gateway middleware is according to the target entity and the target labels, the operation requests are issued for part To corresponding underlying basis equipment.
Wherein, the call request includes the request for obtaining target formation infrastructure device objective function point position related data, The call request issuance unit specifically can be used for:
The request of the acquisition related data is issued to corresponding underlying basis by the intended gateway middleware to set It is standby, so that the underlying basis equipment returns to the related data of the objective function point position, and by the intended gateway among The related data is returned to the control server by part;The related data that the intended gateway middleware is returned, provides To the upper level applications.
Alternatively, the call request includes the request being configured to target formation infrastructure device objective function point position, institute Call request issuance unit is stated specifically to can be used for:
By described request is set to be issued to corresponding underlying basis equipment by the intended gateway middleware, so as to described Underlying basis equipment is configured the objective function point position according to the request.
Furthermore it is also possible to realize that batch query operates by Haystack labels, specifically, the device can also include:
First inquiry request receiving unit, for receiving inquiry target geographic position setting with target Haystack labels The request of standby object information;
First query result provides unit, for providing first number of each device object with Haystack labels According to.
Alternatively, the device can also include:
Second inquiry request receiving unit, for receiving asking for the inquiry associated function point position information of target device object It asks;
Second query result provides unit, for providing first number of the associated each function point position of the target device object According to.
Corresponding with embodiment three, the embodiment of the present application additionally provides a kind of wisdom building control device, the device application In the gateway middleware positioned at interior of building, referring to Fig. 6, which can specifically include:
Unit 601 is uniformly processed, for in building in same device class different underlying basis equipment tables of data Unitized processing is carried out up to mode;
Call request receiving unit 602, the API Calls request that the control server for receiving high in the clouds is sent;The API Call request is sent by upper level applications;
Underlying basis equipment determination unit 603, for determining target formation infrastructure device according to the call request;
Call request transmitting element 604, for sending the call request to the target formation infrastructure device, so as to right The target formation infrastructure device is operated.
Wherein, the call request includes the request for obtaining target formation infrastructure device objective function point position related data;
At this point, described device can also include:
First scaling unit, for after the related data that the target formation infrastructure device returns is received, according to institute State that unitized treated that representation carries out data reduction;
Scaling results returning unit controls server, so as to by institute for the data after converting to be returned to the high in the clouds It states high in the clouds control server and returns to the upper level applications.
Alternatively, the call request includes the request being configured to target formation infrastructure device objective function point position;
Described device further includes:
Second scaling unit, for before the call request is sent to the target formation infrastructure device, according to institute Unitized treated representation and the original representation of target formation infrastructure device is stated, by institute It states the numerical value carried in request to convert, so that using the numerical value after converting, institute is sent to the target formation infrastructure device Setting request is stated, sets request execution that operation is set according to described by the target formation infrastructure device.
Corresponding with example IV, the embodiment of the present application additionally provides a kind of data processing equipment, referring to Fig. 7, the device It can include:
Entity realizes unit 701, for realizing that the three classes of Haystack are real under open building information exchange oBIX specifications Body, the three classes data entity include geographical location entity, equipment entity and functions of the equipments point position entity;
Metadata generation unit 702, for by the three classes entity to the device-dependent data of the underlying basis into The unitized description of row, generates the metadata;
API provides unit 703, for providing application programming interface API, to utilize the API and the member Data carry out upper level applications exploitation;
Call request processing unit 704, during for receiving upper level applications to the call request of the API, according to The metadata carried in the request determines the target entity under the oBIX specifications that target operation object is inherited and is abided by Target labels under the Haystack specifications followed, so as to according to the target entity and the target labels, to the operation Object is operated.
Wherein, the geographical location entity includes the top layer parent of geographical location object, and member includes being directed toward lower floor Class, the class for being directed toward upper strata and the class for being directed toward geographical location object associate device object.
The equipment entity includes the device class template that respectively each device class is established, and member includes correspondence and sets Function point position possessed by the equipment of standby classification will pass through the device class template for inheriting corresponding device class, generates equipment The metadata of object.
The member of the functions of the equipments point position entity includes being directed toward the reference of its upper layer device.
During specific implementation, the call request includes obtaining target formation infrastructure device objective function point position related data Request, the call request processing unit specifically can be used for:
According to the target entity and the target labels, the target formation infrastructure device is obtained in objective function point The related data of position, and it is supplied to the upper level applications.
Wherein, the underlying basis equipment includes the underlying basis equipment of target wisdom building interior, wherein, the target Wisdom building interior is also deployed with gateway middleware, by the gateway middleware to different underlying basis in same device class The representation of equipment carries out unitized processing;
The call request processing unit can specifically include:
Transmission sub-unit is asked, for according to the target entity and the target labels, to the gateway middleware The request for obtaining the related data is sent, so that the gateway middleware is receiving the target formation infrastructure device submission To after data, according to it is described it is unitized treated that representation carries out data reduction, and the data after conversion are returned;
Data receiver subelement, for receiving existing on the target formation infrastructure device for the gateway middleware offer The related data of objective function point position.
Alternatively, the call request includes the request being configured to target formation infrastructure device objective function point position, institute Call request processing unit is stated specifically to can be used for
According to the target entity and the target labels, by described request is set to be issued to the target formation basis Equipment, so that the target formation infrastructure device is configured the objective function point position according to the request.
Wherein, the underlying basis equipment includes the underlying basis equipment of target wisdom building interior, wherein, the target Wisdom building interior is also deployed with gateway middleware, by the gateway middleware to different underlying basis in same device class The representation of equipment carries out unitized processing;
The call request processing unit specifically can be used for:
According to the target entity and the target labels, by described request is set to be sent to the gateway middleware, So that the gateway middleware is according to unitized treated representation and the target formation infrastructure device Original representation converts the numerical value carried in the request, using the numerical value after conversion, to the target Underlying basis equipment sends described set and asks, and performs to set according to the setting request by the target formation infrastructure device and grasp Make.
In addition, the device can also include:
First inquiry request receiving unit, for receiving inquiry target geographic position setting with target Haystack labels The request of standby object information;
First query result provides unit, for providing first number of each device object with Haystack labels According to.
Alternatively, the device can also include:
Second inquiry request receiving unit, for receiving asking for the inquiry associated function point position information of target device object It asks;
Second query result provides unit, for providing first number of the associated each function point position of the target device object According to.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It is realized by the mode of software plus required general hardware platform.Based on such understanding, the technical solution essence of the application On the part that the prior art contributes can be embodied in the form of software product in other words, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, it is used including some instructions so that a computer equipment (can be personal computer, server either network equipment etc.) performs some of each embodiment of the application or embodiment Method described in part.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for system or For system embodiment, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.System and system embodiment described above is only schematical, wherein the conduct The unit that separating component illustrates may or may not be it is physically separate, the component shown as unit can be or Person may not be physical location, you can be located at a place or can also be distributed in multiple network element.It can root Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill Personnel are without creative efforts, you can to understand and implement.
It above to data processing method and device provided herein, is described in detail, tool used herein The principle and implementation of this application are described for body example, and the explanation of above example is only intended to help to understand this Shen Method and its core concept please;Meanwhile for those of ordinary skill in the art, according to the thought of the application, specific real Apply there will be changes in mode and application range.In conclusion this specification content should not be construed as the limit to the application System.

Claims (15)

1. a kind of data processing method, which is characterized in that including:
The three classes entity of Haystack is realized under open building information exchange oBIX specifications, the three classes data entity includes ground Manage position entities, equipment entity and functions of the equipments point position entity;
By the three classes entity the device-dependent data of the underlying basis are carried out with unitized description, generates first number According to;
Application programming interface API is provided, is opened to carry out upper level applications using the API and the metadata Hair;
When receiving upper level applications to the call request of the API, according to the metadata carried in the request, mesh is determined The target entity under the oBIX specifications that operation object is inherited and the target labels under the Haystack specifications followed are marked, According to the target entity and the target labels, to be operated to the operation object.
2. according to the method described in claim 1, it is characterized in that, the geographical location entity includes the top of geographical location object Layer parent, member include being directed toward the class of lower floor, be directed toward the class on upper strata and being directed toward geographical location object associate device object Class.
3. according to the method described in claim 1, it is characterized in that, the equipment entity includes being respectively that each device class is built Vertical device class template, member include function point position possessed by the equipment of corresponding device class, will pass through succession pair The device class template of device class is answered, generates the metadata of device object.
4. according to the method described in claim 1, it is characterized in that, the member of functions of the equipments point position entity includes being directed toward it The reference of upper layer device.
5. according to the method described in claim 1, it is characterized in that, the call request includes obtaining target formation infrastructure device The request of objective function point position related data, it is described according to the target entity and the target labels, to the operation pair As being operated, including:
According to the target entity and the target labels, the target formation infrastructure device is obtained in objective function point position Related data, and it is supplied to the upper level applications.
6. according to the method described in claim 5, it is characterized in that, the underlying basis equipment includes target wisdom building interior Underlying basis equipment, wherein, the target wisdom building interior is also deployed with gateway middleware, passes through the gateway middleware Unitized processing is carried out to the representation of different underlying basis equipment in same device class;
It is described according to the target entity and the target labels, obtain the target formation infrastructure device in objective function point The related data of position, including:
According to the target entity and the target labels, sent to the gateway middleware and obtain asking for the related data It asks, so that the gateway middleware is after receiving the target formation infrastructure device and being submitted to data, according to described unitized Treated, and representation carries out data reduction, and the data after conversion are returned;
Receive that the gateway middleware provides on related data of the target formation infrastructure device in objective function point position.
7. according to the method described in claim 1, it is characterized in that, the call request is included to target formation infrastructure device mesh The request that mark function point position is configured, it is described according to the target entity and the target labels, to the operation object It is operated, including:
According to the target entity and the target labels, the setting request is issued to the target formation basis and is set It is standby, so that the target formation infrastructure device is configured the objective function point position according to the request.
8. the method according to the description of claim 7 is characterized in that the underlying basis equipment includes target wisdom building interior Underlying basis equipment, wherein, the target wisdom building interior is also deployed with gateway middleware, passes through the gateway middleware Unitized processing is carried out to the representation of different underlying basis equipment in same device class;
It is described by described request to be set to be issued to the target formation infrastructure device, including:
According to the target entity and the target labels, by described request is set to be sent to the gateway middleware, so as to The gateway middleware is original according to unitized treated the representation and the target formation infrastructure device Representation, the numerical value carried in the request is converted, using the numerical value after conversion, to the target formation Infrastructure device sends the setting request, according to described request is set to perform setting operation by the target formation infrastructure device.
9. it according to the method described in claim 1, it is characterized in that, further includes:
Receive the request of device object information of the inquiry target geographic position with target Haystack labels;
The metadata of each device object with Haystack labels is provided.
10. it according to the method described in claim 1, it is characterized in that, further includes:
Receive the request of the inquiry associated function point position information of target device object;
The metadata of the associated each function point position of the target device object is provided.
11. a kind of data processing equipment, which is characterized in that including:
Entity realizes unit, described for realizing the three classes entity of Haystack under open building information exchange oBIX specifications Three classes data entity includes geographical location entity, equipment entity and functions of the equipments point position entity;
Metadata generation unit, for being unitized by the three classes entity to the device-dependent data of the underlying basis Description, generates the metadata;
API provides unit, for providing application programming interface API, so as to using the AP I and the metadata into Row upper level applications are developed;
Call request processing unit, during for receiving upper level applications to the call request of the API, according to the request The metadata of middle carrying determines the target entity under the oBIX specifications that target operation object is inherited and is followed Target labels under Haystack specifications, so as to according to the target entity and the target labels, to the operation object It is operated.
12. according to the devices described in claim 11, which is characterized in that the call request includes acquisition target formation basis and sets The request of standby objective function point position related data, the call request processing unit are specifically used for:
According to the target entity and the target labels, the target formation infrastructure device is obtained in objective function point position Related data, and it is supplied to the upper level applications.
13. according to the devices described in claim 11, which is characterized in that the call request is included to target formation infrastructure device The request that objective function point position is configured, the call request processing unit are specifically used for:
According to the target entity and the target labels, the setting request is issued to the target formation basis and is set It is standby, so that the target formation infrastructure device is configured the objective function point position according to the request.
14. according to the devices described in claim 11, which is characterized in that further include:
First inquiry request receiving unit, for receiving the equipment pair that inquiry target geographic position carries target Haystack labels The request of image information;
First query result provides unit, for providing the metadata of each device object with Haystack labels.
15. according to the devices described in claim 11, which is characterized in that further include:
Second inquiry request receiving unit, for receiving the request of the inquiry associated function point position information of target device object;
Second query result provides unit, for providing the metadata of the associated each function point position of the target device object.
CN201611051525.3A 2016-11-23 2016-11-23 Data processing method and device Active CN108093020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611051525.3A CN108093020B (en) 2016-11-23 2016-11-23 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611051525.3A CN108093020B (en) 2016-11-23 2016-11-23 Data processing method and device

Publications (2)

Publication Number Publication Date
CN108093020A true CN108093020A (en) 2018-05-29
CN108093020B CN108093020B (en) 2020-12-18

Family

ID=62170298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611051525.3A Active CN108093020B (en) 2016-11-23 2016-11-23 Data processing method and device

Country Status (1)

Country Link
CN (1) CN108093020B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795500A (en) * 2019-09-25 2020-02-14 北京旷视科技有限公司 Method, device and system for putting face data into storage and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1591446A (en) * 2003-08-29 2005-03-09 国际商业机器公司 A method, system, and storage medium for providing a dynamic, multi-dimensional commodity modeling process
CN101013957A (en) * 2005-11-21 2007-08-08 Sap股份公司 Hierarchical, multi-tiered mapping and monitoring architecture for service-to-device re-mapping for smart items
CN101013956A (en) * 2005-11-21 2007-08-08 Sap股份公司 Hierarchical, multi-tiered mapping and monitoring architecture for smart items
CN101146129A (en) * 2007-10-31 2008-03-19 北京航空航天大学 Sensor network and communication method for realizing node software based on middleware
CN102202211A (en) * 2010-03-23 2011-09-28 武汉天华科技发展有限公司 Internet-of-things-technology-based intelligent security platform
CN102792615A (en) * 2009-12-18 2012-11-21 布利普斯尼普斯股份有限公司 Method and system for associating an object to a moment in time in a digital video
CN103345478A (en) * 2013-06-17 2013-10-09 武汉天罡信息技术有限公司 Universal identification coding system for smart city construction
CN103348344A (en) * 2010-12-30 2013-10-09 脸谱公司 Composite term index for graph data
CN103687082A (en) * 2013-12-12 2014-03-26 北京邮电大学 Intelligent building monitoring information processing method and system
CN204719434U (en) * 2015-05-22 2015-10-21 深圳市艾瑟网络技术有限公司 The intelligent domestic system of many-many communication mode can be realized
US20160212737A1 (en) * 2015-01-16 2016-07-21 Samsung Electronics Co., Ltd. Method and apparatus of transmitting control information in wireless communication systems

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1591446A (en) * 2003-08-29 2005-03-09 国际商业机器公司 A method, system, and storage medium for providing a dynamic, multi-dimensional commodity modeling process
CN101013957A (en) * 2005-11-21 2007-08-08 Sap股份公司 Hierarchical, multi-tiered mapping and monitoring architecture for service-to-device re-mapping for smart items
CN101013956A (en) * 2005-11-21 2007-08-08 Sap股份公司 Hierarchical, multi-tiered mapping and monitoring architecture for smart items
CN101146129A (en) * 2007-10-31 2008-03-19 北京航空航天大学 Sensor network and communication method for realizing node software based on middleware
CN102792615A (en) * 2009-12-18 2012-11-21 布利普斯尼普斯股份有限公司 Method and system for associating an object to a moment in time in a digital video
CN102202211A (en) * 2010-03-23 2011-09-28 武汉天华科技发展有限公司 Internet-of-things-technology-based intelligent security platform
CN103348344A (en) * 2010-12-30 2013-10-09 脸谱公司 Composite term index for graph data
CN103345478A (en) * 2013-06-17 2013-10-09 武汉天罡信息技术有限公司 Universal identification coding system for smart city construction
CN103687082A (en) * 2013-12-12 2014-03-26 北京邮电大学 Intelligent building monitoring information processing method and system
US20160212737A1 (en) * 2015-01-16 2016-07-21 Samsung Electronics Co., Ltd. Method and apparatus of transmitting control information in wireless communication systems
CN204719434U (en) * 2015-05-22 2015-10-21 深圳市艾瑟网络技术有限公司 The intelligent domestic system of many-many communication mode can be realized

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹冰,梁爽: "基于OBIX智能建筑服务集成平台的实现", 《COMPUTER CD SOFTWARE AND APPLICATIONS》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795500A (en) * 2019-09-25 2020-02-14 北京旷视科技有限公司 Method, device and system for putting face data into storage and storage medium

Also Published As

Publication number Publication date
CN108093020B (en) 2020-12-18

Similar Documents

Publication Publication Date Title
Han et al. Semantic context-aware service composition for building automation system
Moreno et al. User‐centric smart buildings for energy sustainable smart cities
CN108089450A (en) Wisdom building control method, apparatus and system
US20210141351A1 (en) Declarative intentional programming in machine-to-machine systems
CN111869186A (en) Mechanism for intelligent service layer to request abstract service
Schachinger et al. Semantics for smart control of building automation
CA2498539A1 (en) A system and method for building component applications using metadata defined mapping between message and data domains
Butzin et al. A model based development approach for building automation systems
Shrestha et al. Standardized framework for integrating domain-specific applications into the IoT
US20200220919A1 (en) Overlay resource trees in a communication network
CN108093020A (en) Data processing method and device
Egami et al. Ubiquitous cloud: Managing service resources for adaptive ubiquitous computing
Van den Bossche et al. Specifying an MQTT tree for a connected smart home
Han et al. Context-aware service composition framework in web-enabled building automation system
Koussaifi User-oriented description of emerging services in ambient systems
Mendes et al. Abstraction of heterogeneous iot devices for management of smart homes
Främling et al. Smart spaces for ubiquitously smart buildings
Rodríguez et al. Discovery and registration: finding and integrating components into dynamic systems
JP2022515831A (en) System for providing services
Casado-Mansilla et al. GreenSoul: An IoT platform for empowering users’ energy efficiency in public buildings
KR20200142747A (en) IoT Services and Virtual Objects Management System and Method in Hyper Connected Things Network, and Computer readable medium storing a program of the same
Takatsuka et al. Developing service platform for web context-aware services towards self-managing ecosystem
Loke et al. Formal mirror models: an approach to just-in-time reasoning for device ecologies
KR101666736B1 (en) Method for Generating User-Customized Complex Service in Multimedia Sensor Networks
Caffarel Rodriguez et al. Implementation of a building automation system based on semantic modeling

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1256081

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211108

Address after: Room 507, floor 5, building 3, No. 969, Wenyi West Road, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province

Patentee after: ZHEJIANG TMALL TECHNOLOGY Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: ALIBABA GROUP HOLDING Ltd.

TR01 Transfer of patent right