CN113434190A - 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
CN113434190A
CN113434190A CN202110741559.XA CN202110741559A CN113434190A CN 113434190 A CN113434190 A CN 113434190A CN 202110741559 A CN202110741559 A CN 202110741559A CN 113434190 A CN113434190 A CN 113434190A
Authority
CN
China
Prior art keywords
version
function
device function
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.)
Granted
Application number
CN202110741559.XA
Other languages
Chinese (zh)
Other versions
CN113434190B (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 identification corresponding to the current application version of the client of the target application; acquiring a second version identifier corresponding to the version of the equipment model mapped in the Internet of things by the first terminal; under the condition that the first version identification is not matched with the second version identification, 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 a function identifier of the second equipment function to the first terminal, wherein the second instruction is used for indicating management of 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, an intelligent terminal is generally divided into three main parts, namely model building, equipment creating and application development. The model building is to perform data abstraction and standardization on terminal functions of different categories. Creating a device is an underlying standardized device model for instantiation. The application development is to perform access service and interaction functions on the instantiated terminal. However, as the business is continuously upgraded, the equipment model needs to be continuously iterated to meet the current business. In the iteration process, equipment can be created under equipment models of different versions, and corresponding application management, such as mobile phone APP and the like, can also be synchronously iterated and synchronously upgraded.
However, the problem of data incompatibility exists between equipment models of different versions, and application management after iteration cannot be applied to management of intelligent terminals with unmatched versions. If the intelligent terminal established based on the old version equipment model is required to iterate the equipment model, the iteration of the equipment model can be realized only through the iteration of the main board, the operation is complex, and the realization difficulty is high. Therefore, in order to adapt to smart terminals created by different versions of device models, different versions of applications are generally required to implement management of the smart terminals. Then, it is necessary to manage the intelligent terminal created based on the device models of different versions by using applications of different versions, so that the application management operation of the intelligent device is cumbersome.
In view of the above problems, no effective solution has been proposed.
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 a terminal function instruction cannot be executed due to incompatibility of data of an equipment model.
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 management of a first device function of a first terminal in the internet of things, and the first instruction carries a first version identification corresponding to a current application version of the client of the target application; acquiring a second version identifier corresponding to the version of the equipment model mapped in the internet of things by the first terminal; determining a second device function corresponding to the first device function according to a first target mapping relationship stored in a mapping relationship table under the condition that the first version identifier and the second version identifier are not matched, wherein the first target mapping relationship comprises 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 sending a second instruction carrying the function identifier of the second equipment function to the first terminal, wherein the second instruction is used for instructing management of the second equipment function in the first terminal.
According to another aspect of the embodiments of the present invention, there is also provided a data processing apparatus, including: the system comprises a receiving unit, a sending unit and a processing 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 device function of a first terminal in the internet of things, and the first instruction carries a first version identification corresponding to a current application version of the client of the target application; an obtaining unit, configured to obtain a second version identifier corresponding to a version of an equipment model mapped in the internet of things by the first terminal; a determining unit, configured to determine, when the first version identifier and the second version identifier are not matched, a second device function corresponding to the first device function according to a first target mapping relationship stored in a mapping relationship table, 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.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the above data processing method when running.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores therein a computer program, and the processor is configured to execute the data processing method described above through the computer program.
In the embodiment of the invention, a mode that when a first instruction for managing a first device function of a first terminal is received, and a second version identifier of the first terminal is not matched with a first version identifier of a client of a Mubao application which sends the first instruction, a second device function corresponding to the first device function is determined according to a function mapping relation, and the second instruction corresponding to the second device function is sent to the first terminal is adopted, and by determining the version identifier of the client of a target application and the version identifier of a device model corresponding to the first terminal, and under the condition that the version identifiers are not matched, a second instruction of the second device function which can be executed by the first terminal is sent to the first terminal through the mapping relation between the first device function and the second device function, whether the first instruction corresponding to the first device function can be executed is determined through the comparison of the version identifiers, under the condition that the version identifications are not matched, the purpose of converting a first instruction of a first device function which cannot be executed by a first terminal into a second instruction of a second device function which can be executed is achieved, so that the technical effects of constructing a function mapping relation between the version identifications, realizing data compatibility of device models of different versions, converting the function instruction into the instruction which can be executed by the terminal are achieved, and the technical problem that the terminal function instruction cannot be executed due to data incompatibility of the device models is 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 schematic diagram of an application environment of an alternative data processing method according to an embodiment of the invention;
FIG. 2 is a flow diagram illustrating an alternative data processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a version mapping relationship 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 diagram illustrating an alternative data processing method according to an embodiment of the present invention;
FIG. 6 is a flow diagram illustrating an alternative data processing method according to an embodiment of the present invention;
FIG. 7 is a flow diagram illustrating an alternative data processing method according to an embodiment of the present invention;
FIG. 8 is a block diagram of an alternative data processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
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. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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 the embodiments of the present invention, there is provided a data processing method, which may be applied, but not limited to, to 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 has a client running therein a target application. The server 120 is not limited to being a corresponding server of the internet of things, and runs with a database 122 and a processing engine 124. The database 122 is used for storing the received and processed data, and the processing engine 124 is used for executing S102 to S108 in sequence to realize data processing.
A first instruction is received. The first instruction is triggered by a client of a target application in a target terminal and used for indicating management of a first device function of the first terminal in the internet of things, and the first instruction carries a first version identification corresponding to a current application version of the client of the target application. And acquiring a second version identification. The second version identification is a version identification corresponding to the version of the equipment model mapped in the internet of things by the first terminal. A second device function is determined. And under the condition that the first version identification and the second version identification are not matched, determining a second device function corresponding to the first device function according to a first target mapping relation stored in the mapping relation table, wherein the first target mapping relation comprises a function mapping relation between a first device model indicated by the first version identification and a second device model indicated by the second version identification. And sending a second instruction. And 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 management of 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.
Optionally, 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: mobile phones (such as Android phones, IOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The client of the target application may be a client with device function management, and is not limited to a video client, an instant messaging client, a browser client, an education client, and the like. Such networks may include, but are not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. 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 this is not limited in this embodiment.
As an alternative implementation, as shown in fig. 2, the 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 management of a first device function of a first terminal in the Internet of things, and the first instruction carries a first version identification corresponding to a current application version of the client of the target application;
s204, acquiring a second version identifier corresponding to the version of the equipment model mapped in the Internet of things by the first terminal;
s206, under the condition that the first version identification and the second version identification 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 identification and a second device model indicated by the second version identification;
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 instructing management of the second equipment function in the first terminal.
Optionally, 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. The client of the target application triggers the function management of the terminal device.
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 versions of the equipment model and the equipment functions, and the target application of the corresponding version is developed based on the equipment model. The correspondence of the device model, the device function, and the application is not limited to that shown in fig. 3. In the iterative process of the equipment model, the standard equipment model 1.0 is sequentially iterated to be the standard equipment model 2.0 and the standard equipment model 3.0. Each standard equipment model has corresponding equipment functions and is marked by the same version identification. And establishing an application of a corresponding version based on the equipment function corresponding to the standard equipment model, wherein the equipment function management of the terminal established based on the equipment model is realized based on an instruction triggered by the application, and the instruction is a function management instruction corresponding to the function. After the device model iteration, 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 relation is a function mapping relation 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, and also. The device model version mapped by the first terminal in the internet of things is the version of the second device model corresponding to the first terminal. The first equipment model and the second equipment model are different versions of equipment models in the model iteration process and correspond to different equipment 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 for the terminal device is realized through the function management instructions. And identifying the function version through the version identification in the mapping relation so as to determine the corresponding function of the function in different versions.
As an optional implementation, 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 function mapping relation and a data conversion relation of at least two version identifications, the function mapping relation is used for indicating the function mapping relation between each of the at least two version identifications, and the conversion relation is used for indicating the data conversion relation of the function data between each of the at least two version identifications.
Optionally, the function mapping relationship is used to map a function corresponding to the function management instruction sent by the application to obtain a mapped instruction, and send the mapped instruction to the terminal to control the terminal to execute. The data mapping relation is used for performing data mapping on the functional data reported by the terminal so as to map the data into the corresponding function, and sending the data to the application for displaying.
As an optional implementation, the functional mapping relationship at least includes one of the following: .
Combining the function of the first equipment with the first class and the second class into a third class;
splitting a first class in which a first equipment function is located into a fourth class and a fifth class;
merging 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;
the first device function is iterated as the target function.
Optionally, in the item combination, the third item may be an item different from the first item and the second item, or may be the first item or the second item. When the third class is the first class, the second class is merged into the first class. The functions contained in the second category are merged synchronously.
Alternatively, the first category is not limited to being split into two or more categories. The classification of the categories is to classify the functions contained in the categories again.
Optionally, in the function combination, the fifth device function may be a function different from the first device function and the fourth device function, and may also 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 splitting of the first device function into two or more functions is not limited.
Alternatively, a function iteration may be, but is not limited to, adding a new function.
The representation of the functional mapping relationship is not limited to that shown in fig. 4. And sequentially iterating the standard equipment model 1.0 to obtain a standard equipment model 2.0 and a standard equipment model 3.0 to explain the functional mapping relation. The combination of categories may be that category 1 and category 2 are combined into category 1, and the corresponding function a in category 1 and function B in category 2 are combined into function a. The function iteration may be to iterate out function B in category 1. The function fusion may be to combine the function D and the function C in item 1 into the function D. The function split may be a split of function C into function C1 and function D1.
In the embodiment of the application, a mode that when a first instruction for managing a first device function of a first terminal is received, and a second version identifier of the first terminal is not matched with a first version identifier of a client of a pasture application which sends the first instruction, a second device function corresponding to the first device function is determined according to a function mapping relation, and the second instruction corresponding to the second device function is sent to the first terminal is adopted, by determining the version identifier of the client of a target application and the version identifier of a device model corresponding to the first terminal, and when the version identifiers are not matched, a second instruction of the second device function which can be executed by the first terminal is sent to the first terminal through the mapping relation between the first device function and the second device function, so that whether the first instruction corresponding to the first device function can be executed is determined through comparison of the version identifiers, under the condition that the version identifications are not matched, the purpose of converting a first instruction of a first device function which cannot be executed by a first terminal into a second instruction of a second device function which can be executed is achieved, so that the technical effects of constructing a function mapping relation between the version identifications, realizing data compatibility of device models of different versions, converting the function instruction into the instruction which can be executed by the terminal are achieved, and the technical problem that the terminal function instruction cannot be executed due to data incompatibility of the device models is solved.
As an optional implementation manner, after obtaining a second version identifier corresponding to a version of a device model mapped by a first terminal in the internet of things, and under the condition that a first version identifier and a second version identifier are not matched, before determining a second device function corresponding to a first device function according to a first target mapping relationship stored in a mapping relationship table, the method further includes:
s1, comparing the first version identification with the second version identification;
s2, determining that the first version identification is matched with the second version identification under the condition that the first version identification is consistent with the second version identification;
and S3, determining that the first version identification is not matched with the second version identification under the condition that the first version identification is not matched with the second version identification.
Optionally, the comparison between the first version identifier and the second version identifier is not limited to whether the comparison version identifiers are completely consistent. And under the condition that the version identifications are completely consistent, determining that the first version identification is matched with the second version identification.
Optionally, in a 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, when the first version identifier is different from the second version identifier, it is determined that the first version identifier is inconsistent with the second version identifier, and the first version identifier is not matched with the second version identifier, performing function mapping 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 under the condition that the first target mapping relation indicates the direct mapping relation between the second version identification and the first version identification, searching a second device function in a second device function set corresponding to the second version identification.
Optionally, a mapping manner of the first version identifier and the second version identifier, which is referred by the first target mapping relationship, 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 the corresponding device model is an adjacent device model in an iterative process. For example, 1.0 and 2.0. The indirect mapping is used for indicating that the first version identification is not adjacent to the second version identification, and the corresponding device model is a device model which is not adjacent in the iteration process. For example, 1.0 and 3.0.
As an alternative implementation, as shown in fig. 3, the determining, according to the first target mapping relationship stored in the mapping relationship table, a second device function corresponding to the first device function includes:
s302, determining a third device function set corresponding to a third version identifier when the first target mapping relationship includes a first mapping relationship and a second mapping relationship, where 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 the second device function of the third device function in the second mapping relation in the second device function set.
Optionally, the mapping relation indicates the indirect mapping condition, and the related direct mapping function is determined in turn.
Optionally, the function splitting example in 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, the third version identifier 2.0 having a direct mapping relationship with the first version identifier 1.0 is determined, the function C of the function a in the version identifier 2.0 is determined, and then the function D2 of the function C in the version identifier 3.0 is determined, so as to realize the function D2 of the function a in the version 3.0.
As an optional implementation manner, as shown in fig. 6, before receiving a first instruction sent by a client of a target application, or after sending a second instruction carrying a function identifier of a second device function to a 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 the function of second equipment, and the target data carries a second version identifier;
s604, under the condition that the first version identification and the second version identification are not matched, determining first data mapped to the first equipment function by the target data 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 identification and the second version identification;
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 as to implement mapping conversion of the data in different device function versions, and implement compatibility between the data reported by the terminal device and the display data in the application.
In the embodiment of the application, the data reported by the terminal device is mapped to the device 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 device function versions is realized, and the data compatibility of different device function versions is realized.
The flow of the data processing method described above is not limited to that shown in fig. 7.
In step S702, a first instruction is received. The first instruction is triggered by the target application and indicates 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 is used for indicating the version of the device model applied by the first terminal.
Step S706, comparing whether the first version identifier is consistent with the second version identifier. If yes, go to step S714; if the determination is no, the process proceeds to S708.
In step S708, a first target mapping relationship is determined. The first target mapping relation is a function mapping relation 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, issue the second command. 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.
Step S714, a first instruction is issued.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments 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 used 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 an equipment model mapped by a first terminal in the internet of things;
a determining unit 806, configured to determine, when the first version identifier and the second version identifier are not matched, a second device function corresponding to the first device function according to a first target mapping relationship stored in the mapping relationship table, 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 808, configured to send a second instruction carrying a function identifier of a 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 with the second version identifier after obtaining the second version identifier corresponding to the version of the device model mapped in the internet of things by the first terminal and under the condition that the first version identifier is not matched with the second version identifier, 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; under the condition that the first version identification is consistent with the second version identification, determining that the first version identification is matched with the second version identification; and under the condition that the first version identification is inconsistent with the second version identification, determining that the first version identification is not matched with the second version identification.
Optionally, the determining unit 806 includes:
and the searching module is used for searching the second equipment function in the second equipment function set corresponding to the second version identification under the condition that the first target mapping relation indicates the direct mapping relation between the second version identification and the first version identification.
Optionally, the determining unit 806 includes:
a determining module, configured to determine a third device function set corresponding to a third version identifier when the first target mapping relationship includes a first mapping relationship and a second mapping relationship, where 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 the 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 target data sent by the first terminal before receiving a first instruction sent by a client of a target application, or after sending a second instruction carrying a function identifier of a second device function to 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 identification and the second version identification are not matched, determining first data mapped to the first equipment function by target data 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 identification and the second version identification; and sending the first data to the target application.
Optionally, the data processing apparatus further includes a constructing unit, configured to construct a mapping relationship table before receiving a target instruction of a target application, where the mapping relationship table includes a function mapping relationship and a data transformation relationship of at least two version identifiers, the function mapping relationship is used to indicate a function mapping relationship between each of the at least two version identifiers, and the transformation relationship is used to indicate a data transformation relationship of function data between each of the at least two version identifiers.
Optionally, the functional mapping relationship at least includes one of the following: . Combining the function of the first equipment with the first class and the second class into a third class; splitting a first class in which a first equipment function is located into a fourth class and a fifth class; merging 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; the first device function is iterated as the target function.
In the embodiment of the application, a mode that when a first instruction for managing a first device function of a first terminal is received, and a second version identifier of the first terminal is not matched with a first version identifier of a client of a pasture application which sends the first instruction, a second device function corresponding to the first device function is determined according to a function mapping relation, and the second instruction corresponding to the second device function is sent to the first terminal is adopted, by determining the version identifier of the client of a target application and the version identifier of a device model corresponding to the first terminal, and when the version identifiers are not matched, a second instruction of the second device function which can be executed by the first terminal is sent to the first terminal through the mapping relation between the first device function and the second device function, so that whether the first instruction corresponding to the first device function can be executed is determined through comparison of the version identifiers, under the condition that the version identifications are not matched, the purpose of converting a first instruction of a first device function which cannot be executed by a first terminal into a second instruction of a second device function which can be executed is achieved, so that the technical effects of constructing a function mapping relation between the version identifications, realizing data compatibility of device models of different versions, converting the function instruction into the instruction which can be executed by the terminal are achieved, and the technical problem that the terminal function instruction cannot be executed due to data incompatibility of the device models is solved.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the data processing method, where the electronic device may be the terminal device or the server shown in fig. 1. The present embodiment takes the electronic device as a server as an example for explanation. 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 above-described method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the 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 instructing management of a first device function of a first terminal in the Internet of things, and the first instruction carries a first version identification corresponding to a current application version of the client of the target application;
s2, acquiring a second version identification corresponding to the version of the equipment model mapped in the Internet of things by the first terminal;
s3, under the condition that the first version identification and the second version identification 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 identification and a second device model indicated by the second version identification;
and S4, sending a second instruction carrying the function identifier of the second device function to the first terminal, wherein the second instruction is used for instructing management of the second device function in the first terminal.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, 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 palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 9 does not limit the structure of the electronic device. 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 method and apparatus in the embodiments of the present invention, and the processor 904 executes the software programs and modules stored in the memory 902 to execute various functional applications and data processing, that is, to implement the data processing method. 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 located remotely from the processor 804, which may be connected to the 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 memory 902 may be specifically, but not limited to, used for storing information such as function mapping relationship, version identification, 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 obtaining unit 804, a determining unit 806, and a sending unit 808 in the data processing apparatus. In addition, the data processing apparatus may further include, but is not limited to, other module units in the data processing apparatus, which are not described in detail in this example.
Optionally, the transmitting device 906 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 806 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 906 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 908 for displaying the function mapping relationship; and a connection bus 910 for connecting the respective module components in the above-described electronic apparatus.
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 a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations of the data processing aspects described above. Wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned 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 instructing management of a first device function of a first terminal in the Internet of things, and the first instruction carries a first version identification corresponding to a current application version of the client of the target application;
s2, acquiring a second version identification corresponding to the version of the equipment model mapped in the Internet of things by the first terminal;
s3, under the condition that the first version identification and the second version identification 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 identification and a second device model indicated by the second version identification;
and S4, sending a second instruction carrying the function identifier of the second device function to the first terminal, wherein the second instruction is used for instructing management of the second device function in the first terminal.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the 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 illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A data processing method, comprising:
receiving a first instruction sent by a client of a target application, wherein the first instruction is used for indicating management of a first device function of a first terminal in the internet of things, and the first instruction carries a first version identification corresponding to a current application version of the client of the target application; acquiring a second version identifier corresponding to the version of the equipment model mapped in the Internet of things by the first terminal;
under the condition that the first version identification and the second version identification 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 identification and a second device model indicated by the second version identification;
and sending a second instruction carrying a function identifier of the second equipment function to the first terminal, wherein the second instruction is used for instructing management of the second equipment function in the first terminal.
2. The method according to 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 when the first version identifier and the second version identifier are not matched, 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, the method further includes:
comparing the first version identification with the second version identification;
under the condition that the first version identification is consistent with the second version identification, determining that the first version identification is matched with the second version identification;
and under the condition that the first version identification is inconsistent with the second version identification, determining that the first version identification is not matched with the second version identification.
3. The method according to claim 1, wherein 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 a second device function set corresponding to the second version identification under the condition that the first target mapping relation indicates the direct mapping relation between the second version identification and the first version identification.
4. The method according to claim 3, wherein 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:
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 for 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, wherein before receiving a first instruction sent by a client of a target application, or after sending a second instruction carrying a function identifier 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 function of the second device, and the target data carries the second version identifier;
under the condition that the first version identification and the second version identification are not matched, determining first data mapped to the first equipment function by the target data 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 identification and the second version identification;
and sending the first data to the target application.
6. The method of claim 1, wherein prior to receiving target instructions for a target application, the method further comprises:
and constructing the mapping relation table, wherein the mapping relation table comprises a function mapping relation and a data conversion relation of at least two version identifications, the function mapping relation is used for indicating the function mapping relation between each of the at least two version identifications, and the conversion relation is used for indicating the data conversion relation of the function data between each of the at least two version identifications.
7. The method according to any one of claims 1 to 6, wherein the functional mapping relationship comprises at least one of:
combining the function of the first equipment with the first category and the second category into a third category;
splitting the first category where the first equipment function is located into a fourth category and a fifth category;
merging 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 into a target function.
8. A data processing apparatus, comprising:
the system comprises a receiving unit, a sending unit and a processing 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 device function of a first terminal in the internet of things, and the first instruction carries a first version identification corresponding to a current application version of the client of the target application;
the obtaining unit is used for obtaining 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, when the first version identifier and the second version identifier are not matched, a second device function corresponding to the first device function according to a first target mapping relationship stored in a mapping relationship table, 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.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program which when executed performs the method of any 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 of any of 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 true CN113434190A (en) 2021-09-24
CN113434190B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116674A (en) * 2021-11-30 2022-03-01 浩云科技股份有限公司 Service modeling method, device, medium and equipment based on integrated 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
李浩等: "基于数字孪生的复杂产品设计制造一体化开发框架与关键技术", 《计算机集成制造系统》 *

Cited By (1)

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

Also Published As

Publication number Publication date
CN113434190B (en) 2023-06-16

Similar Documents

Publication Publication Date Title
CN111683066B (en) Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium
CN101421978A (en) Device management system for remotely accessing terminal equipments
CN104954394A (en) Software differential packet production and update method, server, terminal and update system
CN111435304B (en) Method and device for generating space unit, storage medium and processor
CN112217656A (en) Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system
CN110875850A (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN110245128A (en) Method for building up and device, storage medium, the electronic device of meta-model
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
CN113434844A (en) Intelligent scene building method and device, storage medium and electronic equipment
CN113722345A (en) Method and device for displaying mapping relation, electronic equipment and storage medium
CN116384109A (en) Novel power distribution network-oriented digital twin model automatic reconstruction method and device
CN113434190B (en) Data processing method and device, storage medium and electronic equipment
CN110198533B (en) Method for remotely controlling BLE Bluetooth device and BLE Bluetooth device
CN114116205A (en) Resource management method and device based on kubernets, storage medium and electronic equipment
CN112788576A (en) Equipment offline processing method and system, storage medium and electronic device
CN115934076B (en) Cross-platform client micro-service providing device and method and electronic equipment
CN111586660A (en) Information display method and device, storage medium and electronic equipment
CN103220327B (en) user information storage method and device
CN111045928A (en) Interface data testing method, device, terminal and storage medium
CN116594834A (en) Operation and maintenance data processing method and device for multi-protocol server
CN108400901A (en) Test method, terminal device and the computer readable storage medium of application
CN112163125A (en) Device management method and apparatus, storage medium, and electronic device
CN112162731A (en) Data expansion method, device, storage medium and electronic device
CN113468275A (en) Data importing method and device of graph database, 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