CN113064946A - Data processing method and device, storage medium and electronic device - Google Patents

Data processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113064946A
CN113064946A CN202110298439.7A CN202110298439A CN113064946A CN 113064946 A CN113064946 A CN 113064946A CN 202110298439 A CN202110298439 A CN 202110298439A CN 113064946 A CN113064946 A CN 113064946A
Authority
CN
China
Prior art keywords
value
transmission
equipment
corresponding relation
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110298439.7A
Other languages
Chinese (zh)
Inventor
杨军库
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110298439.7A priority Critical patent/CN113064946A/en
Publication of CN113064946A publication Critical patent/CN113064946A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/254Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models

Landscapes

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

Abstract

The invention discloses a data processing method and device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring display values of all device functions of all devices on an application program and transmission values of all devices on a bottom plate; establishing a corresponding relation between a display value and a transmission value, and storing the corresponding relation in a knowledge base of a target converter; determining at least one of the following according to the corresponding relation stored in the knowledge base: and storing the corresponding relation between the display values of all the equipment functions of all the equipment on the application program and the transmission values on the bottom plates of all the equipment in a knowledge base of the target converter, and processing data through the knowledge base.

Description

Data processing method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a data processing method and apparatus, a storage medium, and an electronic apparatus.
Background
When the device defines the protocol, the display value of the upper application control device is inconsistent with the transmission value issued to the device bottom plate because a transmission mode of a negative number is not defined; and the transmission value reported by the device bottom board is inconsistent with the display value applied to the device or the upper layer, namely the application layer uses a set of data, and the bottom board uses a set of data. These inconsistencies limit the applications to which the device is connected after it is connected to the cloud. Therefore, in the interaction of an application layer and a bottom board and the interaction of a device and a device, the shaping and floating point data are converted according to rules regardless of positive numbers and negative numbers. For example, the temperature of an air conditioner is 16-30 ℃ seen in an application layer, but the transmission of a bottom plate is 0-14; for example, the temperature application layer of the freezing chamber of the refrigerator is seen to be-10 to 30 ℃, but the transmission of the bottom plate is 0 to 40.
Because the application developer converts and processes the display value of the application and the transmission value of the backplane in respective modes, after the device is clouded, the device backplane and the application and the device backplane are inconsistent, and the complexity of the system is increased.
Aiming at the problems that in the related art, the conversion modes of the display values of different applications and the transmission values of a bottom plate are inconsistent, the complexity of a system is increased, and the like, an effective solution is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a data processing method and device, a storage medium and an electronic device, which are used for at least solving the problems that in the related art, the conversion modes of display values of different applications and transmission values of a bottom plate are inconsistent, the complexity of a system is increased and the like.
According to an embodiment of the present invention, there is provided a data processing method including: acquiring display values of all device functions of all devices on an application program and transmission values of all devices on a bottom plate; establishing a corresponding relation between the display value and the transmission value, and storing the corresponding relation in a knowledge base of a target converter; determining at least one of the following according to the corresponding relation stored in the knowledge base: and a first transmission value corresponding to a first display value in an equipment control instruction issued by the application program, and a second display value corresponding to a second transmission value uploaded by the bottom plate.
In an exemplary embodiment, establishing the correspondence between the display value and the transmission value includes: for any equipment function of any equipment, acquiring a display value and a transmission value of the any equipment function; and establishing the corresponding relation between the display value and the transmission value of any equipment function until the corresponding relation between the display value and the transmission value of all the functions is established.
In an exemplary embodiment, storing the correspondence in a knowledge base of the target converter includes: and storing the corresponding relation, the equipment corresponding to the corresponding relation and the equipment function corresponding to the corresponding relation in the knowledge base so as to search the equipment and the equipment function in the knowledge base as indexes.
In an exemplary embodiment, determining, according to the correspondence stored in the knowledge base, a first transmission value corresponding to a first display value in a device control instruction issued by the application program includes: acquiring a first display value carried by a device control instruction issued by the application program, and a first device function corresponding to the device control instruction; searching the knowledge base by using the first equipment and the first equipment function as indexes to determine a first corresponding relation corresponding to the first equipment and the first equipment function; and determining a first transmission value corresponding to the first display value according to the first corresponding relation.
In an exemplary embodiment, determining a second display value corresponding to a second transmission value uploaded by the backplane according to the correspondence stored in the knowledge base includes: acquiring a second transmission value uploaded by the bottom plate, and a second device function corresponding to the second transmission value; searching the knowledge base by using the second device and the second device function as indexes to determine a second corresponding relation corresponding to the second device and the second device function; and determining a second display value corresponding to the second transmission value according to the second corresponding relation.
In an exemplary embodiment, obtaining the second device and the second device function corresponding to the second transmission value includes: acquiring the equipment type corresponding to the bottom plate; and acquiring a second device and a second device function corresponding to the device type.
According to another embodiment of the present invention, there is also provided a data processing apparatus, including an obtaining module, configured to obtain display values of all device functions of all devices on an application program and transmission values on a backplane of all the devices; the establishing module is used for establishing the corresponding relation between the display value and the transmission value and storing the corresponding relation in a knowledge base of the target converter; a determining module, configured to determine at least one of the following according to the correspondence stored in the knowledge base: and a first transmission value corresponding to a first display value in an equipment control instruction issued by the application program, and a second display value corresponding to a second transmission value uploaded by the bottom plate.
In an exemplary embodiment, the obtaining module is further configured to, for any device function of any device, obtain a display value and a transmission value of the any device function; the establishing module is also used for establishing the corresponding relation between the display value and the transmission value of any equipment function until the corresponding relation between the display value and the transmission value of all the functions is established.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to carry out the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the invention, the display values of all the equipment functions of all the equipment on the application program and the transmission values of all the equipment on the bottom plate are obtained; establishing a corresponding relation between a display value and a transmission value, and storing the corresponding relation in a knowledge base of a target converter; determining at least one of the following according to the corresponding relation stored in the knowledge base: and storing the corresponding relation between the display values of all the equipment functions of all the equipment on the application program and the transmission values on the bottom plates of all the equipment in a knowledge base of the target converter, and processing data through the knowledge base. By adopting the technical scheme, the problems that in the related technology, the conversion modes of the display values of different applications and the transmission values of the bottom plate are inconsistent, the complexity of the system is increased and the like are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a data processing method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a data processing method according to an alternative embodiment of the invention;
fig. 4 is a block diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a computer terminal or a similar operation device. Taking the example of being operated on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a data processing method according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the data processing method of the computer terminal in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a data processing method is provided, which is applied to the computer terminal, and fig. 2 is a flowchart of a data processing method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202: acquiring display values of all device functions of all devices on an application program and transmission values of all devices on a bottom plate;
step S204: establishing a corresponding relation between the display value and the transmission value, and storing the corresponding relation in a knowledge base of a target converter;
step S206: determining at least one of the following according to the corresponding relation stored in the knowledge base: and a first transmission value corresponding to a first display value in an equipment control instruction issued by the application program, and a second display value corresponding to a second transmission value uploaded by the bottom plate.
Through the technical scheme, the display values of all equipment functions of all equipment on the application program and the transmission values of all equipment on the bottom plate are obtained; establishing a corresponding relation between a display value and a transmission value, and storing the corresponding relation in a knowledge base of a target converter; determining at least one of the following according to the corresponding relation stored in the knowledge base: and storing the corresponding relation between the display values of all the equipment functions of all the equipment on the application program and the transmission values on the bottom plates of all the equipment in a knowledge base of the target converter, and processing data through the knowledge base. By adopting the technical scheme, the problems that in the related technology, the conversion modes of the display values of different applications and the transmission values of the bottom plate are inconsistent, the complexity of the system is increased and the like are solved.
It should be noted that, since the display values of all device functions of all devices on the application program and the transmission values on the backplane of all devices are inconsistent, a corresponding relationship between the display values and the transmission values needs to be established, where the display values of all device functions of all devices on the application program and the transmission values on the backplane of all devices are obtained from a device knowledge base in the big data.
In an exemplary embodiment, the corresponding relationship between the display value and the transmission value may be established by: for any equipment function of any equipment, acquiring a display value and a transmission value of the any equipment function; and establishing the corresponding relation between the display value and the transmission value of any equipment function until the corresponding relation between the display value and the transmission value of all the functions is established.
In other words, since different devices have different functions, a display value and a transmission value of any device function of any device are obtained, and a corresponding relationship between the display value and the transmission value of any device function of any device is established until the corresponding relationship between the display values and the transmission values of all device functions of all devices is stored in the knowledge base, and at this time, a corresponding first transmission value may be determined in the knowledge base according to a first display value in a device control instruction issued by an application program or a corresponding second display value may be determined according to a second transmission value uploaded on the backplane.
For example, the displayed value of the air conditioner is 16-30 ℃, the transmission value of the air conditioner bottom plate is 0-14 ℃, the corresponding relation between the displayed value of the air conditioner and the transmission value on the air conditioner bottom plate is established, specifically, when the displayed value of the air conditioner is 16 ℃, the corresponding transmission value of the air conditioner bottom plate is 0 ℃, the displayed value of the air conditioner is 17 ℃, the corresponding transmission value of the air conditioner bottom plate is 1 ℃ … …, and so on, the corresponding relation between all the displayed values and the transmission values of the air conditioner is established; the display value of the refrigerator is-5 ℃, the transmission value of the air conditioner bottom plate is 0-10 ℃, and the corresponding relation between the display values of all refrigerators and the transmission values on the refrigerator bottom plate is established.
Further, the corresponding relationship is stored in a knowledge base of the target converter, and the corresponding relationship, the device corresponding to the corresponding relationship, and the device function corresponding to the corresponding relationship are also required to be stored in the knowledge base, so that the device and the device function are used as indexes to perform a search operation in the knowledge base.
In other words, the knowledge base of the target converter not only stores the corresponding relationship between the display value and the transmission value, but also needs to store the device corresponding to the corresponding relationship and the device function corresponding to the corresponding relationship, so as to find the corresponding relationship between the display value and the transmission value of the device and the device function in the knowledge base by using the device and the device function as an index.
In an exemplary embodiment, determining, according to the correspondence stored in the knowledge base, a first transmission value corresponding to a first display value in a device control instruction issued by the application program may be implemented in the following manner: acquiring a first display value carried by a device control instruction issued by the application program, and a first device function corresponding to the device control instruction; searching the knowledge base by using the first equipment and the first equipment function as indexes to determine a first corresponding relation corresponding to the first equipment and the first equipment function; and determining a first transmission value corresponding to the first display value according to the first corresponding relation.
It should be noted that, a control instruction is issued to the first device through an application program, where the control instruction includes the first device, a function of the first device, and a first display value corresponding to the control instruction issued by the first device, and a first corresponding relationship between the first display value and the first transmission value is determined through the first device and the function of the first device in a knowledge base of the target converter, so that a first transmission value corresponding to the first display value can be determined through the first corresponding relationship.
For example, the display value of the air conditioner and the transmission value corresponding relation on the air conditioner bottom plate are that the display value of the air conditioner is 16-30 ℃, the transmission value of the air conditioner bottom plate is 0-14 ℃, a control command is issued to the air conditioner through an application program, the issued control command is the display value of the air conditioner, the air conditioner refrigerating temperature is set to be 23 ℃, namely, the display value of the air conditioner is 23 ℃; in the knowledge base, the corresponding relation between the display value and the transmission value of the air conditioner is determined by inquiring the air conditioner and the air conditioner refrigeration, and then the transmission value corresponding to 23 ℃ is determined to be 7 ℃.
In an exemplary embodiment, determining the second display value corresponding to the second transmission value uploaded by the backplane according to the correspondence stored in the knowledge base may be implemented by: acquiring a second transmission value uploaded by the bottom plate, and a second device function corresponding to the second transmission value; searching the knowledge base by using the second device and the second device function as indexes to determine a second corresponding relation corresponding to the second device and the second device function; and determining a second display value corresponding to the second transmission value according to the second corresponding relation.
In other words, under the condition that the control command is determined to be issued to the second device according to the second transmission value uploaded by the bottom board, the functions of the second device and the second device are determined according to the second transmission value uploaded by the bottom board, a second corresponding relation corresponding to the functions of the second device and the second device is searched in the knowledge base through the functions of the second device and the second device, a second display value is determined according to the second corresponding relation and the second transmission value, and the control command is issued to the second device.
For example, firstly, when the transmission value uploaded by the temperature detection bottom plate is greater than 25 ℃, a control command is issued to the air conditioner bottom plate, the temperature reaches 23 ℃, when the transmission value uploaded by the temperature detection bottom plate is 30 ℃, the refrigeration function of the air conditioner needs to be started is determined, the corresponding second corresponding relation is searched for in the knowledge base through the air conditioner and the refrigeration function, and the display value of the air conditioner corresponding to the transmission value uploaded by the temperature detection bottom plate being 30 ℃ is determined to be 23 ℃ through the second corresponding relation.
Further, according to the fact that the display value of the air conditioner is 23 ℃, the transmission value of the air conditioner bottom plate is determined, and according to the transmission value of the air conditioner bottom plate, a command is issued to the air conditioner bottom plate.
In an exemplary embodiment, the second device and the second device function corresponding to the second transmission value are obtained, and a device type corresponding to the backplane is also required to be obtained; and acquiring a second device and a second device function corresponding to the device type.
That is, the second device and the second device function corresponding to the second transmission value are determined by obtaining the device type corresponding to the backplane.
In order to better understand the process of the data processing method, the following describes the flow of the data processing method with reference to an alternative embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
The device knowledge base in the big data is used to analyze the issued values and the transmission values of any function of any device according to the execution situation according to the issued values (corresponding to the display values in the above-mentioned embodiment) and the transmission values (corresponding to the transmission values in the above-mentioned embodiment) of all the device controls, and a device knowledge base (corresponding to the knowledge base of the target converter in the above-mentioned embodiment) of the issued values and the transmission values of the device states is formed. And carrying out correct data processing on the issued value controlled by the equipment and the transmission value of the equipment state through a knowledge base.
Fig. 3 is a schematic diagram of a data processing method according to an alternative embodiment of the present invention, as shown in fig. 3. The specific technical scheme is as follows:
step 1: issuing a device control command by an application, wherein the device control command comprises: display values of the device control (equivalent to the display values in the above-described embodiment);
step 2: converting the issued value controlled by the equipment into a transmission value controlled by the equipment through the corresponding relation in the knowledge base, and transmitting the transmission value to the bottom plate of the equipment A;
and step 3: the device A base plate uploads a transmission value corresponding to the device A base plate to a knowledge base;
and 4, step 4: determining a display value of the equipment A application corresponding to the transmission value of the equipment A base plate through the corresponding relation in the knowledge base, and transmitting the display value to the application;
step 2': determining a display value of the equipment B application corresponding to the transmission value of the equipment A bottom plate through the corresponding relation in the knowledge base, further determining the transmission value of the equipment B bottom plate according to the display value of the equipment B application, and sending the transmission value of the equipment B bottom plate to the equipment B bottom plate;
step 3': the device B bottom plate uploads the transmission value of the device B bottom plate to a knowledge base;
and 4, step 4: and determining the display value of the equipment B corresponding to the transmission value of the bottom plate of the equipment B through the corresponding relation in the knowledge base, and transmitting the display value to the application.
The following takes a refrigerator as an example to explain the data processing process, specifically:
the application sends a control command to the refrigerator, and the numerical value corresponding to the control command is the display value on the refrigerator, such as: setting the refrigerator refrigeration temperature to-3 degrees (step 1 in fig. 3); the display value is converted into 5 ℃ by the converter and is sent to the bottom plate of the refrigerator (step 2 in fig. 3); the transmission values reported by the device backplane are as follows: the refrigerator refrigeration temperature is 5 degrees celsius (step 3 in fig. 3); the transfer value is converted to a display value for the application such as: the refrigerator refrigeration temperature is-3 degrees celsius (step 4 in fig. 3);
in another optional embodiment, when the detected value of PM2.5 in the backplane of the air detection device is greater than 500, the detected value is sent to the knowledge base as a transmission value, the display value of the air purifier device is determined by the knowledge base, the transmission value of the backplane of the air purifier is determined according to the display value of the air purifier device (step 2 'in fig. 3), and then the air purifier is controlled to be opened according to the transmission value, the backplane of the air purifier sends the transmission value of the backplane of the air purifier to the knowledge base (step 3' in fig. 3), and the knowledge base sends the display value of the purifier application corresponding to the transmission value of the backplane of the air purifier to the application.
Through the technical scheme, the display values of all equipment functions of all equipment on the application program and the transmission values of all equipment on the bottom plate are obtained; establishing a corresponding relation between a display value and a transmission value, and storing the corresponding relation in a knowledge base of a target converter; determining at least one of the following according to the corresponding relation stored in the knowledge base: and storing the corresponding relation between the display values of all the equipment functions of all the equipment on the application program and the transmission values on the bottom plates of all the equipment in a knowledge base of the target converter, and processing data through the knowledge base. By adopting the technical scheme, the problems that in the related technology, the conversion modes of the display values of different applications and the transmission values of the bottom plate are inconsistent, the complexity of the system is increased and the like are solved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a data processing apparatus according to an embodiment of the present invention; as shown in fig. 4, includes:
an obtaining module 42, configured to obtain display values of all device functions of all devices on an application and transmission values on a backplane of all devices;
an establishing module 44, configured to establish a corresponding relationship between the display value and the transmission value, and store the corresponding relationship in a knowledge base of the target converter;
a determining module 46, configured to determine at least one of the following according to the correspondence stored in the knowledge base: and a first transmission value corresponding to a first display value in an equipment control instruction issued by the application program, and a second display value corresponding to a second transmission value uploaded by the bottom plate.
Through the technical scheme, the display values of all equipment functions of all equipment on the application program and the transmission values of all equipment on the bottom plate are obtained; establishing a corresponding relation between a display value and a transmission value, and storing the corresponding relation in a knowledge base of a target converter; determining at least one of the following according to the corresponding relation stored in the knowledge base: and storing the corresponding relation between the display values of all the equipment functions of all the equipment on the application program and the transmission values on the bottom plates of all the equipment in a knowledge base of the target converter, and processing data through the knowledge base. By adopting the technical scheme, the problems that in the related technology, the conversion modes of the display values of different applications and the transmission values of the bottom plate are inconsistent, the complexity of the system is increased and the like are solved.
It should be noted that, since the display values of all device functions of all devices on the application program and the transmission values on the backplane of all devices are inconsistent, a corresponding relationship between the display values and the transmission values needs to be established, where the display values of all device functions of all devices on the application program and the transmission values on the backplane of all devices are obtained from a device knowledge base in the big data.
In an exemplary embodiment, the obtaining module is further configured to, for any device function of any device, obtain a display value and a transmission value of the any device function; the establishing module is also used for establishing the corresponding relation between the display value and the transmission value of any equipment function until the corresponding relation between the display value and the transmission value of all the functions is established.
In other words, since different devices have different functions, a display value and a transmission value of any device function of any device are obtained, and a corresponding relationship between the display value and the transmission value of any device function of any device is established until the corresponding relationship between the display values and the transmission values of all device functions of all devices is stored in the knowledge base, and at this time, a corresponding first transmission value may be determined in the knowledge base according to a first display value in a device control instruction issued by an application program or a corresponding second display value may be determined according to a second transmission value uploaded on the backplane.
For example, the displayed value of the air conditioner is 16-30 ℃, the transmission value of the air conditioner bottom plate is 0-14 ℃, the corresponding relation between the displayed value of the air conditioner and the transmission value on the air conditioner bottom plate is established, specifically, when the displayed value of the air conditioner is 16 ℃, the corresponding transmission value of the air conditioner bottom plate is 0 ℃, the displayed value of the air conditioner is 17 ℃, the corresponding transmission value of the air conditioner bottom plate is 1 ℃ … …, and so on, the corresponding relation between all the displayed values and the transmission values of the air conditioner is established; the display value of the refrigerator is-5 ℃, the transmission value of the air conditioner bottom plate is 0-10 ℃, and the corresponding relation between the display values of all refrigerators and the transmission values on the refrigerator bottom plate is established.
Further, the above apparatus further includes: and the storage module is used for storing the corresponding relation in a knowledge base of the target converter, and also storing the corresponding relation, the equipment corresponding to the corresponding relation and the equipment function corresponding to the corresponding relation in the knowledge base so as to search the equipment and the equipment function in the knowledge base as indexes.
In other words, the knowledge base of the target converter not only stores the corresponding relationship between the display value and the transmission value, but also needs to store the device corresponding to the corresponding relationship and the device function corresponding to the corresponding relationship, so as to find the corresponding relationship between the display value and the transmission value of the device and the device function in the knowledge base by using the device and the device function as an index.
In an exemplary embodiment, the obtaining module is further configured to obtain a first display value carried by an apparatus control instruction issued by the application program, and a first apparatus function corresponding to the apparatus control instruction; searching the knowledge base by using the first equipment and the first equipment function as indexes to determine a first corresponding relation corresponding to the first equipment and the first equipment function; and determining a first transmission value corresponding to the first display value according to the first corresponding relation.
It should be noted that, a control instruction is issued to the first device through an application program, where the control instruction includes the first device, a function of the first device, and a first display value corresponding to the control instruction issued by the first device, and a first corresponding relationship between the first display value and the first transmission value is determined through the first device and the function of the first device in a knowledge base of the target converter, so that a first transmission value corresponding to the first display value can be determined through the first corresponding relationship.
For example, the display value of the air conditioner and the transmission value corresponding relation on the air conditioner bottom plate are that the display value of the air conditioner is 16-30 ℃, the transmission value of the air conditioner bottom plate is 0-14 ℃, a control command is issued to the air conditioner through an application program, the issued control command is the display value of the air conditioner, the air conditioner refrigerating temperature is set to be 23 ℃, namely, the display value of the air conditioner is 23 ℃; in the knowledge base, the corresponding relation between the display value and the transmission value of the air conditioner is determined by inquiring the air conditioner and the air conditioner refrigeration, and then the transmission value corresponding to 23 ℃ is determined to be 7 ℃ through the corresponding relation.
In an exemplary embodiment, the obtaining module is further configured to obtain a second transmission value uploaded by the backplane, and a second device function corresponding to the second transmission value; searching the knowledge base by using the second device and the second device function as indexes to determine a second corresponding relation corresponding to the second device and the second device function; and determining a second display value corresponding to the second transmission value according to the second corresponding relation.
In other words, under the condition that the control command is determined to be issued to the second device according to the second transmission value uploaded by the bottom board, the functions of the second device and the second device are determined according to the second transmission value uploaded by the bottom board, a second corresponding relation corresponding to the functions of the second device and the second device is searched in the knowledge base through the functions of the second device and the second device, a second display value is determined according to the second corresponding relation and the second transmission value, and the control command is issued to the second device.
For example, firstly, when the transmission value uploaded by the temperature detection device bottom plate is greater than 25 ℃, a control command is issued to the air conditioner bottom plate, the temperature reaches 23 ℃, when the transmission value uploaded by the temperature detection bottom plate is 30 ℃, the refrigeration function of the air conditioner needs to be turned on is determined, the corresponding second corresponding relation is searched for in the knowledge base through the air conditioner and the refrigeration function, and the display value of the air conditioner corresponding to the transmission value uploaded by the temperature detection bottom plate being 30 ℃ is determined to be 23 ℃ through the second corresponding relation.
Further, according to the fact that the display value of the air conditioner is 23 ℃, the transmission value of the air conditioner bottom plate is determined, and according to the transmission value of the air conditioner bottom plate, a command is issued to the air conditioner bottom plate.
In an exemplary embodiment, the second device and the second device function corresponding to the second transmission value are obtained, and a device type corresponding to the backplane is also required to be obtained; and acquiring a second device and a second device function corresponding to the device type.
That is, the second device and the second device function corresponding to the second transmission value are determined by obtaining the device type corresponding to the backplane.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring display values of all device functions of all devices on the application program and transmission values on the backplane of all devices;
s2, establishing the corresponding relation between the display value and the transmission value, and storing the corresponding relation in the knowledge base of the target converter;
s3, determining at least one of the following according to the corresponding relation stored in the knowledge base: and a first transmission value corresponding to a first display value in an equipment control instruction issued by the application program, and a second display value corresponding to a second transmission value uploaded by the bottom plate.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring display values of all device functions of all devices on the application program and transmission values on the backplane of all devices;
s2, establishing the corresponding relation between the display value and the transmission value, and storing the corresponding relation in the knowledge base of the target converter;
s3, determining at least one of the following according to the corresponding relation stored in the knowledge base: and a first transmission value corresponding to a first display value in an equipment control instruction issued by the application program, and a second display value corresponding to a second transmission value uploaded by the bottom plate.
In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, which may be centralized on a single computing device or distributed across a network of computing devices, and in one exemplary embodiment may be implemented using program code executable by a computing device, such that the steps shown and described may be executed by a computing device stored in a memory device and, in some cases, executed in a sequence different from that shown and described herein, or separately fabricated into individual integrated circuit modules, or multiple ones of them fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A data processing method, comprising:
acquiring display values of all device functions of all devices on an application program and transmission values of all devices on a bottom plate;
establishing a corresponding relation between the display value and the transmission value, and storing the corresponding relation in a knowledge base of a target converter;
determining at least one of the following according to the corresponding relation stored in the knowledge base: and a first transmission value corresponding to a first display value in an equipment control instruction issued by the application program, and a second display value corresponding to a second transmission value uploaded by the bottom plate.
2. The method of claim 1, wherein establishing the correspondence between the display value and the transmission value comprises:
for any equipment function of any equipment, acquiring a display value and a transmission value of the any equipment function;
and establishing the corresponding relation between the display value and the transmission value of any equipment function until the corresponding relation between the display value and the transmission value of all the functions is established.
3. The method of claim 1, wherein storing the correspondence in a knowledge base of a target converter comprises:
and storing the corresponding relation, the equipment corresponding to the corresponding relation and the equipment function corresponding to the corresponding relation in the knowledge base so as to search the equipment and the equipment function in the knowledge base as indexes.
4. The method of claim 3, wherein determining the first transmission value corresponding to the first display value in the device control command issued by the application according to the correspondence stored in the knowledge base comprises:
acquiring a first display value carried by a device control instruction issued by the application program, and a first device function corresponding to the device control instruction;
searching the knowledge base by using the first equipment and the first equipment function as indexes to determine a first corresponding relation corresponding to the first equipment and the first equipment function;
and determining a first transmission value corresponding to the first display value according to the first corresponding relation.
5. The method of claim 3, wherein determining the second display value corresponding to the second transmission value uploaded by the backplane according to the correspondence stored in the knowledge base comprises:
acquiring a second transmission value uploaded by the bottom plate, and a second device function corresponding to the second transmission value;
searching the knowledge base by using the second device and the second device function as indexes to determine a second corresponding relation corresponding to the second device and the second device function;
and determining a second display value corresponding to the second transmission value according to the second corresponding relation.
6. The method of claim 5, wherein obtaining the second device and the second device function corresponding to the second transmission value comprises:
acquiring the equipment type corresponding to the bottom plate;
and acquiring a second device and a second device function corresponding to the device type.
7. A data processing apparatus, comprising:
the acquisition module is used for acquiring display values of all device functions of all devices on an application program and transmission values on a bottom plate of all the devices;
the establishing module is used for establishing the corresponding relation between the display value and the transmission value and storing the corresponding relation in a knowledge base of the target converter;
a determining module, configured to determine at least one of the following according to the correspondence stored in the knowledge base: and a first transmission value corresponding to a first display value in an equipment control instruction issued by the application program, and a second display value corresponding to a second transmission value uploaded by the bottom plate.
8. The apparatus of claim 7, wherein:
the acquisition module is also used for acquiring a display value and a transmission value of any equipment function of any equipment;
the establishing module is also used for establishing the corresponding relation between the display value and the transmission value of any equipment function until the corresponding relation between the display value and the transmission value of all the functions is established.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
CN202110298439.7A 2021-03-19 2021-03-19 Data processing method and device, storage medium and electronic device Pending CN113064946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110298439.7A CN113064946A (en) 2021-03-19 2021-03-19 Data processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110298439.7A CN113064946A (en) 2021-03-19 2021-03-19 Data processing method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113064946A true CN113064946A (en) 2021-07-02

Family

ID=76562524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110298439.7A Pending CN113064946A (en) 2021-03-19 2021-03-19 Data processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113064946A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007116598A (en) * 2005-10-24 2007-05-10 Fujikura Ltd Equipment information displaying apparatus, equipment information displaying method, and computer program
CN102565709A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Method and device for monitoring capacity of battery pack
CN109103877A (en) * 2018-08-28 2018-12-28 广东电网有限责任公司 Distribution definite value processing method, device and electronic equipment
CN112079214A (en) * 2020-09-01 2020-12-15 日立楼宇技术(广州)有限公司 Elevator waiting management system and control method thereof
CN112328245A (en) * 2020-10-30 2021-02-05 深圳优美创新科技有限公司 Page display method, system, electronic equipment and storage medium
CN112416618A (en) * 2020-11-19 2021-02-26 青岛海尔科技有限公司 Application layer data transmission method and device, storage medium and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007116598A (en) * 2005-10-24 2007-05-10 Fujikura Ltd Equipment information displaying apparatus, equipment information displaying method, and computer program
CN102565709A (en) * 2010-12-07 2012-07-11 中国电信股份有限公司 Method and device for monitoring capacity of battery pack
CN109103877A (en) * 2018-08-28 2018-12-28 广东电网有限责任公司 Distribution definite value processing method, device and electronic equipment
CN112079214A (en) * 2020-09-01 2020-12-15 日立楼宇技术(广州)有限公司 Elevator waiting management system and control method thereof
CN112328245A (en) * 2020-10-30 2021-02-05 深圳优美创新科技有限公司 Page display method, system, electronic equipment and storage medium
CN112416618A (en) * 2020-11-19 2021-02-26 青岛海尔科技有限公司 Application layer data transmission method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN115022176B (en) NWDAF network element selection method and device, electronic equipment and readable storage medium
CN111143061A (en) Multi-device linkage control method and device and storage medium
CN111865736B (en) Equipment control method and device
CN111885115B (en) Device binding changing method and device
CN110413845B (en) Resource storage method and device based on Internet of things operating system
CN111885144A (en) Equipment binding method and device
CN105446153A (en) Information processing method and intelligent household device
CN112737816A (en) Equipment binding method and device
CN112637931A (en) Method and device for establishing network connection
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN110365541B (en) Method for generating corresponding relation in gateway, and method and device for sending instruction
CN110472216B (en) Method and device for determining field, storage medium and electronic device
CN110569129A (en) Resource allocation method and device, storage medium and electronic device
CN112511621B (en) Data transmission method and device, storage medium, and electronic device
CN113064946A (en) Data processing method and device, storage medium and electronic device
CN111818611B (en) Equipment binding method and device
CN111831452A (en) Task execution method and device, storage medium and electronic device
CN110188490B (en) Method and device for improving data simulation efficiency, storage medium and electronic device
CN113448747B (en) Data transmission method, device, computer equipment and storage medium
CN111385110B (en) Network management method and device
CN113435642A (en) Edible strategy determination method and device, storage medium and electronic device
CN112416618A (en) Application layer data transmission method and device, storage medium and electronic device
CN111737136A (en) Object testing method and device based on Internet of things platform
CN111741085A (en) Processing method and device of intelligent equipment, storage medium and electronic device
CN112488590B (en) Target object classification method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210702