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

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

Info

Publication number
CN113434190B
CN113434190B CN202110741559.XA CN202110741559A CN113434190B CN 113434190 B CN113434190 B CN 113434190B CN 202110741559 A CN202110741559 A CN 202110741559A CN 113434190 B CN113434190 B CN 113434190B
Authority
CN
China
Prior art keywords
function
version identifier
version
target
terminal
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.)
Active
Application number
CN202110741559.XA
Other languages
Chinese (zh)
Other versions
CN113434190A (en
Inventor
王少辉
刘建国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202110741559.XA priority Critical patent/CN113434190B/en
Publication of CN113434190A publication Critical patent/CN113434190A/en
Application granted granted Critical
Publication of CN113434190B publication Critical patent/CN113434190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a data processing method and device, a storage medium and electronic equipment. Wherein the method comprises the following steps: receiving a first instruction sent by a client of a target application, wherein the first instruction carries a first version identifier corresponding to a current application version of the client of the target application; acquiring a second version identifier corresponding to a version of the equipment model mapped by the first terminal in the Internet of things; under the condition that the first version identifier and the second version identifier are not matched, determining a second device function corresponding to the first device function according to a first target mapping relation stored in a mapping relation table; and sending a second instruction carrying the function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating to manage the second equipment function in the first terminal. The invention solves the technical problem that the terminal function instruction cannot be executed due to the incompatibility of the data of the equipment model.

Description

Data processing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a data processing method and apparatus, a storage medium, and an electronic device.
Background
Currently, accessing an intelligent terminal to the internet of things is generally divided into three main parts of modeling, equipment creation and application development. The modeling is to abstract and standardize the data of the terminal functions of different classes. The creation device is instantiated as a basic standardized device model. Application development is the access service and interaction functions to the instantiated terminals. However, as the service is continuously upgraded, the device model is required to iterate continuously to meet the current service. In the iteration process, equipment is created under equipment models of different versions, and corresponding application management, such as mobile phone APP and the like, can be iterated synchronously and upgraded synchronously.
However, the problem of data incompatibility exists between different versions of equipment models, and the iterative application management is the management which cannot be applied to intelligent terminals with unmatched versions. If the intelligent terminal created based on the old version equipment model wants to iterate the equipment model, the iteration of the equipment model can be realized only through the iteration of the main board, so that the operation is complex, and the realization difficulty is high. Thus, to accommodate smart terminals created by different versions of device models, different versions of applications are typically required to enable management of the smart terminals. Then the intelligent terminal created based on the device model of different versions needs to be managed by using the application of different versions, so that the application management operation of the intelligent device is complicated.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a data processing method and device, a storage medium and electronic equipment, which at least solve the technical problem that terminal function instructions cannot be executed due to data incompatibility of equipment models.
According to an aspect of an embodiment of the present invention, there is provided a data processing method including: receiving a first instruction sent by a client of a target application, wherein the first instruction is used for indicating to manage a first equipment function of a first terminal in the Internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application; acquiring a second version identifier corresponding to a version of the equipment model mapped by the first terminal in the Internet of things; determining a second device function corresponding to the first device function according to a first target mapping relation stored in a mapping relation table under the condition that the first version identifier and the second version identifier are not matched, wherein the first target mapping relation comprises a function mapping relation between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier; and sending a second instruction carrying the function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating to manage the second equipment function in the first terminal.
According to another aspect of the embodiment of the present invention, there is also provided a data processing apparatus including: the device comprises a receiving unit, a first control unit and a second control unit, wherein the receiving unit is used for receiving a first instruction sent by a client of a target application, the first instruction is used for indicating to manage a first equipment function of a first terminal in the Internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application; the acquiring unit is used for acquiring a second version identifier corresponding to the version of the equipment model mapped in the Internet of things by the first terminal; a determining unit, configured to determine, according to a first target mapping relationship stored in a mapping relationship table, a second device function corresponding to the first device function when the first version identifier and the second version identifier are not matched, where the first target mapping relationship includes a function mapping relationship between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier; and the sending unit is used for sending a second instruction carrying the function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating to manage the second equipment function in the first terminal.
According to a further aspect of embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the above-described data processing method when run.
According to still another aspect of the embodiments 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 above-described data processing method by the computer program.
In the embodiment of the invention, the mode of determining the second equipment function corresponding to the first equipment function according to the function mapping relation and transmitting the second instruction corresponding to the second equipment function to the first terminal is adopted when the first instruction for managing the first equipment function of the first terminal is received, and the second instruction of the second equipment function which can be executed by the first terminal is transmitted to the first terminal through the mapping relation between the first equipment function and the second equipment function under the condition that the version identifications are not matched.
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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic illustration of an application environment for an alternative data processing method according to an embodiment of the invention;
FIG. 2 is a flow chart of an alternative data processing method according to an embodiment of the invention;
FIG. 3 is a diagram of a version mapping of an alternative data processing method according to an embodiment of the present invention;
FIG. 4 is a functional mapping diagram of an alternative data processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart of an alternative data processing method according to an embodiment of the invention;
FIG. 6 is a flow chart of an alternative data processing method according to an embodiment of the invention;
FIG. 7 is a flow chart of an alternative data processing method according to an embodiment of the invention;
FIG. 8 is a schematic diagram of an alternative data processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of an embodiment of the present invention, there is provided a data processing method, alternatively, the above data processing method may be applied, but not limited to, in the environment shown in fig. 1. The target terminal 100 and the first terminal 130 perform data interaction with the server 120 through the network 110. The target terminal 100 runs a client having a target application therein. The server 120 is not limited to a server corresponding to the internet of things, and a database 122 and a processing engine 124 are operated. The database 122 is used for storing the received and processed data, and the processing engine 124 is used for sequentially executing S102 to S108 to realize data processing.
A first instruction is received. The first instruction is triggered by a client of a target application in the target terminal and is used for indicating to manage a first equipment function of a first terminal in the Internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application. And obtaining a second version identifier. The second version identifier is a version identifier corresponding to a version of the device model mapped by the first terminal in the internet of things. A second device function is determined. And under the condition that the first version identifier and the second version identifier are not matched, determining a second device function corresponding to the first device function according to a first target mapping relation stored in a mapping relation table, wherein the first target mapping relation comprises a function mapping relation between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier. And sending a second instruction. And sending a second instruction carrying the function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating to manage the second equipment function in the first terminal. The first instruction is converted into a second instruction which can be executed by the first terminal through the data processing method.
Alternatively, in this embodiment, the terminal may be a terminal device configured with a target client, and may include, but is not limited to, at least one of the following: cell phones (e.g., android cell phones, IOS cell phones, etc.), notebook computers, tablet computers, palm computers, MIDs (Mobile Internet Devices ), PADs, desktop computers, smart televisions, etc. The client of the target application may be a client provided with device function management, not limited to a video client, an instant messaging client, a browser client, an educational client, and the like. The network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: local area networks, metropolitan area networks, and wide area networks, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communications. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and is not limited in any way in the present embodiment.
As an alternative embodiment, as shown in fig. 2, the above data processing method includes:
s202, receiving a first instruction sent by a client of a target application, wherein the first instruction is used for indicating to manage a first equipment function of a first terminal in the Internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application;
S204, obtaining a second version identifier corresponding to the version of the equipment model mapped by the first terminal in the Internet of things;
s206, under the condition that the first version identifier and the second version identifier are not matched, determining a second device function corresponding to the first device function according to a first target mapping relation stored in a mapping relation table, wherein the first target mapping relation comprises a function mapping relation between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier;
and S208, sending a second instruction carrying the function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating to manage the second equipment function in the first terminal.
Alternatively, the client of the target application is not limited to a client that performs function management on a terminal device in the internet of things. And triggering the function management of the terminal equipment through the client of the target application.
Optionally, the device function of the terminal device is a function determined based on a device model, and the device models of different versions correspond to different device function versions. The application version of the client of the target application corresponds to the version of the device model and the device function, and the target application of the corresponding version is developed based on the device model. The correspondence of the device model, the device function, and the application is not limited to that shown in fig. 3. In the iteration process, the equipment model is sequentially iterated from the standard equipment model 1.0 to the standard equipment model 2.0 and the standard equipment model 3.0. Each standard device model has a corresponding device function, marked with the same version identification. Based on the device functions corresponding to the standard device model, the application of the corresponding version is established, the device function management of the terminal established based on the device model is realized, the function management is realized based on the instruction triggered by the application, and the instruction is a function management instruction corresponding to the function. After the device model iterations, each version of device model data, device function data, is stored in the mapping table 302. The first target mapping relationship is included in the mapping table 302. The first target mapping relationship is a functional mapping relationship between the first version identification and the second version identification.
Optionally, the first version identifier corresponding to the current application version of the client of the target application may indicate a version of the first device model corresponding to the current application version. The device model version mapped by the first terminal in the Internet of things is a version of a second device model corresponding to the first terminal. The first device model and the second device model are device models of different versions in a model iteration process, and correspond to different device functions. The version of the device model is also a version of the device functionality.
Optionally, the device functions of different versions correspond to different function management instructions, and function management on the terminal device is realized through the function management instructions. And identifying the function version in the mapping relation through the version identification so as to determine the functions corresponding to the functions in different versions.
As an alternative embodiment, before receiving the target instruction of the target application, the method further includes: and constructing a mapping relation table, wherein the mapping relation table comprises a functional mapping relation and a data conversion relation of at least two version identifiers, the functional mapping relation is used for indicating the functional mapping relation between each version identifier in the at least two version identifiers, and the conversion relation is used for indicating the data conversion relation of functional data between each version identifier in the at least two version identifiers.
Optionally, the function mapping relation is used for mapping the functions corresponding to the function management instructions sent by the application, so as to obtain mapped instructions, and sending the mapped instructions to the terminal to control the terminal to execute. The data mapping relation is used for carrying out data mapping on the functional data reported by the terminal so as to map the data into the corresponding function and send the data to the application for display.
As an optional implementation manner, the above functional mapping relationship includes at least one of the following: .
Combining the first equipment function with the first class and the second class to form a third class;
splitting the first class of the first equipment function into a fourth class and a fifth class;
combining the first device function and the fourth device function into a fifth device function;
splitting the first device function into a sixth device function and a seventh device function;
iterating the first device function to the target function.
Alternatively, in the class combination, the third class may be a class different from the first class and the second class, or may be the first class or the second class. When the third class is the first class, the second class is incorporated into the first class. The functions included in the second class are combined synchronously.
Alternatively, the first category is not limited to being split into two or more categories. The separation of the categories is to re-classify the functions contained in the categories.
Alternatively, in the function combination, the fifth device function may be a function different from the first device function and the fourth device function, or may be the first device function or the fourth device function. When the fifth device function is the first device function, the fourth device function is incorporated into the first device function.
Alternatively, the first device function is not limited to be split into two or more functions.
Alternatively, the function iteration may be, but is not limited to, adding a new function.
The expression of the function mapping relationship is not limited to that shown in fig. 4. And sequentially iterating the standard equipment model 1.0 into the standard equipment model 2.0 and the standard equipment model 3.0 to explain the functional mapping relation. Class combination may be that class 1 and class 2 are combined to class 1, and function a in corresponding class 1 and function B in class 2 are combined to function a. The function iteration may be in category 1, iterating out function B. The function fusion may be to combine function D and function C in category 1 into function D. The function split may be that function C is split into function C1 and function D1.
In the embodiment of the application, a mode of determining whether the first instruction of the first equipment function corresponding to the first equipment function can be executed or not according to the function mapping relation under the condition that the second version identifier of the first terminal is not matched with the first version identifier of the client of the Mubao application sending the first instruction is adopted, and the second instruction corresponding to the second equipment function is sent to the first terminal.
As an optional implementation manner, after obtaining the second version identifier corresponding to the version of the device model mapped by the first terminal in the internet of things and before determining the second device function corresponding to the first device function according to the first target mapping relationship stored in the mapping relationship table if the first version identifier and the second version identifier are not matched, the method further includes:
s1, comparing a first version identifier with a second version identifier;
s2, under the condition that the first version identifier is consistent with the second version identifier, determining that the first version identifier is matched with the second version identifier;
and S3, under the condition that the first version identifier is inconsistent with the second version identifier, determining that the first version identifier is not matched with the second version identifier.
Alternatively, the comparison of the first version identification and the second version identification is not limited to whether the comparison of the version identifications is completely identical. In the event that the version identifications are identical, it is determined that the first version identification matches the second version identification.
Optionally, in the case that the first version identifier matches the second version identifier, the first instruction is directly sent to the first terminal to perform function management of the first device function.
Optionally, under the condition that the first version identifier and the second version identifier are different, the first version identifier is inconsistent with the second version identifier, and if the first version identifier is not matched with the second version identifier, the function mapping is performed on the first device function.
As an optional implementation manner, the determining, according to the first target mapping relationship stored in the mapping relationship table, the second device function corresponding to the first device function includes: and searching the second device function in the second device function set corresponding to the second version identifier under the condition that the first target mapping relationship indicates the direct mapping relationship between the second version identifier and the first version identifier.
Optionally, a mapping manner of the first version identifier and the second version identifier, where the first target mapping relationship is defined, is determined. The mapping manner is not limited to include direct mapping and indirect mapping. The direct mapping is used to indicate that the first version identification is adjacent to the second version identification, and its corresponding device model is the device model that is adjacent during the iteration. For example, 1.0 and 2.0. The indirect mapping is used to indicate that the first version identifier is not adjacent to the second version identifier, and its corresponding device model is a device model that is not adjacent during the iterative process. For example, 1.0 and 3.0.
As an optional implementation manner, as shown in fig. 3, the determining, according to the first target mapping relationship stored in the mapping relationship table, the second device function corresponding to the first device function includes:
s302, determining a third equipment function set corresponding to a third version identifier under the condition that a first target mapping relationship comprises a first mapping relationship and a second mapping relationship, wherein the first mapping relationship indicates a direct mapping relationship between the first version identifier and the third version identifier, and the second mapping relationship indicates a mapping relationship between the third version identifier and the second version identifier;
s304, searching a third device function of the first device function in the first mapping relation in the third device function set;
s306, searching a second device function of the third device function in the second mapping relation in the second device function set.
Optionally, the mapping relationship indicates a case of indirect mapping, and the relevant direct mapping functions are determined sequentially.
Optionally, the functional split example of fig. 4 is specifically described. In the case that the first version identifier is 1.0, the second version identifier is 3.0, and the first device function is function a, first, determining a third version identifier 2.0 having a direct mapping relation with the first version identifier 1.0, determining a function C of function a in version identifier 2.0, and then determining a function D2 of function C in version identifier 3.0, so as to implement a function D2 of function a in version 3.0.
As an alternative embodiment, as shown in fig. 6, before receiving the first instruction sent by the client of the target application, or after sending the second instruction carrying the function identifier of the second device function to the first terminal, the method further includes:
s602, receiving target data sent by a first terminal, wherein the target data is used for indicating the operation attribute of a second equipment function, and the target data carries a second version identifier;
s604, under the condition that the first version identifier and the second version identifier are not matched, determining that target data is mapped to first data in a first equipment function according to a first target conversion relation stored in a mapping relation table, wherein the first target conversion relation is used for indicating a data conversion relation between the first version identifier and the second version identifier;
and S606, the first data is sent to the target application.
Optionally, under the condition that the device function versions are different, data conversion is performed on the data reported by the terminal device, so that mapping conversion of the data in the different device function versions is realized, and compatibility between the data reported by the terminal device and display data in the application is realized.
In the embodiment of the application, the data reported by the terminal equipment is mapped to the equipment function version corresponding to the application through the data conversion relation in the mapping relation table, so that the mapping of the uplink data among different equipment function versions is realized, and the data compatibility of the different equipment function versions is realized.
The flow of the data processing method described above is not limited to that shown in fig. 7.
Step S702, a first instruction is received. The first instruction is triggered by the target application and indicates to perform application management on a first device function of the first terminal, and the first instruction carries a first version identifier of the target application.
Step S704, a second version identifier of the first terminal is obtained. The second version identification indicates a version of the device model applied by the first terminal.
Step S706 compares whether the first version identifier is consistent with the second version identifier. If the determination is yes, the process goes to step S714; if no, S708 is continued.
Step S708, determining a first target mapping relationship. The first target mapping relationship is a functional mapping relationship between the first version identification and the second version identification.
Step S710, determining a second device function. And determining a second device function corresponding to the first device function in the first target mapping relation according to the first target mapping relation.
Step S712, issuing a second instruction. The second instruction is a control instruction corresponding to the second device function and is used for instructing the first terminal to perform application management on the second device function.
In step S714, a first instruction is issued.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a data processing apparatus for implementing the above data processing method. As shown in fig. 8, the apparatus includes:
a receiving unit 802, configured to receive a first instruction sent by a client of a target application, where the first instruction is configured to instruct to manage a first device function of a first terminal in the internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application;
an obtaining unit 804, configured to obtain a second version identifier corresponding to a version of the device model mapped by the first terminal in the internet of things;
A determining unit 806, configured to determine, according to a first target mapping relationship stored in the mapping relationship table, a second device function corresponding to the first device function, where the first target mapping relationship includes a function mapping relationship between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier, where the first version identifier and the second version identifier are not matched;
and a sending unit 808, configured to send a second instruction carrying a function identifier of the second device function to the first terminal, where the second instruction is used to instruct to manage the second device function in the first terminal.
Optionally, the data processing apparatus further includes a comparing unit, configured to compare the first version identifier and the second version identifier after obtaining the second version identifier corresponding to the version of the device model mapped by the first terminal in the internet of things, and before determining the second device function corresponding to the first device function according to the first target mapping relationship stored in the mapping relationship table if the first version identifier and the second version identifier are not matched; determining that the first version identifier is matched with the second version identifier under the condition that the first version identifier is consistent with the second version identifier; in the event that the first version identification does not match the second version identification, it is determined that the first version identification does not match the second version identification.
Optionally, the determining unit 806 includes:
and the searching module is used for searching the second device function in the second device function set corresponding to the second version identifier under the condition that the first target mapping relationship indicates the direct mapping relationship between the second version identifier and the first version identifier.
Optionally, the determining unit 806 includes:
the determining module is used for determining a third equipment function set corresponding to a third version identifier under the condition that the first target mapping relationship comprises a first mapping relationship and a second mapping relationship, wherein the first mapping relationship indicates a direct mapping relationship between the first version identifier and the third version identifier, and the second mapping relationship indicates a mapping relationship between the third version identifier and the second version identifier; searching a third device function of the first device function in the first mapping relation in a third device function set; and searching a second device function of the third device function in the second mapping relation in the second device function set.
Optionally, the data processing apparatus further includes a data unit, configured to receive, before receiving a first instruction sent by a client of the target application or after sending a second instruction carrying a function identifier of the second device function to the first terminal, target data sent by the first terminal, where the target data is used to indicate an operation attribute of the second device function, and the target data carries a second version identifier; under the condition that the first version identifier and the second version identifier are not matched, determining that target data are mapped to first data in a first equipment function according to a first target conversion relationship stored in a mapping relationship table, wherein the first target conversion relationship is used for indicating a data conversion relationship between the first version identifier and the second version identifier; the first data is sent to the target application.
Optionally, the data processing apparatus further includes a building unit, configured to build a mapping relationship table before receiving the target instruction of the target application, where the mapping relationship table includes a function mapping relationship of at least two version identifiers and a data conversion relationship, the function mapping relationship is used to indicate the function mapping relationship between each version identifier in the at least two version identifiers, and the conversion relationship is used to indicate the data conversion relationship of the function data between each version identifier in the at least two version identifiers.
Optionally, the above functional mapping relationship includes at least one of the following: . Combining the first equipment function with the first class and the second class to form a third class; splitting the first class of the first equipment function into a fourth class and a fifth class; combining the first device function and the fourth device function into a fifth device function; splitting the first device function into a sixth device function and a seventh device function; iterating the first device function to the target function.
In the embodiment of the application, a mode of determining whether the first instruction of the first equipment function corresponding to the first equipment function can be executed or not according to the function mapping relation under the condition that the second version identifier of the first terminal is not matched with the first version identifier of the client of the Mubao application sending the first instruction is adopted, and the second instruction corresponding to the second equipment function is sent to the first terminal.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the above data processing method, where the electronic device may be a terminal device or a server as shown in fig. 1. The present embodiment is described taking the electronic device as a server as an example. As shown in fig. 9, the electronic device comprises a memory 902 and a processor 904, the memory 902 having stored therein a computer program, the processor 904 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, receiving a first instruction sent by a client of a target application, wherein the first instruction is used for indicating to manage a first equipment function of a first terminal in the Internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application;
s2, acquiring a second version identifier corresponding to a version of the equipment model mapped by the first terminal in the Internet of things;
S3, under the condition that the first version identifier and the second version identifier are not matched, determining a second device function corresponding to the first device function according to a first target mapping relation stored in a mapping relation table, wherein the first target mapping relation comprises a function mapping relation between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier;
and S4, sending a second instruction carrying the function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating to manage the second equipment function in the first terminal.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 9 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an IOS phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 9 is not limited to the structure of the electronic device described above. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
The memory 902 may be used to store software programs and modules, such as program instructions/modules corresponding to the data processing methods and apparatuses in the embodiments of the present invention, and the processor 904 executes the software programs and modules stored in the memory 902, thereby performing various functional applications and data processing, that is, implementing the data processing methods described above. The memory 902 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 902 may further include memory remotely located relative to the processor 804, which may be connected to the terminal via 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 memory 902 may be used for storing information such as a function mapping relationship, a version identifier, and the like. As an example, as shown in fig. 9, the memory 902 may include, but is not limited to, a receiving unit 802, an acquiring unit 804, a determining unit 806, and a transmitting unit 808 in the data processing apparatus. In addition, other module units in the data processing apparatus may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 906 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 806 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 906 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 908 for displaying the function mapping relation; and a connection bus 910 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in various alternative implementations of the data processing aspects described above. Wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, receiving a first instruction sent by a client of a target application, wherein the first instruction is used for indicating to manage a first equipment function of a first terminal in the Internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application;
s2, acquiring a second version identifier corresponding to a version of the equipment model mapped by the first terminal in the Internet of things;
S3, under the condition that the first version identifier and the second version identifier are not matched, determining a second device function corresponding to the first device function according to a first target mapping relation stored in a mapping relation table, wherein the first target mapping relation comprises a function mapping relation between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier;
and S4, sending a second instruction carrying the function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating to manage the second equipment function in the first terminal.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (10)

1. A method of data processing, comprising:
receiving a first instruction sent by a client of a target application, wherein the first instruction is used for indicating to manage a first equipment function of a first terminal in the Internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application;
acquiring a second version identifier corresponding to a version of the equipment model mapped by the first terminal in the Internet of things;
determining a second device function corresponding to the first device function according to a first target mapping relation stored in a mapping relation table under the condition that the first version identifier and the second version identifier are not matched, wherein the first target mapping relation comprises a functional mapping relation between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier;
Sending a second instruction carrying a function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating to manage the second equipment function in the first terminal;
wherein the first version identifier indicates a version of a first device model corresponding to a current application version;
the function mapping relation is used for mapping functions corresponding to the function management instructions sent by the application to obtain mapped instructions, and sending the mapped instructions to the first terminal to control the first terminal to execute the instructions.
2. The method of claim 1, wherein after obtaining a second version identifier corresponding to a version of a device model mapped by the first terminal in the internet of things and before determining a second device function corresponding to the first device function according to a first target mapping relationship stored in a mapping relationship table if the first version identifier and the second version identifier do not match, the method further comprises:
comparing the first version identifier with the second version identifier;
determining that the first version identifier is matched with the second version identifier under the condition that the first version identifier is consistent with the second version identifier;
And in the case that the first version identifier is inconsistent with the second version identifier, determining that the first version identifier is not matched with the second version identifier.
3. The method of claim 1, wherein determining, according to the first target mapping stored in the mapping table, the second device function corresponding to the first device function comprises:
and searching a second device function in a second device function set corresponding to the second version identifier under the condition that the first target mapping relationship indicates a direct mapping relationship between the second version identifier and the first version identifier.
4. The method of claim 3, wherein determining, according to the first target mapping stored in the mapping table, the second device function corresponding to the first device function comprises:
determining a third device function set corresponding to a third version identifier under the condition that the first target mapping relationship comprises a first mapping relationship and a second mapping relationship, wherein the first mapping relationship indicates a direct mapping relationship between the first version identifier and the third version identifier, and the second mapping relationship indicates a mapping relationship between the third version identifier and the second version identifier;
Searching a third device function of the first device function in the first mapping relation in the third device function set;
and searching the second device function of the third device function in the second mapping relation in the second device function set.
5. The method according to claim 1, characterized in that before receiving the first instruction sent by the client of the target application or after sending the second instruction carrying the function identification of the second device function to the first terminal, the method further comprises:
receiving target data sent by the first terminal, wherein the target data is used for indicating the operation attribute of the second equipment function, and the target data carries the second version identifier;
under the condition that the first version identifier and the second version identifier are not matched, determining that the target data is mapped to first data in the first equipment function according to a first target conversion relation stored in a mapping relation table, wherein the first target conversion relation is used for indicating a data conversion relation between the first version identifier and the second version identifier;
And sending the first data to the target application.
6. The method of claim 1, wherein prior to receiving the target instructions for the target application, the method further comprises:
the mapping relation table is constructed, wherein the mapping relation table comprises a functional mapping relation and a data conversion relation of at least two version identifiers, the functional mapping relation is used for indicating the functional mapping relation between each version identifier in the at least two version identifiers, and the conversion relation is used for indicating the data conversion relation of functional data between each version identifier in the at least two version identifiers.
7. The method according to any one of claims 1 to 6, wherein the functional mapping relationship comprises at least one of:
combining the first class with the second class of the first equipment function into a third class;
splitting the first class in which the first equipment function is located into a fourth class and a fifth class;
combining the first device function and the fourth device function into a fifth device function;
splitting the first device function into a sixth device function and a seventh device function;
iterating the first device function as a target function.
8. A data processing apparatus, comprising:
the device comprises a receiving unit, a first control unit and a second control unit, wherein the receiving unit is used for receiving a first instruction sent by a client of a target application, the first instruction is used for indicating to manage a first equipment function of a first terminal in the Internet of things, and the first instruction carries a first version identifier corresponding to a current application version of the client of the target application;
the acquiring unit is used for acquiring a second version identifier corresponding to the version of the equipment model mapped by the first terminal in the Internet of things;
a determining unit, configured to determine, according to a first target mapping relationship stored in a mapping relationship table, a second device function corresponding to the first device function when the first version identifier and the second version identifier are not matched, where the first target mapping relationship includes a function mapping relationship between a first device model indicated by the first version identifier and a second device model indicated by the second version identifier;
a sending unit, configured to send a second instruction carrying a function identifier of the second device function to the first terminal, where the second instruction is used to instruct to manage the second device function in the first terminal;
Wherein the first version identifier indicates a version of a first device model corresponding to a current application version;
the function mapping relation is used for mapping functions corresponding to the function management instructions sent by the application to obtain mapped instructions, and sending the mapped instructions to the first terminal to control the first terminal to execute the instructions.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program which, when run, performs the method of any one of claims 1 to 7.
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 according to any of the claims 1 to 7 by means of the computer program.
CN202110741559.XA 2021-06-30 2021-06-30 Data processing method and device, storage medium and electronic equipment Active CN113434190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110741559.XA CN113434190B (en) 2021-06-30 2021-06-30 Data processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110741559.XA CN113434190B (en) 2021-06-30 2021-06-30 Data processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113434190A CN113434190A (en) 2021-09-24
CN113434190B true CN113434190B (en) 2023-06-16

Family

ID=77758329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110741559.XA Active CN113434190B (en) 2021-06-30 2021-06-30 Data processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113434190B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116674B (en) * 2021-11-30 2024-06-18 浩云科技股份有限公司 Service modeling method, device, medium and equipment based on comprehensive service platform

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578437A (en) * 2014-10-09 2016-05-11 中国移动通信集团公司 Business processing method, business processing device and business processing system
CN107357265A (en) * 2017-06-01 2017-11-17 安徽硖石智能装备科技有限公司 A kind of intelligent plant system based on VR technologies
CN108665890A (en) * 2017-03-28 2018-10-16 三星电子株式会社 Operate method, electronic equipment and the system for supporting the equipment of speech-recognition services
CN109840133A (en) * 2017-11-29 2019-06-04 北京高德云图科技有限公司 The operation method and device of application function
CN110362301A (en) * 2019-06-10 2019-10-22 北京大学 A kind of processing method of terminal applies behavior reflex
CN111737354A (en) * 2020-06-30 2020-10-02 中国工商银行股份有限公司 Method, device, system and medium for detecting data consistency
CN111953536A (en) * 2020-07-31 2020-11-17 上海上实龙创智能科技股份有限公司 Internet of things equipment configuration method based on model replication
WO2020263523A1 (en) * 2019-06-27 2020-12-30 Forescout Technologies, Inc. Comprehensive risk assessment
CN112486691A (en) * 2020-12-17 2021-03-12 深圳Tcl新技术有限公司 Control method and system of display device and computer readable storage medium
CN113050980A (en) * 2019-12-27 2021-06-29 西安诺瓦星云科技股份有限公司 Function configuration information acquisition method and device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578437A (en) * 2014-10-09 2016-05-11 中国移动通信集团公司 Business processing method, business processing device and business processing system
CN108665890A (en) * 2017-03-28 2018-10-16 三星电子株式会社 Operate method, electronic equipment and the system for supporting the equipment of speech-recognition services
CN107357265A (en) * 2017-06-01 2017-11-17 安徽硖石智能装备科技有限公司 A kind of intelligent plant system based on VR technologies
CN109840133A (en) * 2017-11-29 2019-06-04 北京高德云图科技有限公司 The operation method and device of application function
CN110362301A (en) * 2019-06-10 2019-10-22 北京大学 A kind of processing method of terminal applies behavior reflex
WO2020263523A1 (en) * 2019-06-27 2020-12-30 Forescout Technologies, Inc. Comprehensive risk assessment
CN113050980A (en) * 2019-12-27 2021-06-29 西安诺瓦星云科技股份有限公司 Function configuration information acquisition method and device and computer readable storage medium
CN111737354A (en) * 2020-06-30 2020-10-02 中国工商银行股份有限公司 Method, device, system and medium for detecting data consistency
CN111953536A (en) * 2020-07-31 2020-11-17 上海上实龙创智能科技股份有限公司 Internet of things equipment configuration method based on model replication
CN112486691A (en) * 2020-12-17 2021-03-12 深圳Tcl新技术有限公司 Control method and system of display device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于数字孪生的复杂产品设计制造一体化开发框架与关键技术;李浩等;《计算机集成制造系统》;第25卷(第6期);第1320-1336页 *

Also Published As

Publication number Publication date
CN113434190A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN111683066B (en) Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
EP3057281A1 (en) M2m application remote registration method, device, system and storage medium
CN111416723B (en) Equipment management method and related equipment
CN113792008B (en) Method and device for acquiring network topology structure, electronic equipment and storage medium
CN113691635B (en) Method and device for calling microservice, electronic equipment and readable storage medium
CN112804730A (en) Equipment interconnection method and device, server, intelligent equipment and storage medium
CN110245128A (en) Method for building up and device, storage medium, the electronic device of meta-model
CN114090388A (en) Information acquisition method, server cluster, server and equipment
CN113434190B (en) Data processing method and device, storage medium and electronic equipment
CN112698640A (en) ECU upgrading test system
CN110737458A (en) code updating method and related device
CN108647139B (en) System test method, device, storage medium and electronic device
CN110198533B (en) Method for remotely controlling BLE Bluetooth device and BLE Bluetooth device
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN107577822A (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN113994649A (en) Method, device, equipment and storage medium for accessing BLE Mesh equipment
CN111045928A (en) Interface data testing method, device, terminal and storage medium
CN113468182B (en) Data storage method and system
CN107305581B (en) Table connection method in distributed database system and distributed database system
CN108400901A (en) Test method, terminal device and the computer readable storage medium of application
CN115803736A (en) File generation method and device in Internet of things, computer equipment and storage medium
CN112380411A (en) Sensitive word processing method and device, electronic equipment, system and storage medium
CN115842869B (en) Digital rural management method, device and control system based on Internet of things
CN112732296B (en) Software version updating method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant