AI independent button multi-platform compatibility and data sharing method and system in all-in-one machine

By analyzing and replacing the code of the all-in-one AI independent keys on the target platform, multi-platform compatibility is achieved, and through user fingerprint sharing scheduling information, the compatibility and data sharing of all-in-one AI independent keys among multiple platforms is solved, and efficient compatibility and data sharing is achieved.

CN119045884BActive Publication Date: 2025-03-11SHENZHEN JOYAR SMART MFG TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411522730.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-03-11
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

The prior art is difficult to achieve efficient compatibility and data sharing of all-in-one AI independent keys among multiple platforms, resulting in compatibility issues and data loss.

Method used

By installing all-in-one products on the target platform and building product testing tools, analyzing the code test results of executable code and AI independent keys, replacing the failed code function, inserting the content to be run into the original code framework, and achieving product compatibility. At the same time, user information is collected to generate user fingerprints and scheduling information is shared to realize data sharing.

Benefits of technology

It realizes efficient compatibility and data sharing of all-in-one AI independent keys among multiple platforms, reducing the inefficiency of product modification, reducing the storage of user call data, and retaining scheduling data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045884B_ABST
    Figure CN119045884B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of data sharing, and discloses a method and system for multi-platform compatibility and data sharing of AI independent buttons in an all-in-one machine, the method comprising: testing the code test results of AI independent buttons on executable codes through a product testing tool; analyzing the original code function of the original code component, and analyzing the failed code function of the failed code component, and judging whether the failed code function can be replaced with the original code function; querying the original code framework corresponding to the original code function and the to-be-run content corresponding to the failed code function, and inserting the to-be-run content into the original code framework; generating a user fingerprint of a target user, and recording the scheduling information of the target user on a shared platform in a historical period; sharing the scheduling information to the target platform according to the user fingerprint, so as to complete the data sharing of the AI ​​independent buttons in the all-in-one product on the target platform, and obtain the data sharing result. The present invention can perform efficient product compatibility and data sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data sharing, and in particular to a method and system for multi-platform compatibility and data sharing of AI independent buttons in an all-in-one machine. Background Art

[0002] All-in-one machine refers to a software product with AI function, AI independent button refers to the button that can schedule the AI ​​function in the all-in-one machine, AI independent button multi-platform compatibility means that the running process of the AI ​​independent button scheduling the AI ​​function in the all-in-one machine can be compatible with multiple platforms, such as software platforms, terminal platforms and servers, and data sharing means that the data required in the current platform when the AI ​​independent button schedules the AI ​​function in the all-in-one machine can be shared from other platforms.

[0003] At present, there are many solutions to the compatibility problem of products on the platform. One is to detect the code components that are not compatible on the platform before designing the all-in-one machine, modify the detected code, and then put the all-in-one machine with modified code into use. This method requires analysis of a large amount of platform code data, and the all-in-one machine must be modified into a product that can be applied to multiple platform codes. The first defect is that the workload is large, and the second defect is that it is impossible to construct a product that can be applied to all platform codes. Secondly, when a user uses the all-in-one machine on platform A and the usage data left by the user on platform B is needed, when the user uses the all-in-one machine on platform B, the usage data left by the user on platform A will be deleted, and when the user needs to use the usage data on platform A when using the all-in-one machine on platform B, it is often impossible to call it. Therefore, a solution is urgently needed for efficient product compatibility and data sharing. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method and system for multi-platform compatibility and data sharing of AI independent buttons in an all-in-one machine, which can perform efficient product compatibility and data sharing.

[0005] In a first aspect, the present invention provides a method for multi-platform compatibility and data sharing of AI independent buttons in an all-in-one machine, comprising:

[0006] The all-in-one product is installed on the target platform, and a product testing tool of the all-in-one product is constructed on the target platform, the executable code in the target platform is queried, and the executable code is called to the AI ​​independent button of the all-in-one product by using the product testing tool, so as to test the code test result of the AI ​​independent button on the executable code by using the product testing tool;

[0007] When the code test result is a code test failure, obtaining the original code component of the AI ​​independent key and the failure code component corresponding to the code test result, analyzing the original code function of the original code component, and analyzing the failure code function of the failure code component, and determining whether the failure code function can be replaced by the original code function;

[0008] When the failure code function can be replaced by the original code function, query the original code frame corresponding to the original code function and the to-be-run content corresponding to the failure code function, insert the to-be-run content into the original code frame, so as to complete the product compatibility of the AI ​​independent button in the all-in-one product on the target platform, and obtain the product compatibility result;

[0009] Collect target information of the target user on the target platform by the AI ​​independent key, generate a user fingerprint of the target user based on the target information, obtain the shared platform of the target platform, and record the scheduling information of the target user on the shared platform in the historical period;

[0010] The user fingerprint is sent from the target platform to the sharing platform. In the sharing platform, the scheduling information is shared to the target platform according to the user fingerprint to complete the data sharing of the AI ​​independent buttons in the all-in-one product on the target platform and obtain the data sharing result.

[0011] In a possible implementation manner of the first aspect, testing the code test result of the AI ​​independent button on the executable code by the product testing tool includes:

[0012] Obtain a first code statement of the AI ​​independent button on the all-in-one product;

[0013] Wherein, the first code statement includes a first assignment statement, a first function call statement, a first return statement and a first control statement;

[0014] The first dependency in the first code statement is analyzed using the following rule:

[0015] ;

[0016] ;

[0017] ;

[0018] ;

[0019] in, Represents the first assignment statement The first dependency is Indicates the first function call statement The first dependency is Indicates the first return statement The first dependency is Indicates the first control statement The first dependency is represents the input parameter of the first code statement, Including Operations and transformations, represents the output parameter of the first code statement, Indicates the name of the function being called. Indicates the calling relationship. Indicates a return operation. Indicates the return to the caller of the operation. represents the control function, Indicates the output result under the constraints of the control function;

[0020] Obtaining a second code statement in the executable code;

[0021] Wherein, the second code statement includes a second assignment statement, a second function call statement, a second return statement and a second control statement;

[0022] Analyzing a second dependency in the second code statement;

[0023] identifying a third dependency relationship between the first dependency relationship and the second dependency relationship;

[0024] generating a test parameter of the third dependency relationship;

[0025] Performing a random inversion operation on the test parameter to obtain an inverted parameter;

[0026] Generate a test case of the AI ​​independent key on the executable code by using the third dependency relationship and the negated parameter;

[0027] According to the test case, the product testing tool is used to test the code test result of the AI ​​independent button on the executable code.

[0028] In a possible implementation manner of the first aspect, analyzing the original code function of the original code component includes:

[0029] Obtaining a first code statement in the original code component;

[0030] Querying a first dependency of the first code statement;

[0031] querying a fourth dependency relationship between a first code statement of the original code component and first code statements of other original code components of the original code component;

[0032] Replacing the input parameter and the output parameter in the fourth dependency relationship with the original code component and the other original code component to obtain a fifth dependency relationship;

[0033] The first dependency and the fifth dependency are regarded as original code functions.

[0034] In a possible implementation manner of the first aspect, the analyzing the failure code function of the failure code component includes:

[0035] Obtaining a third dependency in the failed code component;

[0036] Querying the target dependency in the executable code in the third dependency;

[0037] Functions with said target dependencies as failure codes.

[0038] In a possible implementation manner of the first aspect, determining whether the failure code function can be replaced by the original code function includes:

[0039] Obtaining the first parameter and the first parameter relationship in the original code function;

[0040] Obtaining the second parameter and the second parameter relationship in the failure code function;

[0041] The parameter similarity between the parameter format of the first parameter and the parameter format of the second parameter is calculated using the following formula:

[0042] ;

[0043] in, Indicates parameter similarity, Indicates the first parameter in the parameter format The truth value of a character, Indicates the second parameter in the parameter format The truth value of a character, Represents the sequence number of any character in the parameter format of the first parameter, Indicates the number of characters in the parameter format of the first parameter, Represents the sequence number of any character in the parameter format of the second parameter;

[0044] When the parameter similarity is greater than a preset similarity, obtaining a convertible format of the second parameter;

[0045] Calculating format similarity between a parameter format of the first parameter and the convertible format;

[0046] When the parameter similarity and the format similarity are not greater than the preset similarity, the relationship similarity between the characters in the first parameter relationship and the characters in the second parameter relationship is calculated using the following formula:

[0047] ;

[0048] in, Indicates the relationship similarity, Indicates the first parameter relationship The first parameter relationship functions, Indicates the second parameter relationship The second parameter relationship functions, Indicates the first parameter relationship The number of functions of the first parameter relationship;

[0049] When the character similarity is not greater than a preset similarity, determining whether the execution condition of the original code function meets the execution condition on the target platform;

[0050] When the execution condition of the original code function meets the execution condition on the target platform, determining that the failed code function can be replaced by the original code function;

[0051] When the execution condition of the original code function does not meet the execution condition on the target platform, determining that the failed code function cannot be replaced by the original code function;

[0052] When the character similarity is greater than a preset similarity, it is determined that the failure code function cannot be replaced by the original code function.

[0053] In a possible implementation manner of the first aspect, querying the original code framework corresponding to the original code function and the to-be-run content corresponding to the failed code function includes:

[0054] Obtaining the functional similarity between the original code function and the failure code function;

[0055] Selecting a usable relationship of the failed code function from the original code function using the function similarity;

[0056] Using the usable relationship as an original code framework;

[0057] identifying an unusable relationship from the failure code function using the function similarity;

[0058] extracting remaining parameters except the unusable relation from the failure code function;

[0059] The remaining parameters are used as contents to be executed.

[0060] In a possible implementation manner of the first aspect, inserting the to-be-executed content into the original code framework includes:

[0061] Obtain the unusable relationship corresponding to the failure code function;

[0062] Removing the unusable content corresponding to the unusable relationship from the to-be-run content to obtain usable content;

[0063] Matching the dependency relationship of the usable content in the failed code function with the dependency relationship corresponding to the original code framework to obtain a dependency matching result;

[0064] Based on the dependency matching result, the usable content is inserted into the original code framework.

[0065] In a possible implementation manner of the first aspect, generating a user fingerprint of the target user based on the target information includes:

[0066] Identifying a target address, a target time, and a target account of the target user from the target information;

[0067] According to the target time and the target account, the address frequency of the target address is calculated using the following formula:

[0068] ;

[0069] in, Indicates the address frequency, Indicates the appearance of The target time and The total number of target addresses that appear under the premise of target accounts, Indicates the appearance of The target time and The target account appears under the premise of The total number of target addresses;

[0070] Calculate the time frequency of the target time according to the target address and the target account;

[0071] Calculating the account frequency of the target account according to the target address and the target time;

[0072] The target address, the target time, the target account, the address frequency, the time frequency, and the account frequency are used as the user fingerprint.

[0073] In a possible implementation manner of the first aspect, in the sharing platform, sharing the scheduling information to the target platform according to the user fingerprint includes:

[0074] Acquiring fingerprint information and storage information in the scheduling information in a sharing platform;

[0075] After retaining the new information in the storage information in the sharing platform, calculating the fingerprint similarity between the user fingerprint and the fingerprint information;

[0076] When the fingerprint similarity is greater than a similarity threshold, obtaining shared information belonging to the fingerprint information in the new information;

[0077] The shared information is returned from the sharing platform to the target platform to complete the process of sharing the scheduling information to the target platform.

[0078] In a second aspect, the present invention provides an AI independent button multi-platform compatibility and data sharing system in an all-in-one machine, the system comprising:

[0079] A code testing module is used to install the all-in-one product on a target platform, build a product testing tool for the all-in-one product on the target platform, query the executable code in the target platform, and use the product testing tool to call the executable code to the AI ​​independent button of the all-in-one product, so as to test the code test result of the AI ​​independent button on the executable code through the product testing tool;

[0080] a function replacement module, configured to, when the code test result is a code test failure, obtain an original code component of the AI ​​independent key and a failure code component corresponding to the code test result, analyze an original code function of the original code component, and analyze a failure code function of the failure code component, and determine whether the failure code function can be replaced with the original code function;

[0081] A product compatibility module is used to query the original code frame corresponding to the original code function and the to-be-run content corresponding to the failure code function when the failure code function can be replaced by the original code function, and insert the to-be-run content into the original code frame to complete the product compatibility of the AI ​​independent button in the all-in-one product on the target platform, and obtain a product compatibility result;

[0082] An information recording module is used to collect target information of a target user on the target platform by an AI independent key, generate a user fingerprint of the target user based on the target information, obtain a shared platform of the target platform, and record the scheduling information of the target user on the shared platform in a historical period;

[0083] A data sharing module is used to send the user fingerprint from the target platform to the sharing platform. In the sharing platform, the scheduling information is shared to the target platform according to the user fingerprint to complete the data sharing of the AI ​​independent buttons in the all-in-one product on the target platform and obtain the data sharing result.

[0084] Compared with the prior art, the technical principle and beneficial effects of this solution are:

[0085] The embodiment of the present invention tests the code test result of the AI ​​independent key on the executable code through the product testing tool to perform code testing on the executable code when the AI ​​independent key is scheduled in the integrated machine. It is mainly used to test whether a scheduling error occurs when the AI ​​independent key is scheduled in the integrated machine when the AI ​​function is scheduled on the target platform. Further, the embodiment of the present invention analyzes the original code function of the original code component to analyze the calling relationship in the code statement and the calling relationship between components, thereby increasing the scope of the calling relationship, which is convenient for subsequent search for the calling relationship for replacement. Further, the embodiment of the present invention inserts the content to be run into the original code framework to modify the executable code on the target platform, thereby pre-integrating the compatibility between the integrated product and the platform without modifying the compatibility of the integrated product, reducing the inefficiency of the integrated product constantly modifying its own code in order to continuously be compatible with various platforms. The embodiment of the present invention shares the scheduling information to the target platform according to the user fingerprint in the shared platform, so as to retain only the newly generated data when the user schedules the data in the shared platform, and delete the fixed code data, so as to reduce the storage amount of the user call data and reserve it for the scheduling when the target platform needs these data later. Therefore, the AI ​​independent button multi-platform compatibility and data sharing method and system in an all-in-one machine proposed in an embodiment of the present invention can perform efficient product compatibility and data sharing. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0087] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0088] Figure 1 A flowchart of a method for multi-platform compatibility and data sharing of AI independent buttons in an all-in-one machine provided by an embodiment of the present invention;

[0089] Figure 2 A module diagram of an AI independent button multi-platform compatibility and data sharing system in an all-in-one machine provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0090] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0091] The embodiment of the present invention provides a method for multi-platform compatibility and data sharing of AI independent buttons in an all-in-one machine, and the execution subject of the method for multi-platform compatibility and data sharing of AI independent buttons in the all-in-one machine includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present invention. In other words, the multi-platform compatibility and data sharing method of AI independent buttons in the all-in-one machine can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0092] See also Figure 1 The figure is a flow chart of a method for AI independent key multi-platform compatibility and data sharing in an all-in-one machine provided by an embodiment of the present invention. Figure 1 The AI ​​independent button multi-platform compatibility and data sharing method described in the all-in-one machine includes:

[0093] S1. Install the all-in-one product on the target platform, and build a product testing tool for the all-in-one product on the target platform, query the executable code in the target platform, and use the product testing tool to call the executable code to the AI ​​independent button of the all-in-one product, so as to test the code test result of the AI ​​independent button on the executable code through the product testing tool.

[0094] In an embodiment of the present invention, the target platform is, for example, a software platform, a terminal platform, and a server, and the product testing tool is mainly used to generate test cases and input code data corresponding to running the test cases on the all-in-one product and the target platform, such as a fuzz tester. Furthermore, the executable code refers to the code in the executable file.

[0095] Furthermore, the embodiment of the present invention tests the code test result of the AI ​​independent button on the executable code through the product testing tool for code testing when the AI ​​independent button schedules the AI ​​function in the all-in-one machine on the executable code, which is mainly used to test whether a scheduling error occurs when scheduling the executable code on the target platform when the AI ​​independent button schedules the AI ​​function in the all-in-one machine.

[0096] In one embodiment of the present invention, the code test result of testing the AI ​​independent button on the executable code by the product testing tool includes: obtaining a first code statement of the AI ​​independent button on the all-in-one product; wherein the first code statement includes a first assignment statement, a first function call statement, a first return statement and a first control statement; and analyzing a first dependency relationship in the first code statement using the following rule:

[0097] ;

[0098] ;

[0099] ;

[0100] ;

[0101] in, Represents the first assignment statement The first dependency is Indicates the first function call statement The first dependency is Indicates the first return statement The first dependency is Indicates the first control statement The first dependency is represents the input parameter of the first code statement, Including Operations and transformations, represents the output parameter of the first code statement, Indicates the name of the function being called. Indicates the calling relationship. Indicates a return operation. Indicates the return to the caller of the operation. represents the control function, Indicates the output result under the constraints of the control function;

[0102] Obtain a second code statement in the executable code; wherein the second code statement includes a second assignment statement, a second function call statement, a second return statement and a second control statement; analyze the second dependency in the second code statement; identify a third dependency between the first dependency and the second dependency; generate a test parameter for the third dependency; perform a random inversion operation on the test parameter to obtain an inverted parameter; use the third dependency and the inverted parameter to generate a test case for the AI ​​independent button on the executable code; and use the product testing tool to test the code test result of the AI ​​independent button on the executable code according to the test case.

[0103] in, Including The operation and transformation form of The operations include address fetching operations and function value calculation operations, and the transformation forms include pointer forms and array forms. The third dependency relationship refers to the relationship between the first code statement calling the second code statement. The test parameters, such as the first dependency relationship .

[0104] Optionally, the process of performing a random inversion operation on the test parameter to obtain the inverted parameter refers to obtaining the machine number of the test parameter, that is, in the form of 0 and 1, inverting 0 to obtain 1, and inverting 1 to obtain 0.

[0105] S2. When the code test result is a code test failure, obtain the original code component of the AI ​​independent key and the failure code component corresponding to the code test result, analyze the original code function of the original code component, and analyze the failure code function of the failure code component, and determine whether the failure code function can be replaced by the original code function.

[0106] In an embodiment of the present invention, the original code component refers to all code data when the AI ​​independent key is running, such as a set of multiple statements consisting of the aforementioned first code statement, and the failure code component refers to a code set in which a scheduling error occurs when scheduling the executable code on the target platform when the AI ​​independent key schedules the AI ​​function in the all-in-one machine, including a partial code set of the first code statement and the second code statement.

[0107] Furthermore, the embodiment of the present invention analyzes the original code functions of the original code components to analyze the calling relationships in code statements and the calling relationships between components, thereby increasing the scope of the calling relationships and facilitating subsequent searches for calling relationships for replacement.

[0108] In one embodiment of the present invention, the analysis of the original code function of the original code component includes: obtaining a first code statement in the original code component; querying a first dependency relationship of the first code statement; querying a fourth dependency relationship between the first code statement of the original code component and first code statements of other original code components of the original code component; replacing input parameters and output parameters in the fourth dependency relationship with the original code component and the other original code components to obtain a fifth dependency relationship; and using the first dependency relationship and the fifth dependency relationship as the original code function.

[0109] Among them, the fourth dependency relationship refers to the dependency relationship at the component level. The aforementioned first dependency relationship, for example, is a dependency relationship at the code statement level. The input parameters and output parameters in the fourth dependency relationship are original code components and other original code components.

[0110] In one embodiment of the present invention, the analysis of the failure code function of the failure code component includes: obtaining a third dependency in the failure code component; querying the target dependency in the third dependency that is in the executable code; and using the target dependency as the failure code function.

[0111] In one embodiment of the present invention, the determining whether the failure code function can be replaced by the original code function includes: obtaining a first parameter and a first parameter relationship in the original code function; obtaining a second parameter and a second parameter relationship in the failure code function; and calculating a parameter similarity between a parameter format of the first parameter and a parameter format of the second parameter using the following formula:

[0112] ;

[0113] in, Indicates parameter similarity, Indicates the first parameter in the parameter format The truth value of a character, Indicates the second parameter in the parameter format The truth value of a character, Represents the sequence number of any character in the parameter format of the first parameter, Indicates the number of characters in the parameter format of the first parameter, Represents the sequence number of any character in the parameter format of the second parameter;

[0114] When the parameter similarity is greater than a preset similarity, a convertible format of the second parameter is obtained; and a format similarity between the parameter format of the first parameter and the convertible format is calculated; and when the parameter similarity and the format similarity are not greater than a preset similarity, the relationship similarity between the characters in the first parameter relationship and the characters in the second parameter relationship is calculated using the following formula:

[0115] ;

[0116] in, Indicates the relationship similarity, Indicates the first parameter relationship The first parameter relationship functions, Indicates the second parameter relationship The second parameter relationship functions, Indicates the first parameter relationship The number of functions of the first parameter relationship;

[0117] When the character similarity is not greater than a preset similarity, determine whether the execution condition of the original code function meets the execution condition on the target platform; when the execution condition of the original code function meets the execution condition on the target platform, determine that the failure code function can be replaced by the original code function; when the execution condition of the original code function does not meet the execution condition on the target platform, determine that the failure code function cannot be replaced by the original code function; when the character similarity is greater than a preset similarity, determine that the failure code function cannot be replaced by the original code function.

[0118] Among them, the first parameter relationship is, for example, , , , , the true value refers to the representation of the code in the machine, which can only be 0 and 1, the convertible format refers to other formats that the second parameter can be converted to, such as word, xml and other formats at the file level, different forms of representation formats at the code level, etc., the first parameter relationship A function is a function of multiple functions, such as the same function operates a mutually exclusive resource, obtains a return value, releases resources, etc. The preset similarity is set according to the actual scenario, and the execution condition refers to the environmental restrictions that need to be met when executing the original code function.

[0119] S3. When the failure code function can be replaced by the original code function, query the original code framework corresponding to the original code function and the to-be-run content corresponding to the failure code function, and insert the to-be-run content into the original code framework to complete the product compatibility of the AI ​​independent button in the all-in-one product on the target platform and obtain a product compatibility result.

[0120] In one embodiment of the present invention, the querying of the original code framework corresponding to the original code function and the to-be-run content corresponding to the failure code function includes: obtaining the functional similarity between the original code function and the failure code function; selecting the usable relationship of the failure code function from the original code function using the functional similarity; using the usable relationship as the original code framework; identifying the unusable relationship from the failure code function using the functional similarity; extracting the remaining parameters except the unusable relationship from the failure code function; and using the remaining parameters as the to-be-run content.

[0121] Among them, the functional similarity includes the aforementioned parameter similarity, format similarity and character similarity. The usable relationship refers to the parameter relationship that can replace the failure code function when it is not greater than the preset similarity, and the unusable relationship refers to the parameter relationship in the failure code function when it is greater than the preset similarity.

[0122] Furthermore, the embodiment of the present invention inserts the content to be run into the original code framework for modifying the executable code on the target platform, thereby integrating the compatibility between the integrated product and the platform in advance without modifying the compatibility of the integrated product, thereby reducing the inefficiency of the integrated product constantly modifying its own code in order to continuously be compatible with various platforms.

[0123] In one embodiment of the present invention, inserting the content to be run into the original code framework includes: obtaining the unusable relationship corresponding to the failure code function; removing the unusable content corresponding to the unusable relationship from the content to be run to obtain usable content; matching the dependency relationship of the usable content in the failure code function with the dependency relationship corresponding to the original code framework to obtain a dependency matching result; and inserting the usable content into the original code framework based on the dependency matching result.

[0124] Among them, the dependency matching result is, for example, the matching result between the relationship of A calling B in the function call relationship in the failed code function and the relationship of the first parameter calling the second parameter corresponding to the original code framework, then A is inserted into the position of the first parameter and B is inserted into the position of the second parameter.

[0125] S4. Collect the target information of the target user on the target platform by the AI ​​independent key, generate the user fingerprint of the target user based on the target information, obtain the shared platform of the target platform, and record the scheduling information of the target user on the shared platform in the historical period.

[0126] In the embodiment of the present invention, the target information refers to all code scheduling information when the target user runs on the target platform through the AI ​​independent button.

[0127] In one embodiment of the present invention, generating the user fingerprint of the target user based on the target information includes: identifying the target address, target time and target account of the target user from the target information; and calculating the address frequency of the target address according to the target time and the target account using the following formula:

[0128] ;

[0129] in, Indicates the address frequency, Indicates the appearance of The target time and The total number of target addresses that appear under the premise of target accounts, Indicates the appearance of The target time and The target account appears under the premise of The total number of target addresses;

[0130] According to the target address and the target account, the time frequency of the target time is calculated; according to the target address and the target time, the account frequency of the target account is calculated; the target address, the target time and the target account, the address frequency, the time frequency and the account frequency are used as the user fingerprint.

[0131] It should be noted that the process of calculating the time frequency of the target time and the process of calculating the account frequency of the target account are similar to the principle of calculating the address frequency of the target address mentioned above, and will not be further elaborated here.

[0132] Furthermore, the shared platform refers to other target platforms when the target user runs the AI ​​independently by pressing buttons.

[0133] S5. Send the user fingerprint from the target platform to the sharing platform. In the sharing platform, share the scheduling information to the target platform according to the user fingerprint to complete the data sharing of the AI ​​independent buttons in the all-in-one product on the target platform and obtain the data sharing result.

[0134] The embodiment of the present invention shares the scheduling information to the target platform according to the user fingerprint in the sharing platform, so that only the newly generated data when the user schedules the data is retained in the sharing platform, and the fixed code data is deleted. This can reduce the storage amount of the user call data and also reserve it for the scheduling when the subsequent target platform needs this data.

[0135] In one embodiment of the present invention, in the sharing platform, the scheduling information is shared to the target platform according to the user fingerprint, including: obtaining fingerprint information and storage information in the scheduling information in the sharing platform; after retaining the new information in the storage information in the sharing platform, calculating the fingerprint similarity between the user fingerprint and the fingerprint information; when the fingerprint similarity is greater than a similarity threshold, obtaining the shared information belonging to the fingerprint information in the new information; and returning the shared information from the sharing platform to the target platform to complete the process of sharing the scheduling information to the target platform.

[0136] Among them, the stored information refers to all operating data when the user runs the all-in-one product in the shared platform, and the new information refers to all newly generated data except the fixed code data of the all-in-one product, such as the newly added chat record data in the WeChat product. The fingerprint similarity can be calculated by the Pearson correlation coefficient, and the similarity threshold is set according to the actual scenario.

[0137] It can be seen that the embodiment of the present invention tests the code test result of the AI ​​independent button on the executable code through the product testing tool for code testing when the AI ​​independent button schedules the AI ​​function in the integrated machine on the executable code, which is mainly used to test whether a scheduling error occurs when the AI ​​independent button schedules the AI ​​function in the integrated machine when scheduling the executable code on the target platform. Further, the embodiment of the present invention analyzes the original code function of the original code component to analyze the call relationship in the code statement and the call relationship between components, thereby increasing the scope of the call relationship, which is convenient for subsequent search for the call relationship for replacement. Further, the embodiment of the present invention inserts the to-be-run content into the original code framework to modify the executable code on the target platform, thereby pre-integrating the compatibility between the integrated product and the platform without modifying the compatibility of the integrated product, reducing the inefficiency of the integrated product constantly modifying its own code in order to continuously be compatible with various platforms. The embodiment of the present invention shares the scheduling information to the target platform according to the user fingerprint in the shared platform, so as to retain only the newly generated data when the user schedules the data in the shared platform, and delete the fixed code data, so as to reduce the storage amount of the user call data and also reserve it for the scheduling when the target platform needs these data in the subsequent target platform. Therefore, the AI ​​independent button multi-platform compatibility and data sharing method and system in an all-in-one machine proposed in an embodiment of the present invention can perform efficient product compatibility and data sharing.

[0138] like Figure 2 The figure shows a functional module diagram of the AI ​​independent key multi-platform compatibility and data sharing system in the all-in-one machine of the present invention.

[0139] The AI ​​independent key multi-platform compatibility and data sharing system 200 in the integrated machine of the present invention can be installed in an electronic device. According to the functions implemented, the AI ​​independent key multi-platform compatibility and data sharing system in the integrated machine may include a code testing module 201, a function replacement module 202, a product compatibility module 203, an information recording module 204 and a data sharing module 205. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, which are stored in the memory of the electronic device.

[0140] In the embodiment of the present invention, the functions of each module / unit are as follows:

[0141] The code testing module 201 is used to install the all-in-one product on the target platform, build a product testing tool for the all-in-one product on the target platform, query the executable code in the target platform, and use the product testing tool to call the executable code to the AI ​​independent button of the all-in-one product, so as to test the code test result of the AI ​​independent button on the executable code through the product testing tool;

[0142] The function replacement module 202 is used to obtain the original code component of the AI ​​independent key and the failure code component corresponding to the code test result when the code test result is a code test failure, analyze the original code function of the original code component, and analyze the failure code function of the failure code component, and determine whether the failure code function can be replaced with the original code function;

[0143] The product compatibility module 203 is used to query the original code frame corresponding to the original code function and the to-be-run content corresponding to the failure code function when the failure code function can be replaced by the original code function, and insert the to-be-run content into the original code frame to complete the product compatibility of the AI ​​independent button in the all-in-one product on the target platform, and obtain a product compatibility result;

[0144] The information recording module 204 is used to collect the target information of the target user on the target platform by the AI ​​independent key, generate the user fingerprint of the target user based on the target information, obtain the shared platform of the target platform, and record the scheduling information of the target user on the shared platform in the historical period;

[0145] The data sharing module 205 is used to send the user fingerprint from the target platform to the sharing platform. In the sharing platform, the scheduling information is shared to the target platform according to the user fingerprint to complete the data sharing of the AI ​​independent buttons in the all-in-one product on the target platform and obtain the data sharing result.

[0146] In detail, the modules in the AI ​​independent key multi-platform compatibility and data sharing system 200 in the all-in-one machine in the embodiment of the present invention are used in the same manner as above. Figure 1 The AI ​​independent button multi-platform compatibility and data sharing method in the all-in-one machine described in the specification have the same technical means and can produce the same technical effects, so they will not be repeated here.

[0147] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0148] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0149] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0150] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0151] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A method for multi-platform compatibility and data sharing of AI independent buttons in an all-in-one machine, characterized in that: The method comprises: An all-in-one product is installed on a target platform, and a product testing tool for the all-in-one product is constructed on the target platform, the executable code in the target platform is queried, and the executable code is called to the AI ​​independent key of the all-in-one product by using the product testing tool, so as to test the code test result of the AI ​​independent key on the executable code by using the product testing tool, wherein the code test result of the AI ​​independent key on the executable code by using the product testing tool includes: Obtain a first code statement of the AI ​​independent button on the all-in-one product; Wherein, the first code statement includes a first assignment statement, a first function call statement, a first return statement and a first control statement; The first dependency in the first code statement is analyzed using the following rule: ; ; ; ; in, Represents the first assignment statement The first dependency is Indicates the first function call statement The first dependency is Indicates the first return statement The first dependency is Indicates the first control statement The first dependency is represents the input parameter of the first code statement, Including Operations and transformations, represents the output parameter of the first code statement, Indicates the name of the function being called. Indicates the calling relationship. Indicates a return operation. Indicates the return to the caller of the operation. represents the control function, Indicates the output result under the constraints of the control function; Obtaining a second code statement in the executable code; Wherein, the second code statement includes a second assignment statement, a second function call statement, a second return statement and a second control statement; Analyzing a second dependency in the second code statement; identifying a third dependency relationship between the first dependency relationship and the second dependency relationship; generating a test parameter of the third dependency relationship; Performing a random inversion operation on the test parameter to obtain an inverted parameter; Generate a test case of the AI ​​independent key on the executable code by using the third dependency relationship and the negated parameter; According to the test case, using the product testing tool to test the code test result of the AI ​​independent button on the executable code; When the code test result is a code test failure, obtaining the original code component of the AI ​​independent key and the failure code component corresponding to the code test result, analyzing the original code function of the original code component, and analyzing the failure code function of the failure code component, and determining whether the failure code function can be replaced by the original code function; When the failure code function can be replaced by the original code function, query the original code frame corresponding to the original code function and the to-be-run content corresponding to the failure code function, insert the to-be-run content into the original code frame, so as to complete the product compatibility of the AI ​​independent button in the all-in-one product on the target platform, and obtain the product compatibility result; Collect target information of the target user on the target platform by the AI ​​independent key, generate a user fingerprint of the target user based on the target information, obtain the shared platform of the target platform, and record the scheduling information of the target user on the shared platform in the historical period; The user fingerprint is sent from the target platform to the sharing platform. In the sharing platform, the scheduling information is shared to the target platform according to the user fingerprint to complete the data sharing of the AI ​​independent buttons in the all-in-one product on the target platform and obtain the data sharing result.

2. The method according to claim 1, characterized in that The analyzing the original code function of the original code component includes: Obtaining a first code statement in the original code component; Querying a first dependency of the first code statement; querying a fourth dependency relationship between a first code statement of the original code component and first code statements of other original code components of the original code component; Replacing the input parameter and the output parameter in the fourth dependency relationship with the original code component and the other original code component to obtain a fifth dependency relationship; The first dependency and the fifth dependency are regarded as original code functions.

3. The method according to claim 1, characterized in that The analyzing the failure code function of the failure code component includes: Obtaining a third dependency in the failed code component; Querying the target dependency in the executable code in the third dependency; Functions with said target dependencies as failure codes.

4. The method according to claim 1, characterized in that: The determining whether the failure code function can be replaced by the original code function comprises: Obtaining the first parameter and the first parameter relationship in the original code function; Obtaining the second parameter and the second parameter relationship in the failure code function; The parameter similarity between the parameter format of the first parameter and the parameter format of the second parameter is calculated using the following formula: ; in, Indicates parameter similarity, Indicates the first parameter in the parameter format The truth value of a character, Indicates the second parameter in the parameter format The truth value of a character, Represents the sequence number of any character in the parameter format of the first parameter, Indicates the number of characters in the parameter format of the first parameter, Represents the sequence number of any character in the parameter format of the second parameter; When the parameter similarity is greater than a preset similarity, obtaining a convertible format of the second parameter; Calculating format similarity between a parameter format of the first parameter and the convertible format; When the parameter similarity and the format similarity are not greater than the preset similarity, the relationship similarity between the characters in the first parameter relationship and the characters in the second parameter relationship is calculated using the following formula: ; in, Indicates the relationship similarity, Indicates the first parameter relationship The first parameter relationship functions, Indicates the second parameter relationship The second parameter relationship functions, Indicates the first parameter relationship The number of functions of the first parameter relationship; When the character similarity is not greater than a preset similarity, determining whether the execution condition of the original code function meets the execution condition on the target platform; When the execution condition of the original code function meets the execution condition on the target platform, determining that the failed code function can be replaced by the original code function; When the execution condition of the original code function does not meet the execution condition on the target platform, determining that the failed code function cannot be replaced by the original code function; When the character similarity is greater than a preset similarity, it is determined that the failure code function cannot be replaced by the original code function.

5. The method according to claim 1, characterized in that The querying of the original code framework corresponding to the original code function and the to-be-run content corresponding to the failed code function includes: Obtaining the functional similarity between the original code function and the failure code function; Selecting a usable relationship of the failed code function from the original code function using the function similarity; Using the usable relationship as an original code framework; identifying an unusable relationship from the failure code function using the function similarity; extracting remaining parameters except the unusable relation from the failure code function; The remaining parameters are used as contents to be executed.

6. The method according to claim 1, characterized in that The inserting the to-be-executed content into the original code framework comprises: Obtain the unusable relationship corresponding to the failure code function; Removing the unusable content corresponding to the unusable relationship from the to-be-run content to obtain usable content; Matching the dependency relationship of the usable content in the failed code function with the dependency relationship corresponding to the original code framework to obtain a dependency matching result; Based on the dependency matching result, the usable content is inserted into the original code framework.

7. The method according to claim 1, characterized in that The generating a user fingerprint of the target user based on the target information includes: Identifying a target address, a target time, and a target account of the target user from the target information; According to the target time and the target account, the address frequency of the target address is calculated using the following formula: ; in, Indicates the address frequency, Indicates the appearance of The target time and The total number of target addresses that appear under the premise of target accounts, Indicates the appearance of The target time and The target account appears The total number of target addresses; Calculate the time frequency of the target time according to the target address and the target account; Calculating the account frequency of the target account according to the target address and the target time; The target address, the target time, the target account, the address frequency, the time frequency, and the account frequency are used as the user fingerprint.

8. The method according to claim 1, characterized in that The step of sharing the scheduling information to the target platform according to the user fingerprint in the sharing platform includes: Acquiring fingerprint information and storage information in the scheduling information in a sharing platform; After retaining the new information in the storage information in the sharing platform, calculating the fingerprint similarity between the user fingerprint and the fingerprint information; When the fingerprint similarity is greater than a similarity threshold, obtaining shared information belonging to the fingerprint information in the new information; The shared information is returned from the sharing platform to the target platform to complete the process of sharing the scheduling information to the target platform.

9. An AI independent key multi-platform compatibility and data sharing system in an all-in-one machine, characterized in that: The system comprises: A code testing module is used to install an all-in-one product on a target platform, build a product testing tool for the all-in-one product on the target platform, query the executable code in the target platform, and use the product testing tool to call the executable code to the AI ​​independent key of the all-in-one product, so as to test the code test result of the AI ​​independent key on the executable code through the product testing tool, wherein the code test result of testing the AI ​​independent key on the executable code through the product testing tool includes: Obtain a first code statement of the AI ​​independent button on the all-in-one product; Wherein, the first code statement includes a first assignment statement, a first function call statement, a first return statement and a first control statement; The first dependency in the first code statement is analyzed using the following rule: ; ; ; ; in, Represents the first assignment statement The first dependency is Indicates the first function call statement The first dependency is Indicates the first return statement The first dependency is Indicates the first control statement The first dependency is represents the input parameter of the first code statement, Including Operations and transformations, represents the output parameter of the first code statement, Indicates the name of the function being called. Indicates the calling relationship. Indicates a return operation. Indicates the return to the caller of the operation. represents the control function, Indicates the output result under the constraints of the control function; Obtaining a second code statement in the executable code; Wherein, the second code statement includes a second assignment statement, a second function call statement, a second return statement and a second control statement; Analyzing a second dependency in the second code statement; identifying a third dependency relationship between the first dependency relationship and the second dependency relationship; generating a test parameter of the third dependency relationship; Performing a random inversion operation on the test parameter to obtain an inverted parameter; Generate a test case of the AI ​​independent key on the executable code by using the third dependency relationship and the negated parameter; According to the test case, using the product testing tool to test the code test result of the AI ​​independent button on the executable code; a function replacement module, configured to, when the code test result is a code test failure, obtain an original code component of the AI ​​independent key and a failure code component corresponding to the code test result, analyze an original code function of the original code component, and analyze a failure code function of the failure code component, and determine whether the failure code function can be replaced with the original code function; A product compatibility module is used to query the original code frame corresponding to the original code function and the to-be-run content corresponding to the failure code function when the failure code function can be replaced by the original code function, and insert the to-be-run content into the original code frame to complete the product compatibility of the AI ​​independent button in the all-in-one product on the target platform, and obtain a product compatibility result; An information recording module is used to collect target information of a target user on the target platform by an AI independent key, generate a user fingerprint of the target user based on the target information, obtain a shared platform of the target platform, and record the scheduling information of the target user on the shared platform in a historical period; A data sharing module is used to send the user fingerprint from the target platform to the sharing platform. In the sharing platform, the scheduling information is shared to the target platform according to the user fingerprint to complete the data sharing of the AI ​​independent buttons in the all-in-one product on the target platform and obtain the data sharing result.

Citation Information

Patent Citations

  • System and method for maintaining sharing groups in a service delivery system

    CA2949403A1

  • Application migration

    CA2997302A1