CN103840858A - Data obtaining method and universal information model CIM server side - Google Patents

Data obtaining method and universal information model CIM server side Download PDF

Info

Publication number
CN103840858A
CN103840858A CN201410104488.2A CN201410104488A CN103840858A CN 103840858 A CN103840858 A CN 103840858A CN 201410104488 A CN201410104488 A CN 201410104488A CN 103840858 A CN103840858 A CN 103840858A
Authority
CN
China
Prior art keywords
data
cim
nfc
data segment
message packet
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
CN201410104488.2A
Other languages
Chinese (zh)
Other versions
CN103840858B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410104488.2A priority Critical patent/CN103840858B/en
Publication of CN103840858A publication Critical patent/CN103840858A/en
Application granted granted Critical
Publication of CN103840858B publication Critical patent/CN103840858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a data obtaining method and a universal information model CIM server side. After an NDEF information message is obtained from an NFC device, the NDEF information message is analyzed to obtain data sections, then data in the data sections are assigned to objects of CIM model types corresponding to the data sections according to an MOF file, data in the objects are sent to a CIM client side, and accordingly the CIM client side based on CIM data models has access to the NFC device based on NFC data models through the CIM server side, and data of the NFC device are obtained.

Description

Data capture method and Common Information Model CIM service end
Technical field
The present invention relates to information technology, relate in particular to a kind of data capture method and Common Information Model CIM service end.
Background technology
Management system is the system that computer system or information system are managed.Common Information Model (Common Information Model, CIM) system, as a kind of management system, comprises CIM client, CIM service end.CIM client is obtained the data message of managed devices by CIM service end, thereby the management application program that is arranged at CIM client manages managed devices according to above-mentioned data message.
Along with the development of technology of Internet of things, Internet of Things user is no longer satisfied with by near-field communication (Near Field Communication, NFC) technology is obtained state and the transportation process information of article, but further need to carry out the production schedule and control based on above-mentioned information, the coordinated management work such as computer aided quality management, this just need to introduce CIM system and carry out data information management, using NFC equipment as managed devices, by CIM system, NFC equipment is managed, but, due to CIM system and near-field communication (Near Field Communication, NFC) the equipment data model based on different respectively, CIM system based on CIM data model and NFC equipment based on NFC data model, and in prior art, lack the method for CIM data model and NFC data model mapping, the CIM client that causes prior art cannot realize based on CIM data model conducts interviews to the NFC equipment based on NFC data model, obtain the data of NFC equipment.
Summary of the invention
The invention provides a kind of data capture method and Common Information Model CIM service end, for the CIM client realizing based on CIM data model, the NFC equipment based on NFC data model is conducted interviews, obtain the data of NFC equipment.
First aspect of the present invention is to provide a kind of data capture method, comprising:
Obtain NDEF message packet from NFC equipment;
Described NDEF message packet is resolved, obtain each data segment;
By the data in each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to described data segment; Described MOF file is used to indicate the corresponding relation between CIM model class and each data segment; Described to as if described CIM model class is carried out to instantiation acquisition;
Send the data in described object to described CIM client.
Another aspect of the present invention is to provide a kind of Common Information Model CIM service end, comprising:
Acquisition module, for obtaining NDEF message packet from NFC equipment;
Parsing module, for described NDEF message packet is resolved, obtains each data segment;
Assignment module, for by the data of each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to described data segment; Described MOF file is used to indicate the corresponding relation between CIM model class and each data segment; Described to as if described CIM model class is carried out to instantiation acquisition;
Sending module, for sending the data of described object to described CIM client.
Data capture method provided by the invention and Common Information Model CIM service end, by CIM service end after NFC equipment obtains NDEF message packet, NDEF message packet is resolved, obtain each data segment, then by the data in each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to data segment, and then send the data in object to CIM client, thereby the CIM client realizing based on CIM data model conducts interviews to the NFC equipment based on NFC data model by CIM service end, obtains the data of NFC equipment.
Accompanying drawing explanation
The schematic flow sheet of a kind of data capture method that Fig. 1 provides for one embodiment of the invention;
The schematic flow sheet of a kind of data capture method that Fig. 2 provides for another embodiment of the present invention;
The structural representation of a kind of CIM service end that Fig. 3 provides for one embodiment of the invention;
The structural representation of a kind of CIM service end that Fig. 4 provides for another embodiment of the present invention.
Embodiment
The schematic flow sheet of a kind of data capture method that Fig. 1 provides for one embodiment of the invention, the method that the present embodiment provides, can be implemented by CIM service end, and the NFC equipment in the present embodiment can be applicable to the application scenarioss such as card reader, snap gauge plan, point-to-point information exchange, as shown in Figure 1, comprising:
101, obtain NDEF message packet from NFC equipment.
Wherein, NFC equipment is based on NFC data interchange format (NFC Data Exchange Format, NDEF) message is carried out transfer of data, a NDEF message can be made up of multiple NDEF records, every NDEF record comprises a payload, and the multiple data segments in load are defined within a NFC record type definition document.
Optionally, as (the CIM Object Manager of the CIM Object Manager in CIM service end, CIMOM) receive being used to indicate while obtaining the request of dynamic data from described NFC equipment that described CIM client sends, supplier (Provider) program of calling in CIM service end is obtained NDEF message packet from described NFC equipment.
Or optional, CIMOM, with Preset Time interval, calls Provider program and obtains NDEF message packet from NFC equipment.
102, NDEF message packet is resolved, obtain each data segment.
Data conversion module in CIM service end, according to NFC record type definition document, is resolved NDEF message packet, obtains each data segment.
103,, by the data in each data segment, according to managed object format (Meta Object Facility, MOF) file, assignment is in the object of CIM model class corresponding to described data segment.
Wherein, MOF file is used to indicate the corresponding relation between CIM model class and each data segment; Described to as if described CIM model class is carried out to instantiation acquisition.CIM model class comprises NFC equipment class and NFC labels class.
For example: NFC equipment class is specific as follows.
Figure BDA0000479087200000031
NFC labels class is specific as follows.
Figure BDA0000479087200000032
Figure BDA0000479087200000041
NFC data segment comprises keyword and value, specific as followsly enumerates three NFC data segments.
Keyword 1=" supplier ", value 1=" NFC equipment supplier A ";
Keyword 2=" device name ", value 2=" NFC device A ";
Keyword 3=" device numbering ", value 3=" 12345 ".
Based on this, the CIM model class of MOF file indication and NFC data segment corresponding relation are that the NFC equipment class in CIM model is corresponding successively: comprise keyword 2=" device name " NFC data segment, comprise the NFC data segment of keyword 1=" supplier " and comprise the NFC data segment of keyword 3=" device numbering ".Concrete, device name (device_name) the object correspondence of NFC equipment class comprises the NFC data segment of keyword 2=" device name "; Equipment supplier (vendor) the object correspondence of NFC equipment class comprises the NFC data segment of keyword 1=" supplier "; Device id (device_id) the object correspondence of NFC equipment class comprises the NFC data segment of keyword 3=" device numbering ".
CIMOM in CIM service end carries out instantiation according to the CIM model class of MOF file indication, thereby the object of Dynamic Generation CIM model class, then CIMOM is by Provider interface interchange Provider program, carry out and CIM service end in NFC data conversion module between carry out after safety certification passes through, obtain the data segment in NFC data conversion module, by the data assignment in data segment to the operation in the object of CIM model class corresponding to this data segment.In addition, call Provider program at CIMOM, execution need to be compiled into MOF file in CIMOM, thereby the definition of NFC equipment class is imported to CIMOM before carrying out the operation of instantiation according to the CIM model class of MOF file indication.
104, send out the data in object to CIM client.
Data in object are utilized after XML file encapsulates, based on hypertext transfer protocol (Hypertext transfer protocol, HTTP) agreement, sends to CIM client, thereby completes CIM client and obtain the process of NFC device data.
In the present embodiment, by after NFC equipment obtains NDEF message packet, NDEF message packet is resolved, obtain each data segment, then by the data in each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to data segment, and then send the data in object to CIM client, thereby the CIM client realizing based on CIM data model conducts interviews to the NFC equipment based on NFC data model by CIM service end, obtains the data of NFC equipment.
The schematic flow sheet of a kind of data capture method that Fig. 2 provides for another embodiment of the present invention, the method that the present embodiment provides, can be implemented by CIM service end, as shown in Figure 2, comprising:
201, receive the request that CIM client sends.
Wherein, request is used to indicate from NFC equipment obtains data, and the type of these data comprises dynamic data and/or static data, and this request, based on http protocol, comprises the mark of the object of acquisition request.
Whether the data that 202, judge institute's acquisition request are static data, if carry out 203, otherwise carry out 204-207.
According to the mark of object included in request, identify the attribute of this object, if the attribute of object is static data, the data of institute's acquisition request are static data; The attribute of object is dynamic data, and the data of institute's acquisition request are dynamic data.Wherein, for NFC equipment, static data comprises supplier information and equipment mode of operation information; Dynamic data comprises equipment working state, for example: equipment operating frequency, hold facility resource request, data type, data length, Data Identification and data content etc.
203,, according to the mark of object included in request, send the data in the object of storing in CIM object store to CIM client.
If the data of institute's acquisition request are static data, according to the mark of the object in request, from CIM object store, inquire about the object of this mark correspondence, after employing XML file encryption mode is encrypted the data in object, send to CIM client.Wherein, the data in the object of storing in CIM object store are to adopt following method to obtain: with Preset Time interval, obtain NDEF message packet from NFC equipment; NDEF message packet is resolved, obtain each data segment, by the data in each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to described data segment; If the data in data segment are static data, the object after described assignment is stored in CIM object store, if stored this object in CIM object store, utilize the object after above-mentioned assignment to upgrade the object of having stored in CIM object store.
If the data of 204 institute's acquisition request are dynamic data, obtain NDEF message packet from NFC equipment.
205, NDEF message packet is resolved, obtain each data segment.
Data conversion module in CIM service end, according to NFC record type definition document, is resolved NDEF message packet, obtains each data segment.
206,, by the data in each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to data segment.
Wherein, MOF file is used to indicate the corresponding relation between CIM model class and each data segment; Described to as if described CIM model class is carried out to instantiation acquisition.
CIMOM in CIM service end carries out instantiation according to the CIM model class of MOF file indication, thereby the object of Dynamic Generation CIM model class, then CIMOM is by Provider interface interchange Provider program, carry out and CIM service end in NFC data conversion module between carry out after safety certification passes through, obtain the data segment in NFC data conversion module, by the data assignment in data segment to the operation in the object of CIM model class corresponding to this data segment.In addition, call Provider program at CIMOM, execution need to be compiled into MOF file in CIMOM, thereby the definition of NFC equipment class is imported to CIMOM before carrying out the operation of instantiation according to the CIM model class of MOF file indication.
Further, also can work as data in data segment and be static data time, the data in object are stored in CIM object store.If stored this object in CIM object store, utilize the data in above-mentioned object to upgrade the object of having stored in CIM object store.
207, send the data in object to CIM client.
According to the mark of object included in request, send the data in object corresponding to mark to CIM client, before sending, also can utilize XML file to encapsulate the data in object, and then send to CIM client, obtain the process of NFC device data to complete CIM client.
In the present embodiment, by after NFC equipment obtains NDEF message packet, NDEF message packet is resolved, obtain each data segment, then by the data in each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to data segment, and then send the data in object to CIM client, thereby the CIM client realizing based on CIM data model conducts interviews to the NFC equipment based on NFC data model by CIM service end, obtains the data of NFC equipment.
The structural representation of a kind of CIM service end that Fig. 3 provides for one embodiment of the invention, as shown in Figure 3, comprising: acquisition module 31, parsing module 32, assignment module 33 and sending module 34.
Acquisition module 31, for obtaining NDEF message packet from NFC equipment.
Optionally, acquisition module 31, specifically in the time that being used to indicate of receiving that described CIM client sends obtained the request of dynamic data from described NFC equipment, obtains NDEF message packet from described NFC equipment.
Or optional, acquisition module 31, specifically for Preset Time interval, obtains NDEF message packet from NFC equipment.
Parsing module 32, is connected with acquisition module 31, for described NDEF message packet is resolved, obtains each data segment.
Assignment module 33, is connected with parsing module 32, and for by the data of each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to described data segment.
Wherein, MOF file is used to indicate the corresponding relation between CIM model class and each data segment; Described to as if described CIM model class is carried out to instantiation acquisition.
Sending module 34, is connected with assignment module 33, for send the data of object to described CIM client.
In the present embodiment, by after NFC equipment obtains NDEF message packet, NDEF message packet is resolved, obtain each data segment, then by the data in each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to data segment, and then send the data in object to CIM client, thereby the CIM client realizing based on CIM data model conducts interviews to the NFC equipment based on NFC data model by CIM service end, obtains the data of NFC equipment.
The structural representation of a kind of CIM service end that Fig. 4 provides for another embodiment of the present invention, as shown in Figure 4, on the basis of a upper embodiment, the CIM service end in the present embodiment, further comprises:
Memory module 35, is connected with assignment module 33, if be static data for the data of data segment, the object after described assignment is stored in CIM object store.
Based on this, sending module 34, be connected with memory module 35, specifically in the time that being used to indicate of receiving that described CIM client sends obtained the request of static data from described NFC equipment, send the data in the object of storing in described CIM object store to described CIM client.
In the present embodiment, by after NFC equipment obtains NDEF message packet, NDEF message packet is resolved, obtain each data segment, then by the data in each data segment, according to MOF file, assignment is in the object of CIM model class corresponding to data segment, and then send the data in object to CIM client, thereby the CIM client realizing based on CIM data model conducts interviews to the NFC equipment based on NFC data model by CIM service end, obtains the data of NFC equipment.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, in the time carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a data capture method, is characterized in that, comprising:
Obtain NFC data interchange format NDEF message packet from near-field communication NFC equipment;
Described NDEF message packet is resolved, obtain each data segment;
By the data in each data segment, according to managed object format MOF file, assignment is in the object of CIM model class corresponding to described data segment; Described MOF file is used to indicate the corresponding relation between CIM model class and each data segment; Described to as if described CIM model class is carried out to instantiation acquisition;
Send the data in described object to described CIM client.
2. data capture method according to claim 1, is characterized in that, describedly obtains NFC data interchange format NDEF message packet from near-field communication NFC equipment, comprising:
In the time that being used to indicate of receiving that described CIM client sends obtained the request of dynamic data from described NFC equipment, obtain NDEF message packet from described NFC equipment.
3. data capture method according to claim 1, is characterized in that, describedly obtains NFC data interchange format NDEF message packet from near-field communication NFC equipment, comprising:
With Preset Time interval, obtain NDEF message packet from NFC equipment.
4. according to the data capture method described in claim 1-3 any one, it is characterized in that, described by the data in each data segment, according to managed object format MOF file, assignment in the object of CIM model class corresponding to described data segment after, also comprise:
If the data in data segment are static data, the object after described assignment is stored in CIM object store.
5. data capture method according to claim 4, is characterized in that, described data in described CIM client transmission object, comprising:
In the time that being used to indicate of receiving that described CIM client sends obtained the request of static data from described NFC equipment, send the data in the object of storing in described CIM object store to described CIM client.
6. a Common Information Model CIM service end, is characterized in that, comprising:
Acquisition module, for obtaining NFC data interchange format NDEF message packet from near-field communication NFC equipment;
Parsing module, for described NDEF message packet is resolved, obtains each data segment;
Assignment module, for by the data of each data segment, according to managed object format MOF file, assignment is in the object of CIM model class corresponding to described data segment; Described MOF file is used to indicate the corresponding relation between CIM model class and each data segment; Described to as if described CIM model class is carried out to instantiation acquisition;
Sending module, for sending the data of described object to described CIM client.
7. CIM service end according to claim 6, is characterized in that,
Described acquisition module, specifically in the time that being used to indicate of receiving that described CIM client sends obtained the request of dynamic data from described NFC equipment, obtains NDEF message packet from described NFC equipment.
8. CIM service end according to claim 6, is characterized in that,
Described acquisition module, specifically for Preset Time interval, obtains NDEF message packet from NFC equipment.
9. according to the CIM service end described in claim 6-8 any one, it is characterized in that, described CIM service end, also comprises:
Memory module, if be static data for the data of data segment, stores the object after described assignment in CIM object store into.
10. CIM service end according to claim 9, is characterized in that,
Described sending module, specifically in the time that being used to indicate of receiving that described CIM client sends obtained the request of static data from described NFC equipment, sends the data in the object of storing in described CIM object store to described CIM client.
CN201410104488.2A 2014-03-19 2014-03-19 Data capture method and Common Information Model CIM service end Active CN103840858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410104488.2A CN103840858B (en) 2014-03-19 2014-03-19 Data capture method and Common Information Model CIM service end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410104488.2A CN103840858B (en) 2014-03-19 2014-03-19 Data capture method and Common Information Model CIM service end

Publications (2)

Publication Number Publication Date
CN103840858A true CN103840858A (en) 2014-06-04
CN103840858B CN103840858B (en) 2016-03-23

Family

ID=50804049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410104488.2A Active CN103840858B (en) 2014-03-19 2014-03-19 Data capture method and Common Information Model CIM service end

Country Status (1)

Country Link
CN (1) CN103840858B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284087A (en) * 2018-09-10 2019-01-29 郑州云海信息技术有限公司 A kind of method, device and equipment based on CIM model exploitation MOF file
CN112699146A (en) * 2020-12-31 2021-04-23 新奥数能科技有限公司 Data pushing method and device based on general information model, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177477A1 (en) * 2001-12-28 2003-09-18 Daniel Fuchs Java to NSMP MIB mapping
CN1523817A (en) * 2003-02-20 2004-08-25 �Ҵ���˾ Method and system for managing devices in a network
US20080310635A1 (en) * 2007-06-15 2008-12-18 Acuna Jorge D Apparatus, system, and method for managing license keys
CN102571427A (en) * 2010-12-31 2012-07-11 上海可鲁系统软件有限公司 Method for naming and analyzing CIM (common information model) resources in distributed systems
CN102750358A (en) * 2012-06-12 2012-10-24 中国电力科学研究院 Mapping method and system of system data model to common information model (CIM)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177477A1 (en) * 2001-12-28 2003-09-18 Daniel Fuchs Java to NSMP MIB mapping
CN1523817A (en) * 2003-02-20 2004-08-25 �Ҵ���˾ Method and system for managing devices in a network
US20080310635A1 (en) * 2007-06-15 2008-12-18 Acuna Jorge D Apparatus, system, and method for managing license keys
CN102571427A (en) * 2010-12-31 2012-07-11 上海可鲁系统软件有限公司 Method for naming and analyzing CIM (common information model) resources in distributed systems
CN102750358A (en) * 2012-06-12 2012-10-24 中国电力科学研究院 Mapping method and system of system data model to common information model (CIM)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284087A (en) * 2018-09-10 2019-01-29 郑州云海信息技术有限公司 A kind of method, device and equipment based on CIM model exploitation MOF file
CN112699146A (en) * 2020-12-31 2021-04-23 新奥数能科技有限公司 Data pushing method and device based on general information model, server and storage medium

Also Published As

Publication number Publication date
CN103840858B (en) 2016-03-23

Similar Documents

Publication Publication Date Title
US8560713B2 (en) Method and system for mediating enterprise service access for smart devices
CN110601952A (en) Multi-channel message notification sending method and device
CN104038528B (en) Relay, system and method
CN102811379B (en) A kind of television set, message treatment method and system
CN103209223A (en) Distributed application conversation information sharing method and system and application server
US8478714B2 (en) Integrated distribution management system channel adapter
US10560407B2 (en) Payload description for computer messaging
CN105786913A (en) Cloud manufacturing platform oriented ERP integrated database service interface encapsulation system and method
CN109284106A (en) Method for release management, electronic device and the readable storage medium storing program for executing of business rule
CN104484958A (en) Express delivery pickup method and system for intelligent express delivery cabinet
CN103488696A (en) Business query method, device and system of CPE (customer premises equipment), ACS (auto-configuration server) and CPE
CN110380775B (en) Large-scale multi-service satellite constellation operation and management system and working method thereof
CN105099769A (en) Method, device and system for processing abnormal operations of service platform
TW201316812A (en) Method of reducing message transmission between DM client and DM server and related communication device
CN103733199A (en) Mobile APP for design management framework
CN105224594B (en) Service-oriented architecture data interconnection query system and query method
EP2874059A1 (en) Personal cloud storage chain service system and method
CN103840858B (en) Data capture method and Common Information Model CIM service end
CN106797393B (en) Method for assigning actions to tags within a network, corresponding network and control device
CN104320415B (en) A kind of substation equipment kinematic insert formula specification analytic method
CN109995782B (en) Information processing method, device, system and computer storage medium
CN112511631A (en) Control system and method of intelligent device
US20180102996A1 (en) Payload description for computer messaging
KR102051425B1 (en) Apparatus and method for integrated management of advertisement platform
CN111045928A (en) Interface data testing method, device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant