Method, device, control system, storage medium and electronic device for updating a category mapping table

CN116455688BActive Publication Date: 2025-11-04QINGDAO HAIER TECH +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310304907.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2025-11-04
Estimated Expiration
2043-03-27

AI Technical Summary

Technical Problem

[0004]在智能家电的应用开发过程中,开发者需要考虑到不同型号的不同控制命令,当产品类型和型号越来越多时,针对每一种新的产品型号需要硬编码进行该型号产品的控制,开发的工作量很大,新型号开发后接入物联网平台的难度也越来越大

Benefits of technology

[0023]在新增产品型号时,物联网平台自动将新的产品型号对应的新增型号信息添加到已有的品类映射表中,整个过程无需开发人员进行人工编码,且在后续对新产品的控制过程中,可以直接使用更新后的品类映射表控制新型号的产品,简化了新产品的开发过程,提升了开发效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116455688B_ABST
    Figure CN116455688B_ABST
Patent Text Reader

Abstract

The application discloses a method, device, control system, storage medium and electronic device for updating a product category mapping table, and relates to the technical field of smart homes. The method comprises the following steps: when a new product model is added, an Internet of Things platform automatically adds new model information corresponding to the new product model to an existing product category mapping table. The entire process does not require manual coding by a developer, and in a subsequent control process of the new product, the updated product category mapping table can be directly used to control the new model of the product, thereby simplifying the development process of the new product and improving the development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of smart home, in particular, to a method and device for updating a product category mapping table, a control system, a storage medium and an electronic device. BACKGROUND

[0002] With the rapid development of AI technology, the application range of the smart home field is becoming wider and wider, and more and more smart home appliances replace traditional home appliances and enter people's lives. The smart home appliances are updated and replaced quickly, and dozens of different models, even hundreds of different models of products correspond to the same product category. Even for the same manufacturer, the control instructions corresponding to different models of products are not the same.

[0003] In the process of implementing the embodiments of the present application, it is found that at least the following problems exist in the related art:

[0004] In the application development process of smart home appliances, developers need to consider different control commands of different models. When the product types and models are increasing, the control of each new product model needs to be hard-coded, and the development workload is large. It is also more and more difficult to access the Internet of Things platform after the development of new models.

[0005] It should be noted that the information disclosed in the above background section is only used to strengthen the understanding of the background of the present application, and therefore can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY

[0006] To have a basic understanding of some aspects of the disclosed embodiments, a brief overview is given below. The overview is not a comprehensive review of the embodiments, nor is it intended to determine key / important elements or delineate the scope of the embodiments. It is intended to serve as an introduction to the detailed description below.

[0007] The embodiments of the present application provide a method and device for updating a product category mapping table, a control system, a storage medium and an electronic device to reduce the development workload of smart home appliances.

[0008] In some embodiments, the method is applied to an Internet of Things platform, comprising: receiving new model information of a smart home appliance; wherein the new model information comprises a plurality of new attribute records of the smart home appliance, each new attribute record comprising a new function; comparing each new attribute record in the plurality of new attribute records with each existing attribute record in a preset product category mapping table to obtain a comparison result; wherein the existing attribute record comprises an existing function; and in a case where the comparison result represents that there is no existing function in the preset product category mapping table that is the same as the target new function, adding the new attribute record corresponding to the target new function to the preset product category mapping table.

[0009] Optionally, the added attribute record further comprises an added attribute name and an added attribute value, and the existing attribute record further comprises an existing attribute name and an existing attribute value.

[0010] Optionally, the adding of the added attribute record corresponding to the target added function into the preset category mapping table comprises: in a case where an existing function same as the target added function exists in the preset category mapping table, and an added attribute name corresponding to the target added function is same as an existing attribute name, but an added attribute value corresponding to the target added function is different from an existing attribute value, updating the existing attribute value according to the added attribute value corresponding to the target added function.

[0011] Optionally, the updating of the existing attribute value according to the added attribute value corresponding to the target added function comprises: adding the added attribute value into the existing attribute value in the preset category mapping table.

[0012] Optionally, the adding of the added attribute record corresponding to the target added function into the preset category mapping table comprises: in a case where an existing function same as the target added function exists in the preset category mapping table, and an added attribute value corresponding to the target added function is same as an existing attribute value, but an added attribute name corresponding to the target added function is different from an existing attribute name, adding a first attribute record corresponding to the target added function in the preset category mapping table.

[0013] Optionally, the first attribute record meets the following conditions: a function of the first attribute record is same as the existing function; an attribute value of the first attribute record is same as the existing attribute value; an attribute name of the first attribute record is same as the existing attribute name; and a mapping attribute name of the first attribute record is same as the target added attribute name.

[0014] Optionally, the adding of the added attribute record corresponding to the target added function into the preset category mapping table comprises: in a case where an existing function same as the target added function exists in the preset category mapping table, but the target added function belongs to a subset of the existing function, splitting an existing attribute record corresponding to the existing function.

[0015] Optionally, the splitting of the existing attribute record corresponding to the existing function comprises: splitting the existing attribute record into a second attribute record and a third attribute record; wherein the second attribute record is the added attribute record corresponding to the target added function, and the third attribute record is other attribute record in the existing attribute record except the added attribute record.

[0016] Optionally, the adding the new attribute record corresponding to the target new function into the preset category mapping table comprises: in a case where there is an existing function same as the target new function in the preset category mapping table, but the existing function belongs to a subset of the target new function, merging the existing attribute record and the target new attribute record corresponding to the target new function into a fourth attribute record.

[0017] Optionally, the attribute name of the fourth attribute record is same as the attribute name corresponding to the target new function, and the attribute value of the fourth attribute record is same as the existing attribute value.

[0018] Optionally, each attribute record in the preset category mapping table comprises a function, a development version, a device version, an attribute name and an attribute value; the method further comprises: receiving a category mapping table splitting request; and merging the same category attribute records in the preset category mapping table into one category mapping table; wherein the same category attribute records are attribute records with same function, same development version and same device version.

[0019] Optionally, the method further comprises: receiving a merging request of merging a to-be-merged category mapping table into the preset category mapping table; and merging the to-be-merged category mapping table and the preset category mapping table according to the function to obtain a merged category mapping table.

[0020] In some embodiments, the apparatus is applied to an Internet of Things platform, and comprises: a receiving module configured to receive new model information of a smart home appliance; wherein the new model information comprises a plurality of new attribute records of the smart home appliance, and each new attribute record comprises a new function; a comparing module configured to compare each new attribute record in the plurality of new attribute records with each existing attribute record in a preset category mapping table to obtain a comparison result; wherein the existing attribute record comprises an existing function; and an adding module configured to add a new attribute record corresponding to a target new function into the preset category mapping table in a case where the comparison result indicates that there is no existing function same as the target new function in the preset category mapping table.

[0021] In some embodiments, the smart home appliance control system comprises: a smart home appliance; an application platform configured to issue an operation instruction for the smart home appliance; and an Internet of Things platform in communication connection with the application platform and the smart home appliance, the Internet of Things platform being configured to execute any of the above methods to update a category mapping table, and to control the smart home appliance to execute the received operation instruction according to the updated category mapping table.

[0022] The method, device, control system, storage medium and electronic device for updating the product category mapping table provided by the embodiments of the present application can achieve the following technical effects:

[0023] When a new product model is added, the Internet of Things platform automatically adds the added model information corresponding to the new product model to the existing product category mapping table, and the entire process does not require manual coding by a developer, and in the subsequent control process of the new product, the updated product category mapping table can be directly used to control the product of the new model, simplifying the development process of the new product and improving the development efficiency.

[0024] The foregoing general description and the following description are merely exemplary and explanatory, and are not intended to limit the present application. BRIEF DESCRIPTION OF DRAWINGS

[0025] The accompanying drawings, which are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application and, together with the specification, serve to explain the principles of the present application.

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0027] Figure 1 A hardware environment schematic diagram of a method for updating a product category mapping table according to an embodiment of the present application;

[0028] Figure 2 An application schematic diagram of a smart home appliance control system according to an embodiment of the present application;

[0029] Figure 3 A flowchart of a method for updating a product category mapping table according to an embodiment of the present application;

[0030] Figure 4 A flowchart of another method for updating a product category mapping table according to an embodiment of the present application;

[0031] Figure 5 A flowchart of another method for updating a product category mapping table according to an embodiment of the present application;

[0032] Figure 6 A flowchart of another method for updating a product category mapping table according to an embodiment of the present application;

[0033] Figure 7 A flowchart of another method for updating a product category mapping table according to an embodiment of the present application;

[0034] Figure 8 An iterative process diagram of a category mapping table in a practical application scenario provided for an embodiment of the present application is shown in the following figure:

[0035] Figure 9 A structural diagram of a device for updating a category mapping table provided for an embodiment of the present application is shown in the following figure:

[0036] Figure 10 A structural diagram of an electronic device provided for an embodiment of the present application is shown in the following figure:

[0037] Figure 11 A structural diagram of a smart home control system provided for an embodiment of the present application is shown in the following figure. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should fall within the scope of protection of the present application.

[0039] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to the process, method, product or device.

[0040] The method for controlling smart home appliances provided in the embodiments of the present application can be widely applied to smart home (Smart Home), smart home, smart home device ecology, intelligent house (Intelligence House) ecology, and whole-house smart digital control application scenarios. Optionally, in the present embodiment, the method for controlling smart home appliances can be applied to the hardware environment composed of terminal device 102, voice platform 104 and Internet of Things platform 106 as shown in the following figure: Figure 1 Figure 1 ​As shown, the voice platform 102 and the IoT platform 106 are connected to the terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or the client installed on the terminal. Both the voice platform 104 and the IoT platform 106 can be servers. Databases can be set up on the server or independently of the server to provide data storage services for the voice platform 104 and the IoT platform 106. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for the voice platform 104 and the IoT platform 106.

[0041] It should be understood that the terminal device 102 described in the embodiments of this application may be referred to as a user equipment, terminal device, mobile device, or mobile terminal, etc. For example, the terminal device 102 is not limited to a PC, mobile phone, mobile phone, tablet computer, computer with a mobile terminal, etc. Furthermore, the terminal device 102 may also be a smart home appliance, including but not limited to: smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaners, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, smart door locks, etc.

[0042] like Figure 2 The diagram shown is a structural schematic of a smart home appliance control system 200 provided in an embodiment of this application. The method for updating the category mapping table provided in this embodiment is applied to applications such as... Figure 2 The control system 200 shown includes smart home appliances 202, application platform 204, and Internet of Things platform 206.

[0043] exist Figure 2 In the control system 200 shown, during the downlink control of smart home appliances 202 and the querying of device shadow models and device digital models, the accuracy of category conversion directly affects the precision of control and the accuracy of query results. Therefore, it is particularly important that the category mapping table accurately and comprehensively reflects the mapping relationship between categories and models.

[0044] A device shadow model is a data representation of device attributes and alarm information. Device attributes characterize the device's operating status at a given moment, and these attributes may include, but are not limited to, operating parameters and abnormal conditions. Device shadow models can be stored on cloud servers.

[0045] The device digital model is data calculated by the constraint file based on the data contained in the device shadow model, and is used to represent the full-quantity parameters of the smart home appliance device in the current state and the value range of each parameter. Through the device digital model, the application platform can know which instruction or instructions can be issued to the smart home appliance device in the current state, for example: the device digital model identifies the current state device attribute range, and the application platform can issue the corresponding instruction based on the range.

[0046] In combination Figure 3 As shown in FIG. 1, a method for updating a category mapping table provided by an embodiment of the present application is shown, as shown in FIG. 2, the method specifically includes the following steps: Figure 3

[0047] S302: The Internet of Things platform receives the new model information of the smart home appliance.

[0048] The new model information includes a plurality of new attribute records of the smart home appliance, and each new attribute record includes a new function.

[0049] S304: The Internet of Things platform compares each new attribute record in the plurality of new attribute records with each existing attribute record in the preset category mapping table to obtain a comparison result.

[0050] The existing attribute record includes an existing function.

[0051] Optionally, the new attribute record further includes a new attribute name and a new attribute value, and the existing attribute record further includes an existing attribute name and an existing attribute value.

[0052] A new model of a smart home appliance corresponds to a plurality of new attribute records, each new attribute record includes a new attribute name and a new attribute value, and can further include a new attribute type, a new attribute value range, etc. Each attribute record in the plurality of new attribute records is used to represent a function of the new model. For example, one of the new attribute records has a function of turning on, a new attribute name of Poweron, and a new attribute value of true / false. For another example, another new attribute record has a function of wind speed, a new attribute name of wind, a new attribute type of enum, and a new attribute value of 1, 2, and 3.

[0053] S306: In the case where the comparison result represents that there is no existing function identical to the target new function in the preset category mapping table, the Internet of Things platform adds the new attribute record corresponding to the target new function to the preset category mapping table.

[0054] ​The method provided by the embodiments of the present application can automatically add the new product model information corresponding to the new product model to the existing category mapping table when a new product model is added, and the entire process does not need to be manually coded by a developer. In the subsequent control process of the new product, the updated category mapping table can be directly used to control the new model product, which simplifies the development process of the new product and improves the development efficiency.

[0055] In combination Figure 4 with the method for updating the category mapping table provided by the embodiments of the present application, as shown in FIG. 4, the method comprises the following steps. Figure 4

[0056] S402: The Internet of Things platform receives the new model information of the smart home appliance.

[0057] S404: The Internet of Things platform compares each new attribute record in the plurality of new attribute records with each existing attribute record in the preset category mapping table to obtain a comparison result.

[0058] S406: In the case that the preset category mapping table contains an existing function identical to the target new function, and the new attribute name corresponding to the target new function is identical to the existing attribute name, but the new attribute value corresponding to the target new function is not identical to the existing attribute value, the Internet of Things platform updates the existing attribute value according to the new attribute value corresponding to the target new function.

[0059] Optionally, the step S406 of updating the existing attribute value according to the new attribute value corresponding to the target new function comprises adding the new attribute value to the existing attribute value in the preset category mapping table.

[0060] ​Specifically, the above embodiments correspond to the case of functional change of the category mapping table. In the case where there is an existing function in the preset category mapping table, and the new attribute name and the existing attribute name are the same, but the new attribute value is different from the existing attribute value, it is indicated that the value range of the new function is larger or smaller, for example, the existing function and the new function are both wind speed, the new attribute name and the existing attribute name are also both wind, but the existing attribute value is 1, 2, 3, representing three wind speed levels, and the new attribute value is 40 and 50, representing the actual wind speed value. In order to make the updated category mapping table compatible with the new smart home appliances and the existing smart home appliances, therefore, the principle adopted for this functional change case is to expand the value range to achieve the effect of downward compatibility. Continuing the above example, in order to achieve downward compatibility, the new attribute values 40 and 50 are added to the existing attribute values to form the wind speed in the updated preset category mapping table, and the corresponding attribute values are: 1, 2, 3, 40, 50. In this way, after receiving the information of the new model and updating the preset category mapping table, when using the original category-level control instruction, the original smart home appliances can also ensure normal operation, thereby expanding the application range of the category mapping table.

[0061] In combination Figure 5 with FIG. 6, another method for updating a category mapping table provided by the embodiments of the present application is shown, as shown in FIG. 7, the method comprises the following steps: Figure 5

[0062] S502: The Internet of Things platform receives the information of the new model of the smart home appliance.

[0063] S504: The Internet of Things platform compares each new attribute record in the plurality of new attribute records with each existing attribute record in the preset category mapping table to obtain a comparison result.

[0064] S506: In the case where there is an existing function in the preset category mapping table that is the same as the target new function, and the new attribute value corresponding to the target new function is the same as the existing attribute value, but the new attribute name corresponding to the target new function is not the same as the existing attribute name, the Internet of Things platform adds a first attribute record corresponding to the target new function in the preset category mapping table.

[0065] Optionally, the first attribute record meets the following conditions: the function of the first attribute record is the same as the existing function; the attribute value of the first attribute record is the same as the existing attribute value; the attribute name of the first attribute record is the same as the existing attribute name, and the mapping attribute name of the first attribute record is the same as the target new attribute name.

[0066] ​Specifically, the above embodiments correspond to the case of category merging of the category mapping table. There is a need for category merging for different categories, for example, for refrigerator A and air conditioner B, the existing category in the category mapping table is the refrigerator category, the power-on instruction of refrigerator A is poweron, and the power-on instruction of air conditioner B is warm. When updating the category mapping table, the power-on instructions of the refrigerator category and the air conditioner category are merged into poweron, and a first attribute record is added accordingly. The first attribute record corresponds to the newly added category (air conditioner category), the function of the attribute record is power-on, the attribute name is poweron, and the attribute value corresponds to true / fasle. The mapping attribute is warm. When the application platform performs category control or model query, only the category control instruction poweron is used for query or processing, and the category level control instruction poweron is sent to the Internet of Things platform. The Internet of Things platform sends poweron to A and warm to B through query. In this way, the category mapping table can not only realize the change and merging of functions, but also realize the sharing of the same category level control instruction between different categories, further improving the development efficiency.

[0067] In combination Figure 6 Another method for updating a category mapping table provided by an embodiment of the present application is shown in FIG. 6. The method includes the following steps: Figure 6

[0068] S602: The Internet of Things platform receives the new model information of the smart home appliance.

[0069] S604: The Internet of Things platform compares each of the plurality of new attribute records with each of the existing attribute records in the preset category mapping table to obtain a comparison result.

[0070] S606: In the case where there is an existing function in the preset category mapping table that is the same as the target new function, but the target new function belongs to a subset of the existing function, the Internet of Things platform splits the existing attribute record corresponding to the existing function.

[0071] Optionally, the step S606 of splitting the existing attribute record corresponding to the existing function includes: splitting the existing attribute record into a second attribute record and a third attribute record; wherein the second attribute record is a new attribute record corresponding to the target new function, and the third attribute record is an attribute record other than the new attribute record in the existing attribute record.

[0072] ​Specifically, the above embodiment corresponds to the case of function splitting in the product category mapping table, that is, the same function is split into multiple functions under the same product category. For example, in the 1.0 version of the product category mapping table corresponding to the air conditioner product category, the function including the existing attribute record is the new air dust removal function, and in the 2.0 version of the product category mapping table corresponding to the air conditioner product category, the new air dust removal function of the air conditioner is split into the new air function and the dust removal function, and therefore, the original new air dust removal function needs to be split into two functions. Among them, the new air function is the second attribute record, and the dust removal function is the third attribute record. In this way, when the application platform performs product category control or model query, only the product category level control instruction

new air dust removal

[0073] Optionally, the Internet of Things platform adding the newly added attribute record corresponding to the target newly added function to the preset product category mapping table can be specifically: in the case that there is an existing function same as the target newly added function in the preset product category mapping table, but the existing function belongs to a subset of the target newly added function, the Internet of Things platform combines the existing attribute record and the target newly added attribute record corresponding to the target newly added function into a fourth attribute record.

[0074] Optionally, the attribute name of the fourth attribute record is the same as the attribute name corresponding to the target newly added function, and the attribute value of the fourth attribute record is the same as the existing attribute value.

[0075] Specifically, the above embodiment corresponds to the case of function merging. For the case that the attribute value is of a date type or a time type, if the value range of the existing attribute information is of a time or date type, for example, the reservation function of the oven, the value range is 【0 hours 0 minutes 0 seconds-23 hours 59 minutes 59 seconds】, that is, the hours, minutes and seconds can be set separately, then when the product category mapping table is iterated, the separately set hours, minutes and seconds can be combined into a fourth attribute record, for example, one-key setting of hours, minutes and seconds.

[0076] Optionally, each attribute record in the preset product category mapping table includes a function, a development version, a device version, an attribute name and an attribute value.

[0077] In addition to the update of the product category mapping table when a new model is added in the above embodiment, the embodiments of the present application also provide an iteration method of the product category mapping table, as shown in Figure 7 The method further includes the following steps based on any one of the above embodiments:

[0078] S702: receiving an iteration request of the product category mapping table;

[0079] S704: judging the type of the iteration request, if the iteration request is a split request, performing step S706; if the iteration request is a merge request, performing step S708.

[0080] S706: splitting the preset category mapping table, and splitting the same category attribute records in the preset category mapping table into one category mapping table respectively.

[0081] The same category attribute records are attribute records with the same function, development version and device version.

[0082] S708: merging the to-be-merged category mapping table and the preset category mapping table according to the function, to obtain a merged category mapping table.

[0083] In combination with Figure 8 Fig. 1 is a schematic diagram of an iteration process of a category mapping table in an actual application scenario provided by an embodiment of the present application. The first stage is a process of merging two category mapping tables into a category mapping table of A188-V1, and the second stage is an iteration process of the category mapping table from A188-V1 to A188-V2.

[0084] Table 1 below is an exemplary category mapping table in an actual application scenario.

[0085] Table 1

[0086]

[0087] Through the above Figure 8 and Table 1, when a new device model is added or the application platform needs to merge or split categories, the Internet of Things platform updates the category mapping table according to the demand, and the application platform still uses the existing category-level control instruction and does not need to pay attention to the specific command of the newly added model, so that the control and query of the smart home appliance can be realized, the development process is effectively simplified, and the development efficiency is improved.

[0088] In combination with Figure 9 Fig. 9 is a schematic diagram of an apparatus 900 for updating a category mapping table provided by an embodiment of the present application, which is applied to an Internet of Things platform. The apparatus 900 comprises a receiving module 902, a comparing module 904 and an adding module 906. Wherein,

[0089] The receiving module 902 is configured to receive new model information of a smart home appliance; wherein the new model information comprises a plurality of new attribute records of the smart home appliance, and each new attribute record comprises a new function.

[0090] The comparison module 904 is configured to compare each of the plurality of new attribute records with each of the existing attribute records in the preset category mapping table to obtain a comparison result, wherein the existing attribute record comprises an existing function.

[0091] The adding module 906 is configured to add the new attribute record corresponding to the target new function into the preset category mapping table in a case where the comparison result indicates that there is no existing function in the preset category mapping table that is identical to the target new function.

[0092] The above device provided by the embodiments of the present application can automatically add new model information corresponding to a new product model into an existing category mapping table when a new product model is added, and the entire process does not need to be manually coded by a developer, and in a subsequent control process of the new product, the updated category mapping table can be directly used to control the product of the new model, thereby simplifying the development process of the new product and improving the development efficiency.

[0093] Optionally, the new attribute record further comprises a new attribute name and a new attribute value, and the existing attribute record further comprises an existing attribute name and an existing attribute value.

[0094] Optionally, the adding module 906 is further configured to update the existing attribute value according to the new attribute value corresponding to the target new function in a case where there is an existing function in the preset category mapping table that is identical to the target new function, and the new attribute name corresponding to the target new function is identical to the existing attribute name, but the new attribute value corresponding to the target new function is different from the existing attribute value.

[0095] Optionally, the updating of the existing attribute value according to the new attribute value corresponding to the target new function comprises adding the new attribute value into the existing attribute value in the preset category mapping table.

[0096] Optionally, the adding module 906 is further configured to add a first attribute record corresponding to the target new function into the preset category mapping table in a case where there is an existing function in the preset category mapping table that is identical to the target new function, and the new attribute value corresponding to the target new function is identical to the existing attribute value, but the new attribute name corresponding to the target new function is different from the existing attribute name.

[0097] Optionally, the first attribute record satisfies the following conditions: the function of the first attribute record is identical to the existing function; the attribute value of the first attribute record is identical to the existing attribute value; the attribute name of the first attribute record is identical to the existing attribute name; and the mapping attribute name of the first attribute record is identical to the target new attribute name.

[0098] Optionally, the adding module 906 is further configured to, in a case where the preset category mapping table has an existing function identical to the target new function, but the target new function belongs to a subset of the existing function, split the existing attribute record corresponding to the existing function.

[0099] Optionally, the splitting the existing attribute record corresponding to the existing function comprises: splitting the existing attribute record into a second attribute record and a third attribute record; the second attribute record is a new attribute record corresponding to the target new function, and the third attribute record is an attribute record other than the new attribute record in the existing attribute record.

[0100] Optionally, the adding module 906 is further configured to, in a case where the preset category mapping table has an existing function identical to the target new function, but the existing function belongs to a subset of the target new function, combine the existing attribute record and a target new attribute record corresponding to the target new function into a fourth attribute record.

[0101] Optionally, the attribute name of the fourth attribute record is identical to the attribute name corresponding to the target new function, and the attribute value of the fourth attribute record is identical to the existing attribute value.

[0102] Optionally, each attribute record in the preset category mapping table includes a function, a development version, a device version, an attribute name, and an attribute value; the apparatus further includes a second receiving module configured to receive a category mapping table splitting request; and a splitting module configured to split the category mapping table, and split identical category attribute records in the preset category mapping table into one category mapping table respectively; the identical category attribute records are attribute records with identical functions, development versions, and device versions.

[0103] Optionally, the apparatus further includes a third receiving module configured to receive a merging request of merging a to-be-merged category mapping table into the preset category mapping table; and a merging module configured to merge the to-be-merged category mapping table and the preset category mapping table according to functions, to obtain a merged category mapping table.

[0104] In combination Figure 10As shown, the embodiment of the present application provides an electronic device 1000, comprising a processor 100 and a memory 101. Optionally, the device can also comprise a communication interface 102 and a bus 103. Wherein the processor 100, the communication interface 102, the memory 101 can complete the communication among each other through the bus 103. The communication interface 102 can be used for information transmission. The processor 100 can call the logical instructions in the memory 101 to execute the method for updating the category mapping table of the above-mentioned embodiment.

[0105] In addition, the logical instructions in the memory 101 described above can be realized in the form of a software functional unit and sold or used as an independent product, which can be stored in a computer readable storage medium.

[0106] The memory 101 as a kind of computer readable storage medium can be used to store software programs, computer executable programs, such as the program instructions / modules corresponding to the method in the embodiment of the present application. The processor 100 executes the program instructions / modules stored in the memory 101, thereby executing functional applications and data processing, i.e. implementing the method for updating the category mapping table of the above-mentioned embodiment.

[0107] The memory 101 can include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory 101 can include a high-speed random access memory, and can also include a non-volatile memory.

[0108] In combination Figure 11 As shown, the embodiment of the present application provides an intelligent home appliance control system 1100, comprising: an intelligent home appliance 1102, an application platform 1104 and an Internet of Things platform 1106, wherein the application platform 1104 is configured to issue an operation instruction for the intelligent home appliance 1102; the Internet of Things platform 1106 is in communication connection with the application platform 1104 and the intelligent home appliance 1102, and the Internet of Things platform 1106 is configured to execute the method of any of the above-mentioned embodiments to update the category mapping table, and control the intelligent home appliance 1102 to execute the received operation instruction according to the updated category mapping table.

[0109] The embodiment of the present application provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are configured to execute the method for updating the category mapping table of the above-mentioned embodiment.

[0110] The embodiment of the present application provides a computer program product, the computer program product comprises a computer program stored on a computer readable storage medium, the computer program comprises program instructions, when the program instructions are executed by a computer, the computer executes the method for updating the category mapping table in the above embodiment.

[0111] The computer readable storage medium described above can be a transitory computer readable storage medium or a non-transitory computer readable storage medium.

[0112] The technical scheme of the embodiment of the present application can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present application. The aforementioned storage medium can be a non-transitory storage medium, including a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes, or a transitory storage medium.

[0113] The foregoing description and accompanying drawings fully illustrate embodiments of this application to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or,” as used herein, means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.

[0114] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0115] In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) can be implemented in other manners. For example, the described device embodiments are merely illustrative. For example, the division of the units is merely logical function division. There can be another division manner for actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, or among them, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0116] The flowcharts and block diagrams in the drawings show the possible implementation architectures, functions and operations of the system, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code containing one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks can occur in different orders than those noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the drawings, the operations or steps corresponding to different blocks can also occur in different orders than those disclosed in the descriptions, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. Each block in the block diagrams and / or flowcharts, and the combination of blocks in the block diagrams and / or flowcharts, can be implemented by a special hardware-based system for executing the specified functions or actions, or can be implemented by a combination of special hardware and computer instructions.

[0117] The above description is merely the preferred embodiments of the present application, and it should be pointed out that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.

Claims

1. A method for updating a category mapping table, characterized in that, Applications in IoT platforms, including: Receive information on the new model of a smart home appliance; wherein, the new model information includes multiple new attribute records of the smart home appliance, and each new attribute record includes a new function; Each newly added attribute record in the plurality of newly added attribute records is compared with each existing attribute record in the preset category mapping table to obtain a comparison result; wherein, the existing attribute records include existing functions; If the comparison result indicates that there is no existing function in the preset category mapping table that is the same as the target new function, the new attribute record corresponding to the target new function is added to the preset category mapping table. The step of adding the new attribute record corresponding to the target new function to the preset category mapping table includes: If there is an existing function in the preset category mapping table that is the same as the target new function, and the new attribute name corresponding to the target new function is the same as the existing attribute name, but the new attribute value corresponding to the target new function is different from the existing attribute value, then the existing attribute value is updated according to the new attribute value corresponding to the target new function.

2. The method according to claim 1, characterized in that, The newly added attribute record also includes a newly added attribute name and a newly added attribute value, and the existing attribute record also includes an existing attribute name and an existing attribute value.

3. The method according to claim 1, characterized in that, Each attribute record in the preset category mapping table includes function, development version, device version, attribute name, and attribute value.

4. The method according to claim 1, characterized in that, Update the existing attribute values ​​according to the new attribute values ​​corresponding to the target new function, including: The new attribute value is added to the existing attribute values ​​in the preset category mapping table.

5. The method according to claim 2, characterized in that, Adding the new attribute record corresponding to the target new function to the preset category mapping table includes: If an existing function with the same name as the target new function exists in the preset category mapping table, and the new attribute value corresponding to the target new function is the same as the existing attribute value, but the new attribute name corresponding to the target new function is different from the existing attribute name, then a first attribute record corresponding to the target new function is added to the preset category mapping table.

6. The method according to claim 5, characterized in that, The first attribute record meets the following conditions: The function of the first attribute record is the same as the existing function; The attribute value recorded in the first attribute record is the same as the existing attribute value; The attribute name of the first attribute record is the same as the existing attribute name; The mapping attribute name of the first attribute record is the same as the target newly added attribute name.

7. The method according to claim 2, characterized in that, Adding the new attribute record corresponding to the target new function to the preset category mapping table includes: If there is an existing function in the preset category mapping table that is the same as the target new function, but the target new function is a subset of the existing functions, the existing attribute records corresponding to the existing function will be split.

8. The method according to claim 7, characterized in that, The existing attribute records corresponding to the existing functions are split, including: The existing attribute records are split into a second attribute record and a third attribute record; wherein, the second attribute record is the new attribute record corresponding to the target new function, and the third attribute record is the other attribute records in the existing attribute records besides the new attribute record.

9. The method according to claim 2, characterized in that, Adding the new attribute record corresponding to the target new function to the preset category mapping table includes: If there is an existing function in the preset category mapping table that is the same as the target new function, but the existing function is a subset of the target new function, the existing attribute record and the target new attribute record corresponding to the target new function are merged into a fourth attribute record.

10. The method according to claim 9, characterized in that, The attribute name of the fourth attribute record is the same as the attribute name corresponding to the target new function, and the attribute value of the fourth attribute record is the same as the existing attribute value.

11. The method according to claim 1, characterized in that, Also includes: Received a request to split the category mapping table; The category mapping table is split, and the records with the same category attribute in the preset category mapping table are split into separate category mapping tables; wherein, the records with the same category attribute are attribute records with the same function, development version, and device version.

12. The method according to claim 1, characterized in that, Also includes: A merge request was received to merge the category mapping table to be merged into the preset category mapping table; The category mapping table to be merged and the preset category mapping table are merged according to their functions to obtain the merged category mapping table.

13. An apparatus for updating a category mapping table, characterized in that, Applications in IoT platforms, including: The receiving module is configured to receive new model information of smart home appliances; wherein, the new model information includes multiple new attribute records of the smart home appliance, and each new attribute record includes new functions; The comparison module is configured to compare each of the multiple newly added attribute records with each existing attribute record in a preset category mapping table to obtain a comparison result; wherein, the existing attribute records include existing functions; The addition module is configured to add the new attribute record corresponding to the target new function to the preset category mapping table when the comparison result indicates that there is no existing function in the preset category mapping table that is the same as the target new function. The added module is further configured as follows: If there is an existing function in the preset category mapping table that is the same as the target new function, and the new attribute name corresponding to the target new function is the same as the existing attribute name, but the new attribute value corresponding to the target new function is different from the existing attribute value, then the existing attribute value is updated according to the new attribute value corresponding to the target new function.

14. A smart home appliance control system, characterized in that, include: Smart home appliances; The application platform is configured to issue operation commands for the smart home appliances; An Internet of Things (IoT) platform is communicatively connected to both the application platform and the smart home appliances. The IoT platform is configured to execute the method of any one of claims 1 to 12 to update the category mapping table, and to control the smart home appliances to execute the received operation instructions according to the updated category mapping table.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 12.

16. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 12 through the computer program.

Citation Information

Patent Citations

  • Equipment attribute configuration method and device, storage medium and electronic device

    CN114839887A