CN105138609A - XML language based household appliance description method - Google Patents

XML language based household appliance description method Download PDF

Info

Publication number
CN105138609A
CN105138609A CN201510484204.1A CN201510484204A CN105138609A CN 105138609 A CN105138609 A CN 105138609A CN 201510484204 A CN201510484204 A CN 201510484204A CN 105138609 A CN105138609 A CN 105138609A
Authority
CN
China
Prior art keywords
data
home appliance
information
attribute
description
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
CN201510484204.1A
Other languages
Chinese (zh)
Other versions
CN105138609B (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.)
Guangdong Real Design Intelligent Technology Co Ltd
Original Assignee
Guangdong Real Design Intelligent Technology 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 Guangdong Real Design Intelligent Technology Co Ltd filed Critical Guangdong Real Design Intelligent Technology Co Ltd
Priority to CN201510484204.1A priority Critical patent/CN105138609B/en
Publication of CN105138609A publication Critical patent/CN105138609A/en
Application granted granted Critical
Publication of CN105138609B publication Critical patent/CN105138609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The method relates to an XML language based household appliance description method. The method is characterized by comprising the steps that 1) according to a data structure of a device object, abstract summarization is performed to obtain classes of a plurality of objects, classes, attributes and operations of the objects are numerized, and an XML language is adopted for constructing a household appliance description file, wherein the household appliance description file is a self-descriptive file of object attributes and interfaces; 2) a format of the household appliance description file is a data structure file of a network object, a metadata format of device function information description and a data format of network resource information transmission and storage; 3) the device function information description is used for numerical representation for the attributes of the objects and summarization of the data type of a device function into 14 classes; 4) according the data type classes of the household appliance function and a grammatical definition of a device description text, corresponding operation is performed; and 5) when a household appliance is connected to a control network, after confirmation by a handshake program, a network gateway reads text content of the household appliance device description file, thereby finishing XML language based household appliance description. The XML language based household appliance description method has the beneficial effect of describing various complex relations between household appliances by using a relatively concise language.

Description

A kind of home appliance describing method based on XML language
Technical field
The present invention relates to a kind of home appliance describing method, particularly a kind of home appliance describing method based on XML language, be applicable to the device description problem solving intelligent appliance.Belong to household electrical appliances and administrative skill field thereof.
Background technology
Current, along with the progress of electronic technology and the decline of various electronic devices and components cost, interconnecting of household electrical appliances becomes a kind of trend.Interconnecting for household electrical appliances, the problem that first will solve is exactly the device description problem of household electrical appliances, only have product information, function, parameter and the complex relationship between them that home appliance is possessed to describe out clearly, could realize preferably interconnecting.But household electrical appliances are of a great variety due to it, Various Functions, so wanting the complex relationship between their function, parameter and various types of household electrical appliances to describe out is not a simple thing, and household electrical appliances due to its oneself MCU capacity itself little, so be the problem that we need to solve as how comparatively succinct language describes out the complex relationship of household electrical appliances.
Summary of the invention
Object of the present invention, it is the problem having no idea the various functions of household electrical appliances, parameter and complex relationship each other to describe out to solve prior art, a kind of home appliance describing method based on XML language is provided, with comparatively succinct language, various for household electrical appliances complex relationship is described out.
Object of the present invention can reach by taking following technical scheme:
Based on a home appliance describing method for XML language, it is characterized in that:
1) according to the feature of home appliance object, by the class that the data structure abstract generalization of device object is some objects, and the class of object, attribute and operation are quantized, adopt XML language to build home appliance description document, it is the self-described file of object properties and interface thereof;
2) form of described home appliance description document is the data layout that the data structure format of network object, the metadata format of functions of the equipments information description and network resource information transmit and store; The metadata that functions of the equipments information describes adopts text formatting to carry out storing and transmitting, and be character set and a rubidium marking adopting binary-coded character string composition, character set used meets the regulation of GB/T1988 and GB/T2312;
3) functions of the equipments information describes is represented by its attribute numerical value, by the data type of functions of the equipments, is summarized as 14 classes; Wherein, foundation class mainly describes the data transmission of each basic object of equipment and the definition of control command and transmits specification;
4) according to the data type classifications of home appliance function and the syntactic definition of device description text, specify a coding rule, make it the binary code set forming 8 hyte strings that application layer transmits;
5) when household electrical appliances equipment access net control, after hand shake procedure is assert, the content of text of home appliance description document reads by gateway, after interpreter program is explained with document form and resource management document form stored in gateway device medium, or with form of classifying stored in predetermined " token name dictionary " document; The home appliance completed based on XML language describes.
Object of the present invention can also reach by taking following technical scheme:
Further, create the system platform that is customer service, this system platform can be announced to client to each equipment of present customers and provide controlled business item on a web browser, and these business items are called Web service; Web service is made up of one or more Web object, or be made up of a series of service item or operation flow, Web object has the feature and advantage of conventional object technology, object oriented analysis technology OOA can be utilized, can carry out designing, develop and perform flexible and extendible application program fast and effectively.
Further, the object of define equipment and metadata are to make facility information description standard, it is the characteristic sum attribute describing facility information resource or data itself, the institutional framework of regulation numerical information, namely to the description of facility information resource structures, it is the self-described file of object properties and interface thereof; The meta-data pack of object carries out mutual required full detail containing with another object or program.
Further, according to the feature of home appliance object, by the class that the data structure abstract generalization of device object is some objects, and the class of object, attribute and operation are quantized, the structural data that component devices describes and metadata, form self-described file, and network node self-described files through network is issued, other network node can access these operations by network according to standardized Message Transmission mechanism, and sing on web service routine realizes the application of network.
Further, described object, is the set of all data elements relevant to a certain specific function, has same application function, perform similar task, be abstracted into standard data structure, is called " class " of object; The functional task that object performs, be called " attribute " of object, attribute can be made up of some levels; The electrical equipment of net control inside, can use Object--oriented method to describe; Electrical equipment, has attribute and the operation of electric type; Monitoring or a management electrical equipment, remove the attribute of a change object exactly by the operation of object; The attribute of object, by operation control authority, readablely to be write.
Further, a kind of electrical equipment in home appliance is set to controller, uses the operation of object to remove to access the association attributes with other electrical equipment objects of management; Operation has reading, write, management, monitoring; The operation instruction information sent is called the service of controlling " function ", and the field of definition of control operation is made up of " object " and " attribute " of type:
Operational order: {/Oj [/Xi</B1; B2; B3; / >/]/
Wherein: Oj is a jth object type mark; Xi is i-th attribute-bit of this object;
B1:FunctionID;B2:FunctionName;┄Bn:Parametern。
Further, the structurized text formatting of device object description document is the data structure format of network object, is the metadata format that Internet resources describe simultaneously, the data layout being also network resource information transmission and storing;
Character string is divided into some fields, defines symbol between field by a pair, comprises start-tag and end-tag defines:
● object definition accords with: "/" and "/";
● part defines symbol, comprises attribute section and operation part defines symbol: " [/ " and " /] ";
● function F unction defines symbol: " </ " and "/> ";
● substantially define symbol, as the segmentation between the separation sum functions inside between parameter, with "; ".
Further, the binary code set of 8 hyte strings that described application layer transmits, comprising:
1) field of definition of element coding
A. dtd-data type definition:
BYTE type: assignment scope is 0-255;
Boolean type: 1 and 0,1 is true, and 0 is false;
Text: English character, maximum 128 characters (standard A SCII code);
Chinese character, maximum 64 Chinese characters (GB/T2312);
Must not comprise in text to define with resource description and accord with identical character;
Array type: array length scope is 0-255;
B. resource description general-purpose attribute:
The sequence number of ClassID:0-99 class, 0 is System class, uniquely;
ObjectID:1-99 object identity, wherein ObjectID=1 is System class object, describes text for transmission equipment, is unique; Other ObjectID=2-99;
FatherGroup:10-99 group identifies, and is 0 and does not divide into groups;
The sequence number of FunctionID:0-255 function, can not take fixed function sequence number (increase form);
C. object elements grouping describes:
FatherGroup attribute is the ObjectID of the grouping Group class of class;
A same group of class Group class describes;
2) coding rule
The coding of this standard has three kinds of situations:
The constant mark value that the notation that this standard defines is assigned, it is specified by this standard, and user can not change;
ClassID: the sequence number of class, is made up of digital 1-99;
FunctionID: the sequence number of function, is become by 16 system arrays; Owing to adopting 8 hyte transmission, when only having one digit number, mend 0, as 01,02,0A for ten;
ElementType: element type, is made up of sequence number;
B. this standard regulation is by user-defined code, and this standard will not be assigned, and is the individual character keeping oneself product for ease of each producer, includes:
ObjectID: object identity, user inserts the cognizance code of this element object, and default value is two digits composition: parent object is 20,30 Then subobject is 21,22 31,32
FatherGroup: the group that object is subordinate to, user inserts the cognizance code of parent object group belonging to this object; Default value is the same;
ObjectName: object name, user inserts this functional object title of this enterprise custom, is the expansion of Chinese character or GB/T2312;
In addition such as AVMax:AV maximal value; AVMinimum:AV minimum value; AVStep:AV step-length etc. all should be inserted by design load by user;
C. the data of Boolean type: represent true with 1; Represent false with 0; Such as FunctionReport is that 1 expression is normal; Be that 0 expression is abnormal.
Further, the description of home appliance function its attribute numerical value will be represented, according to the data type of functions of the equipments abstract data structure, is summarized as 13 classes; Foundation class mainly describes the data transmission of each basic object of equipment and the definition of control command and transmits specification:
● systemic-function object
0.System object;
1.Device object: the details of description node itself, define the exclusive identification code of node;
2.File object: the data transmission procedure between description node and system;
● basic function object
3.AnalogValue object: the analog quantity in description node and the operation to analog quantity;
4.SwitchValue object: switching value is described, and the operation of switch amount;
5.EnumValue object: the amount of enumerating is described, and the operation to the amount of enumerating;
6.Time object: time data is described, and the operation to time data;
7.Event object: event data is described, and the operation to event data;
● complex functionality object
8.Schedule object: describe time triggered type task, comprise the task of setting-up time and execution;
9.Action object: the internal task describing state flip-over type, comprises the internal task of trigger state and execution;
● correlation function object
10.LoopAction object: describe the internal task that external event triggers, comprises outside trigger condition and inner performing of task;
11.ActionLoop object: describe the external tasks that internal activity triggers, comprises internal trigger condition and outside performing of task;
combination function object
12.Group object: the functional object being a combination, describes combinationally using of basic function and auxiliary function;
Further, when household electrical appliances equipment access net control, after hand shake procedure is assert, the content of device description text reads by gateway, after interpreter program is explained with document form (resource management file) stored in gateway device medium, or with form of classifying stored in predetermined " token name dictionary " document; Resource management file includes following content:
The system property of node device and apparatus characteristic information: the node address comprising distribution;
Recognition node device object, determines all properties and characteristic thereof;
The state of memory device and the real-time information of amendment thereof;
The mode of operation of object: normal, busyly, invalid maybe can to activate (suspended state);
Equipment resource management file should be easy to access and upgrade, and Structured Query Language (SQL) (SQL) can be used to visit these information of acquisition if be stored in relational database (" token name dictionary ").
Further, when having the remote user access gateway of browser function, all devices information data in device resource (configuration) management document reads by gateway, and convert corresponding web data to by the requirement of HTML (Hypertext Markup Language) (HTTP), send long-distance user to and form an exercisable page and be supplied to user browser.The mode of operation pages display can be form, keyboard, telepilot figure, or the image of complexity; Region of interest in operation pages has clear and definite link, points to relevant file, the destination address of file special part, or the address tag in link catalogue listing.Operation pages is made to become a virtual telepilot; Or
When having the remote user access gateway of browser function, all devices information data in device resource (configuration) management document reads by gateway, and convert corresponding web data to by the requirement of HTML (Hypertext Markup Language) (HTTP), send long-distance user to and form an exercisable page and be supplied to user browser.When a certain object of gateway or long-distance user's clicking operation page, the information of link will be converted into the control information of corresponding object by the page, and is sent on control bus; Equipment differentiates accessed equipment according to the destination address of information frame, and this equipment reads steering order, performs relevant operation, and has returned information.After gateway receives return message, refresh the device resource configuration management file in gateway, send a refreshing information to browser, the related content of the refresh operation page simultaneously, the overall process that complete operation controls.
The present invention has following outstanding beneficial effect:
1, the present invention is according to the feature of home appliance object, by the class that the data structure abstract generalization of device object is some objects, and the class of object, attribute and operation are quantized, adopt XML language to build home appliance description document, it is the self-described file of object properties and interface thereof; When household electrical appliances equipment access net control, after hand shake procedure is assert, the content of text of home appliance description document reads by gateway, after interpreter program is explained with document form and resource management document form stored in gateway device medium, or with form of classifying stored in predetermined " token name dictionary " document; The home appliance completed based on XML language describes; The problem that the various functions of household electrical appliances, parameter and complex relationship are each other described out therefore, it is possible to solution prior art is had no idea, has the beneficial effect various for household electrical appliances complex relationship being described out with comparatively succinct language.
2, the present invention is from the reality of China, take out a set of device Description Language standard geared to actual circumstances, the device resource of system is described and standard criterion to information data coding, not only enormously simplify in making, transmission and expense when calling software, and enable businessman and user grasp these technology easily, become a popular equipment parametric controller.Thus solve the requirement that all kinds of home appliance realizes interconnection, intercommunication and interoperability.
Accompanying drawing illustrates:
Fig. 1 is the structural representation of the specific embodiment of the invention.
Embodiment:
With reference to Fig. 1, a kind of home appliance describing method based on XML language that the present embodiment relates to, is characterized in that:
1) according to the feature of home appliance object, by the class that the data structure abstract generalization of device object is some objects, and the class of object, attribute and operation are quantized, adopt XML language to build home appliance description document, it is the self-described file of object properties and interface thereof;
2) form of described home appliance description document is the data layout that the data structure format of network object, the metadata format of functions of the equipments information description and network resource information transmit and store; The metadata that functions of the equipments information describes adopts text formatting to carry out storing and transmitting, and be character set and a rubidium marking adopting binary-coded character string composition, character set used meets the regulation of GB/T1988 and GB/T2312;
3) functions of the equipments information describes is represented by its attribute numerical value, by the data type of functions of the equipments, is summarized as 14 classes; Wherein, foundation class mainly describes the data transmission of each basic object of equipment and the definition of control command and transmits specification;
4) according to the data type classifications of home appliance function and the syntactic definition of device description text, specify a coding rule, make it the binary code set forming 8 hyte strings that application layer transmits;
5) when household electrical appliances equipment access net control, after hand shake procedure is assert, the content of text of home appliance description document reads by gateway, after interpreter program is explained with document form and resource management document form stored in gateway device medium, or with form of classifying stored in predetermined " token name dictionary " document; The home appliance completed based on XML language describes.
In the present embodiment:
Create the system platform that is customer service, this system platform can be announced to client to each equipment of present customers and provide controlled business item on a web browser, and these business items are called Web service; Web service is made up of one or more Web object, or be made up of a series of service item or operation flow, Web object has the feature and advantage of conventional object technology, object oriented analysis technology OOA can be utilized, can carry out designing, develop and perform flexible and extendible application program fast and effectively.
Further, the object of define equipment and metadata are to make facility information description standard, it is the characteristic sum attribute describing facility information resource or data itself, the institutional framework of regulation numerical information, namely to the description of facility information resource structures, it is the self-described file of object properties and interface thereof; The meta-data pack of object carries out mutual required full detail containing with another object or program.
Further, according to the feature of home appliance object, by the class that the data structure abstract generalization of device object is some objects, and the class of object, attribute and operation are quantized, the structural data that component devices describes and metadata, form self-described file, and network node self-described files through network is issued, other network node can access these operations by network according to standardized Message Transmission mechanism, and sing on web service routine realizes the application of network.
Further, described object, is the set of all data elements relevant to a certain specific function, has same application function, perform similar task, be abstracted into standard data structure, is called " class " of object; The functional task that object performs, be called " attribute " of object, attribute can be made up of some levels; The electrical equipment of net control inside, can use Object--oriented method to describe; Electrical equipment, has attribute and the operation of electric type; Monitoring or a management electrical equipment, remove the attribute of a change object exactly by the operation of object; The attribute of object, by operation control authority, readablely to be write.
Further, a kind of electrical equipment in home appliance is set to controller, uses the operation of object to remove to access the association attributes with other electrical equipment objects of management; Operation has reading, write, management, monitoring; The operation instruction information sent is called the service of controlling " function ", and the field of definition of control operation is made up of " object " and " attribute " of type:
Operational order: {/Oj [/Xi</B1; B2; B3; / >/]/
Wherein: Oj is a jth object type mark; Xi is i-th attribute-bit of this object;
B1:FunctionID;B2:FunctionName;┄Bn:Parametern。
Further, the structurized text formatting of device object description document is the data structure format of network object, is the metadata format that Internet resources describe simultaneously, the data layout being also network resource information transmission and storing;
Character string is divided into some fields, defines symbol between field by a pair, comprises start-tag and end-tag defines:
● object definition accords with: "/" and "/";
● part defines symbol, comprises attribute section and operation part defines symbol: " [/ " and " /] ";
● function F unction defines symbol: " </ " and "/> ";
● substantially define symbol, as the segmentation between the separation sum functions inside between parameter, with "; ".
Further, the binary code set of 8 hyte strings that described application layer transmits, comprising:
1) field of definition of element coding
A. dtd-data type definition:
BYTE type: assignment scope is 0-255;
Boolean type: 1 and 0,1 is true, and 0 is false;
Text: English character, maximum 128 characters (standard A SCII code);
Chinese character, maximum 64 Chinese characters (GB/T2312);
Must not comprise in text to define with resource description and accord with identical character;
Array type: array length scope is 0-255;
B. resource description general-purpose attribute:
The sequence number of ClassID:0-99 class, 0 is System class, uniquely;
ObjectID:1-99 object identity, wherein ObjectID=1 is System class object, describes text for transmission equipment, is unique; Other ObjectID=2-99;
FatherGroup:10-99 group identifies, and is 0 and does not divide into groups;
The sequence number of FunctionID:0-255 function, can not take fixed function sequence number (increase form);
C. object elements grouping describes:
FatherGroup attribute is the ObjectID of the grouping Group class of class;
A same group of class Group class describes;
2) coding rule
The coding of this standard has three kinds of situations:
The constant mark value that the notation that this standard defines is assigned, it is specified by this standard, and user can not change;
ClassID: the sequence number of class, is made up of digital 1-99;
FunctionID: the sequence number of function, is become by 16 system arrays; Owing to adopting 8 hyte transmission, when only having one digit number, mend 0, as 01,02,0A for ten;
ElementType: element type, is made up of sequence number;
B. this standard regulation is by user-defined code, and this standard will not be assigned, and is the individual character keeping oneself product for ease of each producer, includes:
ObjectID: object identity, user inserts the cognizance code of this element object, and default value is two digits composition: parent object is 20,30 Then subobject is 21,22 31,32
FatherGroup: the group that object is subordinate to, user inserts the cognizance code of parent object group belonging to this object; Default value is the same;
ObjectName: object name, user inserts this functional object title of this enterprise custom, is the expansion of Chinese character or GB/T2312;
In addition such as AVMax:AV maximal value; AVMinimum:AV minimum value; AVStep:AV step-length etc. all should be inserted by design load by user;
C. the data of Boolean type: represent true with 1; Represent false with 0; Such as FunctionReport is that 1 expression is normal; Be that 0 expression is abnormal.
Further, the description of home appliance function its attribute numerical value will be represented, according to the data type of functions of the equipments abstract data structure, is summarized as 13 classes; Foundation class mainly describes the data transmission of each basic object of equipment and the definition of control command and transmits specification:
● systemic-function object
0.System object;
1.Device object: the details of description node itself, define the exclusive identification code of node;
2.File object: the data transmission procedure between description node and system;
● basic function object
3.AnalogValue object: the analog quantity in description node and the operation to analog quantity;
4.SwitchValue object: switching value is described, and the operation of switch amount;
5.EnumValue object: the amount of enumerating is described, and the operation to the amount of enumerating;
6.Time object: time data is described, and the operation to time data;
7.Event object: event data is described, and the operation to event data;
● complex functionality object
8.Schedule object: describe time triggered type task, comprise the task of setting-up time and execution;
9.Action object: the internal task describing state flip-over type, comprises the internal task of trigger state and execution;
● correlation function object
10.LoopAction object: describe the internal task that external event triggers, comprises outside trigger condition and inner performing of task;
11.ActionLoop object: describe the external tasks that internal activity triggers, comprises internal trigger condition and outside performing of task;
combination function object
12.Group object: the functional object being a combination, describes combinationally using of basic function and auxiliary function;
Further, when household electrical appliances equipment access net control, after hand shake procedure is assert, the content of device description text reads by gateway, after interpreter program is explained with document form (resource management file) stored in gateway device medium, or with form of classifying stored in predetermined " token name dictionary " document; Resource management file includes following content:
The system property of node device and apparatus characteristic information: the node address comprising distribution;
Recognition node device object, determines all properties and characteristic thereof;
The state of memory device and the real-time information of amendment thereof;
The mode of operation of object: normal, busyly, invalid maybe can to activate (suspended state);
Equipment resource management file should be easy to access and upgrade, and Structured Query Language (SQL) (SQL) can be used to visit these information of acquisition if be stored in relational database (" token name dictionary ").
Further, when having the remote user access gateway of browser function, all devices information data in device resource (configuration) management document reads by gateway, and convert corresponding web data to by the requirement of HTML (Hypertext Markup Language) (HTTP), send long-distance user to and form an exercisable page and be supplied to user browser.The mode of operation pages display can be form, keyboard, telepilot figure, or the image of complexity; Region of interest in operation pages has clear and definite link, points to relevant file, the destination address of file special part, or the address tag in link catalogue listing.Operation pages is made to become a virtual telepilot; Or
When having the remote user access gateway of browser function, all devices information data in device resource (configuration) management document reads by gateway, and convert corresponding web data to by the requirement of HTML (Hypertext Markup Language) (HTTP), send long-distance user to and form an exercisable page and be supplied to user browser.When a certain object of gateway or long-distance user's clicking operation page, the information of link will be converted into the control information of corresponding object by the page, and is sent on control bus; Equipment differentiates accessed equipment according to the destination address of information frame, and this equipment reads steering order, performs relevant operation, and has returned information.After gateway receives return message, refresh the device resource configuration management file in gateway, send a refreshing information to browser, the related content of the refresh operation page simultaneously, the overall process that complete operation controls.
Further, intelligent home network equipment is as a kind of set of the object be deployed on network, and these objects identify through user and perform and realize the control to equipment.Various kinds of equipment on the network that browser shows, to the software interface liking certain operations, can access these operations by clicking, to realize control service.Attribute and the operation of object must have being described with the language of specification of standard, from the reality of China, take out a set of device Description Language standard geared to actual circumstances, not only enormously simplify in making, transmission and expense when calling software, and enable businessman and user grasp these technology easily, become a popular equipment parametric controller.
The above; be only the present invention's preferably specific embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the scope that the present invention discloses; be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, all belonged to protection scope of the present invention.

Claims (10)

1., based on a home appliance describing method for XML language, it is characterized in that:
1) according to the feature of home appliance object, by the class that the data structure abstract generalization of device object is some objects, and the class of object, attribute and operation are quantized, adopt XML language to build home appliance description document, it is the self-described file of object properties and interface thereof;
2) form of described home appliance description document is the data layout that the data structure format of network object, the metadata format of functions of the equipments information description and network resource information transmit and store; The metadata that functions of the equipments information describes adopts text formatting to carry out storing and transmitting, and be character set and a rubidium marking adopting binary-coded character string composition, character set used meets the regulation of GB/T1988 and GB/T2312;
3) functions of the equipments information describes is represented by its attribute numerical value, by the data type of functions of the equipments, is summarized as 14 classes; Wherein, foundation class mainly describes the data transmission of each basic object of equipment and the definition of control command and transmits specification;
4) according to the data type classifications of home appliance function and the syntactic definition of device description text, specify a coding rule, make it the binary code set forming 8 hyte strings that application layer transmits;
5) when household electrical appliances equipment access net control, after hand shake procedure is assert, the content of text of home appliance description document reads by gateway, after interpreter program is explained with document form and resource management document form stored in gateway device medium, or with form of classifying stored in predetermined " token name dictionary " document; The home appliance completed based on XML language describes.
2. a kind of home appliance describing method based on XML language according to claim 1, it is characterized in that: create the system platform that is customer service, this system platform can be announced to client to each equipment of present customers and provide controlled business item on a web browser, and these business items are called Web service; Web service is made up of one or more Web object, or be made up of a series of service item or operation flow, Web object has the feature and advantage of conventional object technology, utilize object oriented analysis technology OOA, can carry out designing, develop and perform flexible and extendible application program fast and effectively.
3. a kind of home appliance describing method based on XML language according to claim 1, it is characterized in that: the object of define equipment and metadata are to make facility information description standard, it is the characteristic sum attribute describing facility information resource or data itself, the institutional framework of regulation numerical information, namely to the description of facility information resource structures, it is the self-described file of object properties and interface thereof; The meta-data pack of object carries out mutual required full detail containing with another object or program.
4. a kind of home appliance describing method based on XML language according to claim 1, it is characterized in that: according to the feature of home appliance object, by the class that the data structure abstract generalization of device object is some objects, and by the class of object, attribute and operation quantize, the structural data that component devices describes and metadata, form self-described file, network node self-described files through network is issued, other network node can access these operations by network according to standardized Message Transmission mechanism, and sing on web service routine realizes the application of network.
5. a kind of home appliance describing method based on XML language according to claim 3 or 4, it is characterized in that: described object, it is the set of all data elements relevant to a certain specific function, there is same application function, perform similar task, be abstracted into standard data structure, be called " class " of object; The functional task that object performs, be called " attribute " of object, attribute can be made up of some levels; The electrical equipment of net control inside, uses Object--oriented method to describe; Electrical equipment, has attribute and the operation of electric type; Monitoring or a management electrical equipment, remove the attribute of a change object exactly by the operation of object; The attribute of object, by operation control authority, readablely to be write.
6. a kind of home appliance describing method based on XML language according to claim 1, is characterized in that: a kind of electrical equipment in home appliance is set to controller, uses the operation of object to remove to access the association attributes with other electrical equipment objects of management; Operation has reading, write, management, monitoring; The operation instruction information sent is called the service of controlling " function ", and the field of definition of control operation is made up of " object " and " attribute " of type:
Operational order: {/Oj [/Xi</B1; B2; B3; / >/]/
Wherein: Oj is a jth object type mark; Xi is i-th attribute-bit of this object;
B1:FunctionID;B2:FunctionName;---Bn:Parametern。
7. a kind of home appliance describing method based on XML language according to claim 1, it is characterized in that: the structurized text formatting of device object description document, it is the data structure format of network object, the metadata format that Internet resources describe simultaneously, the data layout being also network resource information transmission and storing;
Character string is divided into some fields, defines symbol between field by a pair, comprises start-tag and end-tag defines:
● object definition accords with: "/" and "/";
● part defines symbol, comprises attribute section and operation part defines symbol: " [/ " and " /] ";
● function F unction defines symbol: " </ " and "/> ";
● substantially define symbol, as the segmentation between the separation sum functions inside between parameter, with "; ".
Further, the binary code set of 8 hyte strings that described application layer transmits, comprising:
1) field of definition of element coding
A. dtd-data type definition:
BYTE type: assignment scope is 0-255;
Boolean type: 1 and 0,1 is true, and 0 is false;
Text: English character, maximum 128 characters (standard A SCII code);
Chinese character, maximum 64 Chinese characters (GB/T2312);
Must not comprise in text to define with resource description and accord with identical character;
Array type: array length scope is 0-255;
B. resource description general-purpose attribute:
The sequence number of ClassID:0-99 class, 0 is System class, uniquely;
ObjectID:1-99 object identity, wherein ObjectID=1 is System class object, describes text for transmission equipment, is unique; Other ObjectID=2-99;
FatherGroup:10-99 group identifies, and is 0 and does not divide into groups;
The sequence number of FunctionID:0-255 function, can not take fixed function sequence number (increase form);
C. object elements grouping describes:
FatherGroup attribute is the ObjectID of the grouping Group class of class;
A same group of class Group class describes;
2) coding rule
The coding of this standard has three kinds of situations:
The constant mark value that the notation that this standard defines is assigned, it is specified by this standard, and user can not change;
ClassID: the sequence number of class, is made up of digital 1-99;
FunctionID: the sequence number of function, is become by 16 system arrays; Owing to adopting 8 hyte transmission, when only having one digit number, mend 0, as 01,02,0A for ten;
ElementType: element type, is made up of sequence number;
B. this standard regulation is by user-defined code, and this standard will not be assigned, and is the individual character keeping oneself product for ease of each producer, includes:
ObjectID: object identity, user inserts the cognizance code of this element object, and default value is two digits composition: parent object is 20,30 Then subobject is 21,22 31,32
FatherGroup: the group that object is subordinate to, user inserts the cognizance code of parent object group belonging to this object; Default value is the same;
ObjectName: object name, user inserts this functional object title of this enterprise custom, is the expansion of Chinese character or GB/T2312;
In addition such as AVMax:AV maximal value; AVMinimum:AV minimum value; AVStep:AV step-length etc. all should be inserted by design load by user;
C. the data of Boolean type: represent true with 1; Represent false with 0; Such as FunctionReport is that 1 expression is normal; Be that 0 expression is abnormal.
8. a kind of home appliance describing method based on XML language according to claim 1, it is characterized in that: the description of home appliance function its attribute numerical value will be represented, according to the data type of functions of the equipments abstract data structure, be summarized as 13 classes; Foundation class mainly describes the data transmission of each basic object of equipment and the definition of control command and transmits specification:
● systemic-function object
0.System object;
1.Device object: the details of description node itself, define the exclusive identification code of node;
2.File object: the data transmission procedure between description node and system;
● basic function object
3.AnalogValue object: the analog quantity in description node and the operation to analog quantity;
4.SwitchValue object: switching value is described, and the operation of switch amount;
5.EnumValue object: the amount of enumerating is described, and the operation to the amount of enumerating;
6.Time object: time data is described, and the operation to time data;
7.Event object: event data is described, and the operation to event data;
● complex functionality object
8.Schedule object: describe time triggered type task, comprise the task of setting-up time and execution;
9.Action object: the internal task describing state flip-over type, comprises the internal task of trigger state and execution;
● correlation function object
10.LoopAction object: describe the internal task that external event triggers, comprises outside trigger condition and inner performing of task;
11.ActionLoop object: describe the external tasks that internal activity triggers, comprises internal trigger condition and outside performing of task;
combination function object
12.Group object: the functional object being a combination, describes combinationally using of basic function and auxiliary function.
9. a kind of home appliance describing method based on XML language according to claim 1, it is characterized in that: when household electrical appliances equipment access net control, after hand shake procedure is assert, the content of device description text reads by gateway, after interpreter program is explained with document form (resource management file) stored in gateway device medium, or with form of classifying stored in predetermined " token name dictionary " document; Resource management file includes following content:
The system property of node device and apparatus characteristic information: the node address comprising distribution;
Recognition node device object, determines all properties and characteristic thereof;
The state of memory device and the real-time information of amendment thereof;
The mode of operation of object: normal, busyly, invalid maybe can to activate (suspended state);
Equipment resource management file should be easy to access and upgrade, and Structured Query Language (SQL) (SQL) can be used to visit these information of acquisition if be stored in relational database (" token name dictionary ").
10. a kind of home appliance describing method based on XML language according to claim 1, it is characterized in that: when having the remote user access gateway of browser function, all devices information data in device resource (configuration) management document reads by gateway, and convert corresponding web data to by the requirement of HTML (Hypertext Markup Language) (HTTP), send long-distance user to and form an exercisable page and be supplied to user browser.The mode of operation pages display can be form, keyboard, telepilot figure, or the image of complexity; Region of interest in operation pages has clear and definite link, points to relevant file, the destination address of file special part, or the address tag in link catalogue listing.Operation pages is made to become a virtual telepilot; Or
When having the remote user access gateway of browser function, all devices information data in device resource (configuration) management document reads by gateway, and convert corresponding web data to by the requirement of HTML (Hypertext Markup Language) (HTTP), send long-distance user to and form an exercisable page and be supplied to user browser.When a certain object of gateway or long-distance user's clicking operation page, the information of link will be converted into the control information of corresponding object by the page, and is sent on control bus; Equipment differentiates accessed equipment according to the destination address of information frame, and this equipment reads steering order, performs relevant operation, and has returned information.After gateway receives return message, refresh the device resource configuration management file in gateway, send a refreshing information to browser, the related content of the refresh operation page simultaneously, the overall process that complete operation controls.
CN201510484204.1A 2015-08-04 2015-08-04 A kind of household appliance based on XML language describes method Active CN105138609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510484204.1A CN105138609B (en) 2015-08-04 2015-08-04 A kind of household appliance based on XML language describes method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510484204.1A CN105138609B (en) 2015-08-04 2015-08-04 A kind of household appliance based on XML language describes method

Publications (2)

Publication Number Publication Date
CN105138609A true CN105138609A (en) 2015-12-09
CN105138609B CN105138609B (en) 2019-07-30

Family

ID=54723957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510484204.1A Active CN105138609B (en) 2015-08-04 2015-08-04 A kind of household appliance based on XML language describes method

Country Status (1)

Country Link
CN (1) CN105138609B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446154A (en) * 2015-12-22 2016-03-30 广东美的制冷设备有限公司 Control method and system of Internet-of-Things household electric appliances
CN105511287A (en) * 2016-01-27 2016-04-20 珠海格力电器股份有限公司 Intelligent household appliance control method, device and system
CN105530317A (en) * 2016-01-12 2016-04-27 广东瑞德智能科技股份有限公司 Smart home control terminal UI automatic generation method
CN105657367A (en) * 2016-01-05 2016-06-08 山东康威通信技术股份有限公司 Supervision center integrated platform for prison multi-subsystem access and access method
CN107103539A (en) * 2016-02-22 2017-08-29 易保网络技术(上海)有限公司 A kind of method and system for the calculating premium that computer is performed
CN107493383A (en) * 2017-08-21 2017-12-19 吉林师范大学 Intelligent appliance mobile phone application end integration platform and application method based on extending mark language
CN108900597A (en) * 2018-06-26 2018-11-27 成都晶博电气科技有限公司 The method and the means of communication being marked using protocol data markup language
CN109002425A (en) * 2018-06-19 2018-12-14 平安科技(深圳)有限公司 Acquisition methods, terminal device and the medium of enterprise's upstream-downstream relationship
CN109361579A (en) * 2017-12-29 2019-02-19 广州Tcl智能家居科技有限公司 A kind of smart machine control method, system and storage medium
CN109525364A (en) * 2018-10-30 2019-03-26 北京计算机技术及应用研究所 A kind of telecommunication data protocol generalization based on XML describes method
CN110830455A (en) * 2019-10-22 2020-02-21 武汉理工光科股份有限公司 Equipment model description method
CN111061207A (en) * 2019-12-25 2020-04-24 湖南舞龙软件开发有限公司 Data-driven-based equipment description method
CN111200545A (en) * 2018-11-16 2020-05-26 中移(杭州)信息技术有限公司 Intelligent device access method and device
CN112015967A (en) * 2020-08-27 2020-12-01 北京基软科技有限公司 Object information description method for automatic processing and interaction of computer
CN112287177A (en) * 2020-11-25 2021-01-29 城云科技(中国)有限公司 Method and device for creating, changing, displaying and inquiring object label
CN112462645A (en) * 2020-11-10 2021-03-09 蘑菇物联技术(深圳)有限公司 Self-description method and device of universal device controller and storage medium
CN112839073A (en) * 2020-11-10 2021-05-25 北京凌阳伟业科技有限公司 Expandable remote management system and method for household appliances
CN115801859A (en) * 2022-11-10 2023-03-14 广东美的智能科技有限公司 Connection method between configuration equipment, industrial control device and system
WO2023092954A1 (en) * 2021-11-26 2023-06-01 华为云计算技术有限公司 Data governance method and device and storage medium
CN117857608A (en) * 2024-03-07 2024-04-09 安徽慕京信息技术有限公司 Method and system for collecting equipment data based on Internet of things platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032790A1 (en) * 2000-05-31 2002-03-14 Michael Linderman Object oriented communications system over the internet
CN102254047A (en) * 2011-08-22 2011-11-23 安徽省安泰科技有限公司 Object model-based information organization method
CN104166384A (en) * 2014-06-28 2014-11-26 广东瑞德智能科技股份有限公司 Method and special-purpose device for household electrical interconnection intercommunication bottom transmission

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032790A1 (en) * 2000-05-31 2002-03-14 Michael Linderman Object oriented communications system over the internet
CN102254047A (en) * 2011-08-22 2011-11-23 安徽省安泰科技有限公司 Object model-based information organization method
CN104166384A (en) * 2014-06-28 2014-11-26 广东瑞德智能科技股份有限公司 Method and special-purpose device for household electrical interconnection intercommunication bottom transmission

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐赞玉: "基于XML描述的信息家电远程监控系统的研究和设计", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446154A (en) * 2015-12-22 2016-03-30 广东美的制冷设备有限公司 Control method and system of Internet-of-Things household electric appliances
CN105657367A (en) * 2016-01-05 2016-06-08 山东康威通信技术股份有限公司 Supervision center integrated platform for prison multi-subsystem access and access method
CN105657367B (en) * 2016-01-05 2018-07-17 山东康威通信技术股份有限公司 A kind of the supervision center comprehensive platform and cut-in method of the access of prison multiple subsystem
CN105530317A (en) * 2016-01-12 2016-04-27 广东瑞德智能科技股份有限公司 Smart home control terminal UI automatic generation method
CN105511287A (en) * 2016-01-27 2016-04-20 珠海格力电器股份有限公司 Intelligent household appliance control method, device and system
CN107103539A (en) * 2016-02-22 2017-08-29 易保网络技术(上海)有限公司 A kind of method and system for the calculating premium that computer is performed
CN107493383A (en) * 2017-08-21 2017-12-19 吉林师范大学 Intelligent appliance mobile phone application end integration platform and application method based on extending mark language
CN109361579A (en) * 2017-12-29 2019-02-19 广州Tcl智能家居科技有限公司 A kind of smart machine control method, system and storage medium
CN109002425B (en) * 2018-06-19 2022-03-22 平安科技(深圳)有限公司 Method for acquiring upstream and downstream relations of enterprise, terminal device and medium
CN109002425A (en) * 2018-06-19 2018-12-14 平安科技(深圳)有限公司 Acquisition methods, terminal device and the medium of enterprise's upstream-downstream relationship
CN108900597A (en) * 2018-06-26 2018-11-27 成都晶博电气科技有限公司 The method and the means of communication being marked using protocol data markup language
CN108900597B (en) * 2018-06-26 2021-06-22 成都晶博电气科技有限公司 Method for marking by protocol data marking language and communication method
CN109525364A (en) * 2018-10-30 2019-03-26 北京计算机技术及应用研究所 A kind of telecommunication data protocol generalization based on XML describes method
CN111200545A (en) * 2018-11-16 2020-05-26 中移(杭州)信息技术有限公司 Intelligent device access method and device
CN111200545B (en) * 2018-11-16 2021-11-30 中移(杭州)信息技术有限公司 Intelligent device access method and device
CN110830455A (en) * 2019-10-22 2020-02-21 武汉理工光科股份有限公司 Equipment model description method
CN110830455B (en) * 2019-10-22 2021-12-10 武汉理工光科股份有限公司 Equipment model description method
CN111061207A (en) * 2019-12-25 2020-04-24 湖南舞龙软件开发有限公司 Data-driven-based equipment description method
CN112015967A (en) * 2020-08-27 2020-12-01 北京基软科技有限公司 Object information description method for automatic processing and interaction of computer
CN112839073B (en) * 2020-11-10 2023-07-04 北京凌阳伟业科技有限公司 Expandable household appliance remote management system and method
CN112462645A (en) * 2020-11-10 2021-03-09 蘑菇物联技术(深圳)有限公司 Self-description method and device of universal device controller and storage medium
CN112839073A (en) * 2020-11-10 2021-05-25 北京凌阳伟业科技有限公司 Expandable remote management system and method for household appliances
CN112287177A (en) * 2020-11-25 2021-01-29 城云科技(中国)有限公司 Method and device for creating, changing, displaying and inquiring object label
WO2023092954A1 (en) * 2021-11-26 2023-06-01 华为云计算技术有限公司 Data governance method and device and storage medium
CN115801859A (en) * 2022-11-10 2023-03-14 广东美的智能科技有限公司 Connection method between configuration equipment, industrial control device and system
CN115801859B (en) * 2022-11-10 2024-06-04 广东美的智能科技有限公司 Connection method, industrial control device and system between configuration equipment
CN117857608A (en) * 2024-03-07 2024-04-09 安徽慕京信息技术有限公司 Method and system for collecting equipment data based on Internet of things platform
CN117857608B (en) * 2024-03-07 2024-05-03 安徽慕京信息技术有限公司 Method and system for collecting equipment data based on Internet of things platform

Also Published As

Publication number Publication date
CN105138609B (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN105138609A (en) XML language based household appliance description method
CN104915413A (en) Health monitoring method and health monitoring system
CN106713357A (en) Universal network protocol analysis method
CN106383720A (en) Cloud sharing and collaborating method of software product prototype
CN101382893A (en) On-line assembling method for component based on Web service
CN105223823A (en) A kind of simple home appliance describing method
Michal et al. Interoperability through ontologies
US8271938B2 (en) Flexible base class library
CN102486731A (en) Method, device and system for enhancing visualization of software call stack of software
CN105824684B (en) A kind of implementation method of multi-mode big data software simulator
CN103399746A (en) Information management system convenient to develop secondarily and development method
Mecum et al. Preserving reproducibility: Provenance and executable containers in dataone data packages
CN102708206A (en) Data format description method
Jodłowski et al. Dynamic Object Roles in Conceptual Modeling and Databases
Huang et al. Web services for things
CN109582298A (en) A kind of software high-efficient disposition melts the design method of hair
Varga et al. The Core JSON API
Yang et al. eGovGrid: A service-grid-based framework for e-government interoperability
JPH11110391A (en) Document managing method
Lu et al. Stability of a Class of Hybrid Neutral Stochastic Differential Equations with Unbounded Delay
KR20220040697A (en) System for establishment of relational network between provisions and multiviewer
Amano et al. Unified Structured ID and Orthogonal Information Retrieval Technique on Chatroom-style Real-time Messaging Platform for Industrial Internet of Things
Li et al. Research on information transformation based on XMI
CN118296341A (en) Method, apparatus, device, medium, and program product for extracting feature data
CN117634496A (en) Information generation method, device, equipment and storage medium based on large language model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Description Method for Home Appliance Devices Based on XML Language

Effective date of registration: 20230725

Granted publication date: 20190730

Pledgee: Shunde Guangdong rural commercial bank Limited by Share Ltd.

Pledgor: GUANGDONG REAL-DESIGN INTELLIGENT TECHNOLOGY Co.,Ltd.

Registration number: Y2023980049766