A device description file generation method and related device

By combining the functional description content of the device and generating the functional description components, the programming efficiency problem caused by the device description file generation method in the prior art is solved, and a more efficient programming process is achieved.

CN114546336BActive Publication Date: 2025-03-21CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011340643.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-25
Publication Date
2025-03-21
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

The generation method of device description files in the prior art leads to low programming efficiency, and programmers need to repeat work, which consumes time and effort.

Method used

By obtaining M function description contents of the device, combining these contents, N function description components are obtained, and a description file including M function description contents and N function description components are generated.

Benefits of technology

Programming directly through functional description components without repeated programming work, improving programming efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546336B_ABST
    Figure CN114546336B_ABST
Patent Text Reader

Abstract

The present invention provides a device description file generation method and related devices, which relate to the technical field of computer technology. The method comprises: obtaining M function description contents of a device; performing a combination operation on the M function description contents to obtain N function description components; and generating a description file including the M function description contents and the N function description components. The present invention can improve the efficiency of programming.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer technology, and in particular to a method for generating a device description file and related equipment. Background Art

[0002] The object model is a description of what a device is and what it can do. The content of the object model mainly includes the device identity, connection status, description information, as well as the device's properties, services, and events. The latter three constitute the functional definition of the device. Among them, properties describe the state that can exist continuously when the device is running, such as the power switch, the target temperature of the air conditioner, the brightness of the light, etc.; services describe the actions and instructions that the device can be called remotely to execute, which usually takes a certain amount of time to execute, such as device reset, restart, password change, etc.; events generally contain notification information that the device needs to be perceived and processed by the outside in a timely manner. This type of information cannot be obtained by querying the properties of the object, such as faults, alarms, etc. In addition, the object model can be described by defining a description language for the object.

[0003] At present, the digital description of devices mainly adopts the ICA (IoT Connectivity Alliance) object model standard, but the ICA object model standard defines that the device only has the state of the object, the file information of the object, and the function definition of the object, and the functions are relatively scattered. For the complex functions of the device, different functional elements need to be combined when programming the device, which may cause the programming staff to repeat work and waste more time and energy. It can be seen that the programming efficiency is low based on the method of generating device description files in the prior art. Summary of the invention

[0004] The embodiments of the present invention provide a method, an apparatus and an electronic device for generating a device description file, so as to solve the problem of low programming efficiency based on the method for generating a device description file in the prior art.

[0005] In a first aspect, an embodiment of the present invention provides a method for generating a device description file, comprising:

[0006] Obtain M functional description contents of the device;

[0007] Performing a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include a target function description component corresponding to the plurality of function description contents, and the N is less than the M;

[0008] Generate a description file including the M function description contents and the N function description components.

[0009] In a second aspect, an embodiment of the present invention provides a device for generating a device description file, including:

[0010] An acquisition module, used to acquire M functional description contents of the device;

[0011] An execution module, configured to perform a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include a target function description component corresponding to the plurality of function description contents, and the N is less than the M;

[0012] A generation module is used to generate a description file including the M function description contents and the N function description components.

[0013] In a third aspect, an embodiment of the present invention provides an electronic device, including a transceiver and a processor, wherein the transceiver is used to obtain M function description contents of the device;

[0014] The processor is configured to perform a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include a target function description component corresponding to the plurality of function description contents, and the N is less than the M;

[0015] The processor is further used to generate a description file including the M function description contents and the N function description components.

[0016] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the device description file generation method described in the first aspect above.

[0017] In a fourth aspect, an embodiment of the present invention provides a readable storage medium, characterized in that a program or instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of generating a device description file provided by the embodiment of the present invention are implemented.

[0018] In an embodiment of the present invention, M functional description contents of a device are obtained, and a combination operation is performed on the M functional description contents to obtain N functional description components. Furthermore, a description file including the M functional description contents and the N functional description components is generated. Since the functional description components are obtained by performing a combination operation on the functional description contents, the device can be programmed directly through the functional description components without the need for repeated programming work, thereby improving programming efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1is a flow chart of a method for generating a device description file provided by an embodiment of the present invention;

[0020] Figure 2 is a structural diagram of a device description model provided by an embodiment of the present invention;

[0021] Figure 3 is a schematic diagram of a device description language provided by an embodiment of the present invention;

[0022] Figure 4 is another device description language schematic diagram provided by an embodiment of the present invention;

[0023] Figure 5 is a schematic diagram of a washing machine definition provided by an embodiment of the present invention;

[0024] Figure 6 is a structural diagram of a device description file generating device provided by an embodiment of the present invention;

[0025] Figure 7 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.

[0028] See also Figure 1 , Figure 1 is a flow chart of a method for generating a device description file provided by an embodiment of the present invention. Figure 1 As shown, the following steps are included:

[0029] Step 101: Obtain M functional description contents of a device.

[0030] It should be noted that the architecture of the existing device description object model includes the state of the object, the object's archive information and the object's functional definition. Among them, the state of the object refers to the device's online state, offline state, activated state, inactivated state, etc.; the object's archive information is a static description of the device's identity details. For example, if the device is an air conditioner, the object's archive information can indicate that the device's identity is an air conditioner; the object's functional definition includes attributes, services and events. The attribute function is the state of the device during operation, the service function is the work or instruction that the device is remotely called to execute, and the event function is the information, alarm, fault notification, etc. that the device actively reports. The embodiment of the present invention is based on the architecture of the existing device description object model and improves the architecture of the device description object model.

[0031] Among them, based on the functions of the device, the functions of the device are digitized to obtain the corresponding device function description content. The functions of the device include attribute functions, service functions and event functions. The service functions can also be expressed as behavioral functions. Depending on the type of device, the attribute functions may include brightness, temperature, switch, and humidity. Depending on the different industries to which the device belongs or the purpose of the device, the content included in the behavioral functions of the device may be different. For example, the behavioral functions of a washing machine for washing clothes may include setting time, soaking, washing, single rinsing, double rinsing, dehydration, and drying. The behavioral functions of a rice cooker for cooking food may include quick cooking, standard cooking, soaking cooking, porridge cooking, soup cooking, etc. The various behavioral functions of washing machines and rice cookers can be described digitally.

[0032] Step 102: Perform a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include target function description components corresponding to multiple function description contents, and N is less than M.

[0033] It should be noted that programming the complex functions of the device may require calling multiple function description contents. Taking a washing machine as an example, the washing machine may need to execute the switch in the attribute function to turn on or off the operation of the washing machine when performing the complex function of standard washing. It may need to execute the set time of the behavior function to select the working time of the washing machine. It may also need to execute the behavior functions such as soaking, washing, one rinse, two rinses, and dehydration to select the working content of the washing machine. Accordingly, in the programming process of defining the washing machine, the description contents of the above functions need to be called; in the case of performing the operation of fast washing on the washing machine, it may also need to execute the switch in the attribute function to turn on or off the operation of the washing machine. It may need to execute the set time of the behavior function to select the working time of the washing machine. It may also need to execute the behavior functions such as washing, one rinse, and dehydration to select the working content of the washing machine. Accordingly, in the programming process of defining the washing machine, the description contents of the above functions need to be called.

[0034] Among them, quick washing and standard washing both include switches in the execution attribute function and the set duration of the execution behavior function. In addition, quick washing also includes behavior functions such as washing, one rinse and dehydration. Standard washing also includes soaking, washing, one rinse, two rinses, dehydration and other behavior functions. When calling the washing machine function description content for complex function programming, if different elements need to be combined to complete the programming, programmers need to perform repetitive work, the programming efficiency is low, and it may cause a waste of manpower and time.

[0035] Therefore, the description contents of the switch in the attribute function and the working time in the behavior function can be combined to obtain the corresponding function description components; the behavior functions such as washing, one rinse and dehydration can be combined to obtain the function description component of quick laundry; the behavior functions such as soaking, washing, one rinse, two rinses and dehydration can also be combined to obtain the function description component of standard laundry. The programming requirements can be met by simply calling the above function description components.

[0036] In the embodiment of the present invention, a component layer is added based on the function layer of the existing object model, and a combination operation is performed on the function description content of the device according to the operation to be performed by the device to obtain a function description component including one or more function description contents. In addition, according to the characteristics of different devices, the function description contents may be different, and the corresponding function description components may also be different.

[0037] Step 103: Generate a description file including M function description contents and N function description components.

[0038] It should be noted that the acquired description file can be used to call the description file to program the control program of the device.

[0039] Among them, by digitally describing the functions of the device, multiple function description contents can be obtained, and then the multiple function description contents are combined according to the characteristics of the device to obtain a function description component. Generally speaking, a function description component can include one or more function description contents, and any function description content can correspond to a function description component. Therefore, when programming the device, the content of the function description component can be called through the interface of the component layer, that is, one or more function description contents corresponding to a function description component can be directly called, thereby eliminating the need to call the function description content of the function layer multiple times. Generally speaking, the content of the function description component can be expressed through a description file. Since the function description component includes one or more function description contents, the function description content can be included in the description file of the component layer.

[0040] In an embodiment of the present invention, M functional description contents of a device are obtained, and a combination operation is performed on the M functional description contents to obtain N functional description components. Furthermore, a description file including the M functional description contents and the N functional description components is generated. Since the functional description components are obtained by performing a combination operation on the functional description contents, the device can be programmed directly through the functional description components without the need for repeated programming work, thereby improving programming efficiency.

[0041] As an optional implementation, the N function description components include at least one common function description component and at least one exclusive function description component, wherein:

[0042] At least one common function description component includes a target function description component corresponding to a plurality of function description contents; and / or

[0043] At least one dedicated function description component includes a target function description component corresponding to a plurality of function description contents.

[0044] Among them, common functions refer to device functions that do not require distinguishing the types of devices and are possessed by multiple types of devices. The digital description corresponding to the common functions is the common function description content. By performing combination operations on the common function description content, common function description components can be obtained. For example, each type of device has a switch function; exclusive functions, also known as industry functions, refer to the digital description of the exclusive functions of each type of device based on the characteristics of different types of devices to obtain exclusive function description content. By performing combination operations on the exclusive function description content, exclusive function description components can be obtained. Similar devices from different manufacturers have basically the same exclusive functions. For example, a washing machine has an exclusive function of washing, and an air conditioner has an exclusive function of cooling. Washing machines from different manufacturers have the same or similar exclusive functions of washing, and air conditioners from different manufacturers have the same or similar exclusive functions of cooling.

[0045] like Figure 2 As shown, the object model corresponding to the embodiment of the present invention has a three-layer architecture of information layer, component layer, and function layer. On the basis of the existing object model, the state information of the object and the archival information of the object are combined into the information layer, and a component layer is newly added above the function layer. The description content corresponding to the component layer is the function description component. In addition, the component layer also includes public components and industry components. The public components correspond to the public function components obtained by performing a combination operation on the relevant public function description content, and the industry components correspond to the industry function components obtained by performing a combination operation on the relevant exclusive function description content. An interface is provided at the component layer, and the description file can be called through the interface of the component layer.

[0046] In this implementation, the function description components include common function description components and exclusive function description components, which subdivide the combination of the function description content of the device, and the digital description of the device can be more accurate.

[0047] Optionally, the M function description contents include: at least one attribute function description content, at least one behavior function description content and at least one event function description content;

[0048] The N function description components include: at least one of a first target function description component and a second target function description component;

[0049] The functional description content corresponding to the first target functional description component includes: at least one attribute functional description content and at least one behavior functional description content;

[0050] The functional description content corresponding to the second target functional description component includes: at least two behavioral functional description contents.

[0051] It should be noted that in the existing object model, functions include attributes, behaviors and events, and correspondingly, the function description content includes attribute function description content, function description content and event function description content.

[0052] Among them, the first target function description component can be a common function description component. For example, different types of equipment have the attribute function of a switch and the behavior function of setting a duration. The switch and the setting duration can be combined to obtain the corresponding first target function description component. The second target function can be an exclusive function description component. For example, different types of equipment have different exclusive functions. The washing, rinsing, and dehydration in the behavior functions of the washing machine are combined to obtain the corresponding second target function description component. In this implementation, since the M function description contents include at least one attribute function description content, at least one behavior function description content, and at least one event function description content, the description of the device is relatively detailed, so that a more accurate description file can be obtained.

[0053] Optionally, the M functional descriptions include:

[0054] The target function description content describes the target function in the form of a bit map, wherein the target function includes K sub-functions, the bit map includes K bits, each bit is used to indicate the functional state of a sub-function, and K is an integer greater than or equal to 1.

[0055] It should be noted that the current IoT platform describes the object model by defining a description language for objects, called TSL (Thing Specification Language). TSL supports seven data types: integer, floating point, enumeration, Boolean, string, time, and JSON (JavaScript Object Notation) objects. JavaScript is an object-based and event-driven client-side scripting language with relative security.

[0056] Among them, in the embodiment of the present invention, the target function can be described in the form of a bitmap, and any sub-function of the target function corresponds to a bit. The bit can also be used to indicate the functional state of the sub-function, and the functional state of the sub-function can be yes or no, occurred or not occurred, present or absent. A bit is a unit of information volume, which is the smallest unit of information volume. The data format of a bit is a bitmap, and the keyword is "bitmap". Each bit represents a meaning. In the case of a large amount of data storage of the same type, a bitmap format can be used for storage, transmission and calculation.

[0057] like Figure 3 As shown in the figure, 10 alarm messages (alarm 1 to alarm 10) are stored in the Boolean data format in the TSL language, where one alarm message contains one field and one attribute, occupying two bytes in total, where the attribute of the alarm message can include "T" (True) or "F" (False). Therefore, 10 alarm messages need to occupy 20 bytes, one byte is 8 bits, and 10 alarm messages may require 160 bits of storage space. Figure 4 As shown, the definitions of 10 alarm information (alarm 1 to alarm 10) can be simplified and integrated, and described in the form of a bitmap. The first bit can represent alarm 1, the second bit can represent alarm 2, ..., and the tenth bit can represent alarm 10. There is no need to define the alarm information type. 10 alarm information only needs to occupy 10 bytes, saving storage resources. At the same time, the bit values ​​include 0 and 1 in binary, which can represent the functional status of the sub-function respectively. The value of the third bit is 1, which can indicate that the device has the condition corresponding to the third alarm information.

[0058] In this implementation, the target function is described in the form of a bitmap, and each bit of the sub-function of the target function can indicate the functional state of a sub-function. There is no need to define the alarm information type, and the bits occupy little memory, thereby saving storage resources.

[0059] Optionally, the device is a washing machine, and the functional description component includes a common component and an industry component, wherein:

[0060] The common component is a functional component that exists in devices of multiple device types, and the multiple device types include the device type to which the washing machine belongs;

[0061] Industry components are functional components specific to the device type to which the washing machine belongs.

[0062] It should be noted that the description file generated by the device description file generation method applied to a washing machine can be used for programming a control program of the washing machine.

[0063] Generally speaking, the basic functions of a washing machine include but are not limited to: brightness, temperature, switch, set time, soaking, washing, primary rinse, secondary rinse, dehydration, alarm, information and fault. By describing the functions of a washing machine digitally, the functional description of the washing machine can be obtained. Among them, switch, temperature, brightness and set time are functions that exist in devices of various types. Taking the setting time function as an example, a washing machine can set the washing time, an electric rice cooker can set the heating time, and an air conditioner can set the cooling time. At the same time, washing machines, electric rice cookers and electric rice cookers belong to different types of devices. Therefore, setting time is a function that exists in devices of various types. By performing a combination operation on the description content of the above common functions, the common components of the washing machine can be obtained.

[0064] Generally speaking, the equipment types to which a washing machine belongs may include a drum washing machine, an agitator washing machine and a pulsator washing machine. Different types of washing machines may have exclusive functions of soaking, washing, primary rinsing, secondary rinsing and dehydration. By performing a combination operation on the description content of the exclusive functions of the washing machine, the industry components of the washing machine can be obtained.

[0065] When programming the control program of a washing machine, public components and industry components can be directly called for definition without repeated programming work. Figure 5As shown, a washing machine with timer switch, quick washing and standard washing capabilities is defined, wherein quick washing includes washing, one rinse and dehydration, and standard washing includes soaking, washing, one rinse, two rinses and dehydration. Among them, the attribute functions of the washing machine include brightness, temperature, switch, etc., the behavior functions include setting time, soaking, washing, one rinse, two rinses, dehydration, etc., and the event functions include alarm, information, fault, etc. Digital description of any function of the above washing machine can obtain the corresponding function description content. The physical model in the prior art is used to define the washing machine, wherein, to define the timer switch, the user needs to perform 2 operations, namely, the switch and the timer duration; to define quick washing, the user needs to perform 3 operations, namely, washing, one rinse and dehydration; to define standard washing, the user needs to perform 5 operations, namely, soaking, washing, one rinse, two rinses and dehydration. Therefore, to define a washing machine with timer switch, quick washing and standard washing capabilities, the user needs to operate 10 times. The description file generation method of the present technical solution is used to define the washing machine, where the solid line is the operation that the user needs to perform, and the underlying functional description content is combined to perform the combined operation, combining the switch and the timing duration into a timing switch component, combining washing, one rinse and dehydration into a quick washing component, and combining soaking, washing, one rinse, two rinses and dehydration into a standard washing component. Therefore, defining a washing machine with a timing switch, quick washing and standard washing capabilities requires operating the timing switch component, the quick washing component and the standard washing component, and the user only needs to operate 3 times. It can be seen that the description file generation method of the present technical solution can simplify the user operation process when calling the description file.

[0066] In this embodiment, the device description file generation method is applied to a washing machine, and the functional description components of the washing machine including common components and industry components can be obtained. When programming the control program of the washing machine, the common components and industry components can be directly called without repeated programming work, thereby improving the programming efficiency.

[0067] See also Figure 6 , Figure 6 is a structural diagram of a device description file generating device provided by an embodiment of the present invention, such as Figure 6 As shown, the device description file generating device 600 includes:

[0068] An acquisition module 601 is used to acquire M function description contents of a device;

[0069] An execution module 602 is used to perform a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include a target function description component corresponding to the multiple function description contents, and N is less than M;

[0070] The generating module 603 is used to generate a description file including M function description contents and N function description components.

[0071] Optionally, the N function description components include at least one common function description component and at least one exclusive function description component, wherein:

[0072] At least one common function description component includes a target function description component corresponding to a plurality of function description contents; and / or

[0073] At least one dedicated function description component includes a target function description component corresponding to a plurality of function description contents.

[0074] Optionally, the M function description contents include: at least one belonging function description content, at least one behavior function description content and at least one event function description content;

[0075] The N function description components include: at least one of a first target function description component and a second target function description component:

[0076] The functional description content corresponding to the first target functional description component includes: at least one attribute functional description content and at least one behavior functional description content;

[0077] The functional description content corresponding to the second target functional description component includes: at least two behavioral functional description contents.

[0078] The device description file generation device provided by the embodiment of the present invention can realize Figure 1-Figure 5 To avoid repetition, the various processes in the method embodiment are not described here.

[0079] It should be noted that the device description file generating device in the embodiment of the present invention may be an apparatus, or a component, an integrated circuit, or a chip in an electronic device.

[0080] An embodiment of the present invention also provides an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, each process of the above-mentioned indication method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0081] Specifically, Figure 7 As shown, an embodiment of the present invention further provides an electronic device, including a bus 701 , a transceiver 702 , an antenna 703 , a bus interface 704 , a processor 705 and a memory 706 .

[0082] A transceiver 702, used for obtaining M functional description contents of a device;

[0083] Further, the processor is used to perform a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include a target function description component corresponding to the plurality of function description contents, and N is less than M;

[0084] The processor is also used to generate a description file including M function description contents and N function description components.

[0085] exist Figure 7 In the embodiment, the bus architecture (represented by bus 701) may include any number of interconnected buses and bridges, and bus 701 links various circuits including one or more processors represented by processor 705 and memory represented by memory 706. Bus 701 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 704 provides an interface between bus 701 and transceiver 702. Transceiver 702 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 705 is transmitted on a wireless medium via antenna 703, and further, antenna 703 also receives data and transmits the data to processor 705.

[0086] The processor 705 is responsible for managing the bus 701 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 706 can be used to store data used by the processor 705 when performing operations.

[0087] Optionally, the processor 705 may be a CPU, an ASIC, an FPGA or a CPLD.

[0088] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned repeated transmission control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium, such as ROM, RAM, disk or optical disk, etc.

[0089] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0091] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A method for generating a device description file, characterized in that: include: Obtain M functional description contents of the device; Performing a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include a target function description component corresponding to the plurality of function description contents, and the N is less than the M; Generate a description file including the M function description contents and the N function description components; The M function description contents include: at least one attribute function description content, at least one behavior function description content and at least one event function description content; The N function description components include: at least one of a first target function description component and a second target function description component; The functional description content corresponding to the first target functional description component includes: at least one attribute functional description content and at least one behavior functional description content; The functional description content corresponding to the second target functional description component includes: at least two behavioral functional description contents.

2. The method for generating a device description file according to claim 1, wherein: The N function description components include: at least one common function description component and at least one exclusive function description component, wherein: The at least one common function description component includes a target function description component corresponding to a plurality of function description contents; and / or The at least one exclusive function description component includes a target function description component corresponding to a plurality of function description contents.

3. The method for generating a device description file according to claim 1, wherein: The M functional descriptions include: The target function description content describes the target function in the form of a bit map, wherein the target function includes K sub-functions, the bit map includes K bits, each bit is used to indicate the functional state of a sub-function, and K is an integer greater than or equal to 1.

4. The method for generating a device description file according to claim 1, wherein the device is a washing machine, characterized in that: The functional description components include common components and industry components, wherein: The common component is a functional component that exists in devices of multiple device types, and the multiple device types include the device type to which the washing machine belongs; The industry component is a functional component specific to the device type to which the washing machine belongs.

5. A device description file generating device, characterized in that: include: An acquisition module, used to acquire M functional description contents of the device; An execution module, configured to perform a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include a target function description component corresponding to the plurality of function description contents, and the N is less than the M; A generating module, used to generate a description file including the M function description contents and the N function description components; The M function description contents include: at least one attribute function description content, at least one behavior function description content and at least one event function description content; The N function description components include: at least one of a first target function description component and a second target function description component; The functional description content corresponding to the first target functional description component includes: at least one attribute functional description content and at least one behavior functional description content; The functional description content corresponding to the second target functional description component includes: at least two behavioral functional description contents.

6. The device description file generating device according to claim 5, characterized in that: The N function description components include at least one common function description component and at least one exclusive function description component, wherein: The at least one common function description component includes a target function description component corresponding to a plurality of function description contents; and / or The at least one exclusive function description component includes a target function description component corresponding to a plurality of function description contents.

7. An electronic device, characterized in that: Including transceiver and processor, The transceiver is used to obtain M functional description contents of the device; The processor is configured to perform a combination operation on the M function description contents to obtain N function description components, wherein the N function description components include a target function description component corresponding to the plurality of function description contents, and the N is less than the M; The processor is further configured to generate a description file including the M function description contents and the N function description components; The M function description contents include: at least one attribute function description content, at least one behavior function description content and at least one event function description content; The N function description components include: at least one of a first target function description component and a second target function description component; The functional description content corresponding to the first target functional description component includes: at least one attribute functional description content and at least one behavior functional description content; The functional description content corresponding to the second target functional description component includes: at least two behavioral functional description contents.

8. An electronic device, characterized in that: include: A memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps in the device description file generation method according to any one of claims 1 to 4.

9. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps in the device description file generation method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Capacity determining method, capacity configuring method, host, terminal equipment and system

    CN104866332A

  • Interface file processing method and apparatus and control message processing method and apparatus

    CN105335431A