Cross-operating system service migration method, device and electronic device

By obtaining and comparing operating system information, compatibility issues during the migration process are solved, and modifications can be made directly in the target operating system to achieve cross-operating system business migration, improve migration efficiency and success rate, and reduce the involvement of responsible parties.

CN118170431BActive Publication Date: 2024-09-13CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410587373.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-09-13
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

There are too many responsible parties in the existing cross-operating system migration technology, which makes the migration process complicated and affects efficiency and success rate.

Method used

By obtaining information about the operating system to be migrated and the target operating system, comparing the compatibility issues between the two, and making system modifications to the target operating system based on the compatibility issues to adapt it to the operating system to be migrated, business migration is achieved.

Benefits of technology

It reduces the involvement of responsible parties in the migration process, improves migration efficiency and success rate, and avoids the need for manual intervention and multi-party collaboration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118170431B
    Figure CN118170431B
Patent Text Reader

Abstract

The present disclosure relates to a cross-operating system business migration method, device and electronic device, and to the field of data migration technology, wherein the method comprises: obtaining information of an operating system to be migrated and information of a target operating system; comparing the information of the operating system to be migrated with the information of the target operating system to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system; if there is a compatibility problem, then modifying the target operating system according to the compatibility problem so that the target operating system and the operating system to be migrated are adapted to each other, so as to migrate the existing business from the operating system to be migrated to the target operating system. By applying the scheme of the present disclosure, if there is a compatibility problem, then modifying the target operating system according to the compatibility problem so that the target operating system and the operating system to be migrated are adapted to each other, thereby eliminating the need to involve other responsible parties and improving the efficiency and success rate of migration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data migration, and in particular to a cross-operating system service migration method, device and electronic device. Background Art

[0002] With the rapid development of information technology, the operating system, as one of the core software of the computer system, is constantly updated and iterated to adapt to new technical requirements and solve known problems. However, when the existing operating system stops maintenance, users and enterprises will face the problem of insufficient technical support. This situation means that the software package of the existing operating system will not be updated, and it will not be able to obtain official system upgrade patch support. Once the operating system in this state has a security vulnerability, it may bring serious security risks due to the inability to update patches.

[0003] To solve this problem, existing migration technology solutions mainly use the in-place migration strategy.

[0004] The operating system to be migrated is directly migrated to the target operating system on the original machine without replacing the machine. During the migration process, if incompatibility is encountered, hardware adaptation, software adaptation and business adaptation are required, and different responsible parties are responsible for adaptation. For example, the hardware party develops a hardware driver that is compatible with the target operating system and patches it into the operating system image to ensure that the existing hardware resources are compatible with the target operating system; the software party refactors the software package code to create a software package that is compatible with the target operating system and puts it in the software warehouse of the target operating system to ensure that the existing software resources are compatible with the target operating system; the business system party refactors the business system code to create a business system that is compatible with the software package under the target operating system to ensure that the existing business resources are compatible with the target operating system.

[0005] However, this migration method involves many responsible parties during the migration process, which makes the migration process complicated and affects the efficiency and success rate of the migration. Summary of the invention

[0006] In view of this, the present application provides a cross-operating system business migration method, device and electronic device, the main purpose of which is to solve the technical problem that there are many responsible parties involved in the current migration process, which makes the migration process complicated and further affects the efficiency and success rate of the migration.

[0007] According to a first aspect of the present disclosure, a cross-operating system service migration method is provided, the method comprising:

[0008] Obtain information about the operating system to be migrated and the target operating system;

[0009] Comparing the information of the operating system to be migrated with the information of the target operating system to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system;

[0010] If there is a compatibility problem, the target operating system is modified according to the compatibility problem so that the target operating system and the operating system to be migrated are compatible, so as to migrate the existing business from the operating system to be migrated to the target operating system.

[0011] According to a second aspect of the present disclosure, a cross-operating system service migration device is provided, the device comprising:

[0012] An acquisition module is used to acquire information of the operating system to be migrated and information of the target operating system;

[0013] A comparison module, used to compare the information of the operating system to be migrated with the information of the target operating system, and determine whether there is a compatibility problem between the operating system to be migrated and the target operating system;

[0014] The modification module is used to modify the target operating system according to the compatibility problem if there is a compatibility problem, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system.

[0015] According to the third aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method of the aforementioned first aspect.

[0016] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method of the aforementioned first aspect.

[0017] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the method of the aforementioned first aspect when executed by a processor.

[0018] The cross-operating system business migration method, device and electronic device provided by the present disclosure, compared with the prior art, the present disclosure obtains the operating system information to be migrated and the target operating system information; compares the operating system information to be migrated with the target operating system information to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system; if there is a compatibility problem, the target operating system is systematically modified according to the compatibility problem, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system. In the scheme of the present disclosure, if there is a compatibility problem, the target operating system is systematically modified according to the compatibility problem, so that the target operating system and the operating system to be migrated are adapted, so that there is no need to involve other responsible parties, thereby improving the efficiency and success rate of migration.

[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] In order to more clearly illustrate the embodiments of the present application 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.

[0022] Figure 1 A schematic diagram of a process flow of a cross-operating system service migration method provided by an embodiment of the present disclosure;

[0023] Figure 2 A schematic diagram of a process of migrating an operating system provided by an embodiment of the present disclosure;

[0024] Figure 3 A flowchart of another cross-operating system service migration method provided by an embodiment of the present disclosure;

[0025] Figure 4 A flowchart of a hardware compatibility problem provided by an embodiment of the present disclosure;

[0026] Figure 5 A flowchart of a hardware compatibility problem provided by an embodiment of the present disclosure;

[0027] Figure 6A flowchart of a software compatibility problem provided by an embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram of a process flow of a cross-operating system service migration method provided by an embodiment of the present disclosure;

[0029] Figure 8 A schematic diagram of the structure of a cross-operating system service migration device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that, in the absence of conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.

[0031] The following describes the cross-operating system service migration method, device and electronic device of the embodiments of the present disclosure with reference to the accompanying drawings.

[0032] In order to solve the technical problem that the current migration process involves many responsible parties, which makes the migration process complicated and further affects the efficiency and success rate of the migration, the embodiments of the present disclosure provide a cross-operating system service migration method, device and electronic device.

[0033] like Figure 1 As shown, an embodiment of the present disclosure provides a cross-operating system service migration method, which may include:

[0034] Step 101: Obtain information about the operating system to be migrated and information about the target operating system.

[0035] Among them, the operating system to be migrated may be a system that is currently in use or needs to be migrated to a new operating system; the operating system information to be migrated may include hardware information to be migrated and software information to be migrated. The hardware information to be migrated may be the hardware configuration of the current running environment of the operating system to be migrated, and may include CPU, memory, hard disk, network equipment, etc.; the software information to be migrated may be all software installed in the existing environment on the operating system to be migrated and its version information.

[0036] The target operating system may be the final destination of the migration process, that is, the new operating system to which the operating system to be migrated needs to be migrated; the target operating system information may be the detailed configuration and characteristics of the target operating system, which may include target hardware information and target software information, etc.; the target hardware information may be a hardware compatibility list, that is, detailed information on various hardware devices supported by the target operating system, etc.; the target software information may be a software compatibility list, that is, the software packages supported by the target operating system and their version information, etc.

[0037] For the embodiments of the present disclosure, the execution subject may be a migration tool, and the migration tool may access a migration repository to obtain a hardware compatibility list and a software compatibility list of the target operating system.

[0038] The migration warehouse can be a centralized location for storing and distributing resources and information required during the migration process. It can be remote or remote, or it can be newly created by the target operating system in the local operating system to be migrated. The following description is based on the situation where the migration warehouse is remote. Figure 2 As shown, the migration warehouse may contain the hardware compatibility list, software compatibility list, hardware patches, software patches, software sources, etc. of the target operating system. During the migration process, the operating system to be migrated needs to communicate with the migration warehouse to obtain information such as the hardware compatibility list, software compatibility list, hardware patches, software patches, and software sources.

[0039] The migration tool is used for user input information (such as the target operating system and version), displaying migration assessment reports, displaying migration adaptation progress and results, displaying migration implementation progress and results, etc. The migration tool completes the migration assessment, migration adaptation, and migration implementation functions, and completes the migration of the operating system to be migrated to the target operating system.

[0040] Step 102: Compare the information of the operating system to be migrated with the information of the target operating system to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system.

[0041] For the embodiments of the present disclosure, when comparing the operating system information to be migrated with the target operating system information to determine whether there is a compatibility issue between the operating system to be migrated and the target operating system, the hardware information to be migrated of the operating system information to be migrated can be first compared with the hardware compatibility list of the target operating system information, and the software information to be migrated of the operating system information to be migrated can be compared with the software compatibility list of the target operating system information. Through the comparison, the incompatibilities between the operating system to be migrated and the target operating system can be determined, such as hardware support, incompatible software versions, etc. Once it is determined that there is a compatibility issue, it is necessary to provide a solution, such as suggesting hardware upgrades, software upgrades, or patch installation, etc., to ensure the success of the migration process.

[0042] Step 103: If there is a compatibility problem, the target operating system is modified according to the compatibility problem so that the target operating system and the operating system to be migrated are compatible, so as to migrate the existing business from the operating system to be migrated to the target operating system.

[0043] For the embodiments of the present disclosure, in the event that there is a compatibility issue between the operating system to be migrated and the target operating system, if the compatibility issue is a hardware compatibility issue, such as hardware not being supported, a target hardware patch can be used to modify the hardware compatibility of the target operating system so that the target operating system and the operating system to be migrated are adapted to migrate existing services from the operating system to be migrated to the target operating system; if the compatibility issue is a software compatibility issue, such as software version incompatibility, a target software patch can be used to modify the software compatibility of the target operating system so that existing services can be migrated from the operating system to be migrated to the target operating system.

[0044] The target hardware patch may be a patch for resolving compatibility issues between the target operating system and specific hardware; the target software patch may be a patch for resolving compatibility issues between the target operating system and specific software.

[0045] In summary, the cross-operating system business migration method, device and electronic device provided by the present disclosure, compared with the prior art, the present disclosure obtains the operating system information to be migrated and the target operating system information; compares the operating system information to be migrated with the target operating system information to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system; if there is a compatibility problem, the target operating system is systematically modified according to the compatibility problem, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system. In the scheme of the present disclosure, if there is a compatibility problem, the target operating system is systematically modified according to the compatibility problem, so that the target operating system and the operating system to be migrated are adapted, so that there is no need to involve other responsible parties, thereby improving the efficiency and success rate of migration.

[0046] Further, as a refinement and expansion of the above embodiment, in order to fully illustrate the specific implementation process of the disclosed method, the present disclosure provides the following Figure 3 The specific method shown includes:

[0047] Step 201: Compare the information of the operating system to be migrated with the information of the target operating system to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system.

[0048] The operating system information to be migrated may include hardware information to be migrated; the target operating system information may include target hardware information; and the compatibility issue may include hardware compatibility issue.

[0049] As a possible implementation method, the operating system information to be migrated is compared with the target operating system information to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system. Specifically, the following method may be used:

[0050] Comparing the hardware information to be migrated with the target hardware information, if the hardware information to be migrated is consistent with the target hardware information, it is determined that there is no hardware compatibility problem between the operating system to be migrated and the target operating system; or,

[0051] The hardware information to be migrated is compared with the target hardware information. If the hardware information to be migrated is inconsistent with the target hardware information, it is determined that there is a hardware compatibility problem between the operating system to be migrated and the target operating system.

[0052] For the disclosed embodiment, the migration tool may compare the hardware information of the operating system to be migrated with the hardware compatibility list in the target hardware information of the target operating system. If the hardware devices in the operating system to be migrated are all in the hardware compatibility list of the target operating system, it is generally considered that there is no hardware compatibility problem. If there are hardware devices that are not in the list, there may be a compatibility problem.

[0053] The operating system information to be migrated also includes software information to be migrated, which may include a version software package to be migrated. The target operating system information also includes target software information, which may include a target version software package. The compatibility issues also include software compatibility issues.

[0054] As a possible implementation method, the operating system information to be migrated is compared with the target operating system information to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system. Specifically, the following method may be used:

[0055] Comparing the version software package to be migrated with the target version software package, if the version software package to be migrated is the same as the target version software package, it is determined that there is no software compatibility problem between the operating system to be migrated and the target operating system; or,

[0056] Comparing the version software package to be migrated with the target version software package, if the version software package to be migrated is lower than the target version software package, it is determined that there is a solvable software compatibility problem between the operating system to be migrated and the target operating system; or,

[0057] The software package to be migrated is compared with the target software package. If the software package to be migrated is higher than the target software package, it is determined that an unsolvable software compatibility problem exists between the operating system to be migrated and the target operating system.

[0058] For example, if the version of the software package (such as NetWorkManager) on the operating system to be migrated is the same as the version on the target operating system, it is considered that there is no compatibility issue. If the version on the target operating system is lower than the version on the operating system to be migrated, the user needs to select a higher version of the target operating system for migration. If the version on the operating system to be migrated is lower than the target operating system, there is a solvable software compatibility issue.

[0059] Step 202: If there is a compatibility problem, the target operating system is modified according to the compatibility problem so that the target operating system and the operating system to be migrated are compatible, so as to migrate the existing business from the operating system to be migrated to the target operating system.

[0060] For the disclosed embodiment, if there is a hardware compatibility problem, check whether there is an existing hardware patch corresponding to solving the hardware compatibility problem in the migration warehouse; if there is an existing hardware patch corresponding to solving the hardware compatibility problem in the migration warehouse, download the existing hardware patch to the local system;

[0061] If there is no existing hardware patch corresponding to solving the hardware compatibility problem in the migration warehouse, a new hardware patch is generated and synchronized to the migration warehouse, wherein the new hardware patch is used to solve the hardware compatibility problem.

[0062] In specific application scenarios, such as Figure 4 As shown, if there is a hardware compatibility issue, continue to access the migration warehouse to check whether there is a corresponding existing hardware patch based on the hardware compatibility issue point. If so, download it to the local system. If not, return an empty result and output a compatibility report. The report lists the current hardware list, the target operating system hardware list, whether the existing hardware resources need to be adapted, and if so, whether there is a corresponding hardware patch.

[0063] After the migration assessment, the migration adaptation phase begins.

[0064] During the migration and adaptation process, the migration tool can install the existing hardware patches that have been downloaded to the local computer according to the compatibility report. The migration tool generates new hardware patches for the remaining compatibility issues that do not have corresponding existing hardware patches. The new hardware patches can be the addition, deletion, or modification of existing hardware functions so that the target operating system can complete the adaptation of existing hardware resources. Install these newly generated hardware patches and synchronize them to the migration warehouse.

[0065] As a possible implementation method, if there is a compatibility problem, the target operating system is modified according to the compatibility problem so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system, which may specifically include:

[0066] If there is a hardware compatibility problem, the target hardware patch is used to modify the target hardware instruction initiated by the target operating system to the hardware instruction to be migrated initiated by the operating system to be migrated;

[0067] After the modification is completed, the target hardware patch is packaged into a patch package, and the target operating system and the operating system to be migrated are adapted through the patch package to migrate the existing business from the operating system to be migrated to the target operating system.

[0068] The target hardware patch may include an existing hardware patch and a new hardware patch.

[0069] For the disclosed embodiment, during the migration process, the target operating system may not support the existing hardware, such as the CPU. This may be because the hardware driver of the target operating system does not support the CPU of a specific manufacturer.

[0070] To solve this problem, Figure 5 As shown in the figure, the migration tool will use the hardware patch script (i.e., the target hardware patch) to modify the kernel file of the target operating system, and convert the instructions initiated by the target operating system to the CPU hardware into instructions initiated by the operating system to be migrated to the existing hardware. This conversion can be to add new instructions, delete incompatible instructions, or modify existing instructions to ensure that the CPU can work properly on the target operating system.

[0071] After the modification is completed, the migration tool will package the hardware patch script into a patch package locally and install it. In this way, the target operating system can use this patch to communicate with the existing CPU hardware. After the patch is installed, the migration tool will upload this hardware patch package to the migration warehouse. When the same situation is encountered later, the patch can be downloaded and used directly from the migration warehouse to avoid duplication of work.

[0072] The hardware patch package may be named in the form of: operating system to be migrated-CPU-Intel target operating system-Hygon; the kernel file may be a part of the operating system core, responsible for managing hardware resources and providing an interface between hardware and software.

[0073] The target software patches may include existing software patches and new software patches.

[0074] For the embodiments of the present disclosure, if there is a solvable software compatibility problem, it is checked whether there is an existing software patch corresponding to the solution to the software compatibility problem in the migration warehouse; if there is an existing software patch corresponding to the solution to the software compatibility problem in the migration warehouse, the existing software patch is downloaded to the local system; if there is no existing software patch corresponding to the solution to the software compatibility problem in the migration warehouse, a new software patch is generated and synchronized to the migration warehouse, wherein the new software patch is used to solve the software compatibility problem.

[0075] During the migration and adaptation process, the migration tool can install the existing software patches that have been downloaded to the local computer according to the compatibility report. The migration tool generates new software patches for the remaining compatibility issues that do not have corresponding existing software patches. The new software patches can be additions, deletions, or modifications to the existing software functions so that the target operating system can complete the adaptation of the existing software resources. These newly generated software patches are installed and synchronized to the migration warehouse.

[0076] As a possible implementation method, if there is a compatibility problem, the target operating system is modified according to the compatibility problem so that the target operating system and the operating system to be migrated are compatible, so as to migrate the existing business from the operating system to be migrated to the target operating system, which may specifically include:

[0077] If there is a solvable software compatibility problem, the target software patch is used to perform source code analysis on the software package of the version to be migrated and the software package of the target version to obtain a source code analysis result;

[0078] Using the target software patch, modify the function of the target version software package according to the source code analysis result, so that the modified target version software package is functionally the same as the version software package to be migrated, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system;

[0079] If there are unsolvable software compatibility issues, the user is reminded to select a higher version operating system for migration so that the target operating system and the operating system to be migrated are compatible, so as to migrate existing services from the operating system to be migrated to the higher version operating system.

[0080] Specifically, in the case of software, NetWorkManager is used as an example to describe how to create a software patch. For example, the NetWorkManager version in the operating system to be migrated is 1.8.0, and the NetWorkManager version in the target operating system is 1.18.4. Since the version in the target operating system is higher, the existing software patch may not include a patch that modifies 1.18.4 to achieve the same functions as 1.8.0.

[0081] like Figure 6As shown in the figure, the migration tool will create a new software patch script, which can download the 1.18.4 version of NetWorkManager in the target operating system and the 1.8.0 version of the operating system to be migrated to the local system, and find out the differences between the two versions through source code analysis. According to the results of the source code analysis, the script will add, delete and modify the functions of the 1.18.4 version to ensure that the modified 1.18.4 software package is functionally replaceable with the 1.8.0 version, and the interface form of the software package calling the business system is also modified in the script to the form of the target operating system to be migrated.

[0082] Then package and install the software patch script locally, and upload the software patch package to the migration warehouse so that it can be reused when the same situation occurs later. The software patch package can be named as: OS to be migrated-NetWorkManager-1.8.0-Destination OS-1.18.4. When the business system needs to run NetWorkManager, it actually calls the modified 1.18.4 through the software patch. Since the modified 1.18.4 has the same functions as 1.8.0, the business system is not aware of it, so there is no need to adapt the business system.

[0083] Step 203: If there is a third-party software package that does not provide source code, determine whether the existing business that is migrated after skipping the third-party software package runs normally.

[0084] For the disclosed embodiment, during the software adaptation process, if a third-party software package that does not provide a source package is encountered upstream, it will be temporarily skipped and not processed. If the business system cannot run normally after migration due to the third-party software package, the third-party software party needs to reconstruct the code of its software package according to the target operating system before the software adaptation can be completed.

[0085] Specifically, if there is a third-party software package for which source code is not provided, it is determined whether the existing business migrated after skipping the third-party software package runs normally; if the existing business migrated after skipping the third-party software package runs normally, the processing of the third-party software package is skipped; if the existing business migrated after skipping the third-party software package cannot run normally, the code of the third-party software package is reconstructed according to the target operating system, and the reconstructed third-party software package is migrated to the target operating system.

[0086] For the disclosed embodiment, after completing the migration adaptation, the migration tool starts to perform the in-place migration of the operating system, downloads and installs the release package and software package of the target operating system, and uninstalls the release package and software package of the operating system to be migrated.

[0087] If the software packages on the operating systems before and after the migration are the same, there is no software compatibility issue. In this case, the software packages of the operating system to be migrated are directly replaced with the software packages of the target operating system.

[0088] If the version of the software package on the target operating system is higher than that on the operating system to be migrated, there is a software compatibility issue. When running the corresponding software, you are actually running the software package on the target operating system and its corresponding software patch. The same is true for hardware.

[0089] After the migration is completed, run the business system to perform functional verification to ensure that the business system can run normally on the new operating system.

[0090] If the business system cannot run normally, you need to modify the target hardware patch and / or target software patch, and update the hardware and software patches to the migration warehouse until the business system can run normally.

[0091] Modify system parameter configuration, including configuring grub (boot loader) and replacing startup items. Obtain the startup boot items and startup sequence of the existing system, add the startup items of the target operating system, and delete the startup items of the operating system to be migrated.

[0092] Restart the machine and check whether you can successfully enter the converted target operating system.

[0093] For the embodiments of the present disclosure, Figure 7 As shown, the migration tools involved can automatically complete migration assessment, migration adaptation, and migration implementation, without the need for manual intervention in hardware drivers, software packages, and business system code reconstruction. Migration adaptation is only modified on the target operating system side, and migration adaptation is completed through the existing hardware and software patches in the migration warehouse, or through the hardware and software patches generated by the migration tool.

[0094] This application is also an on-site migration solution, and the IP will not change. Therefore, it only involves the migration of the local machine and will not affect the business of other machines. The migration adaptation of this application is only completed on the target operating system side. There is no need to jointly discuss and communicate with multiple R&D personnel to clarify the problem and then match the reconstructed code. The problem of involving many responsible parties has been solved. When this application encounters incompatibility, the transformation part is all completed on the target operating system side to adapt the existing hardware resources and software resources. From the perspective of the business system, the existing dependent software has not been modified. Therefore, as long as the target operating system can run the existing software normally, there is no need to transform the business system, and the business can run normally, eliminating the business adaptation process. The entire adaptation process of this application eliminates manual intervention in code reconstruction, and automatically solves the incompatibility problems during the operating system migration process through migration tools, minimizing the migration risk and improving the migration efficiency.

[0095] In summary, the cross-operating system business migration method, device and electronic device provided by the present disclosure, compared with the prior art, the present disclosure obtains the operating system information to be migrated and the target operating system information; compares the operating system information to be migrated with the target operating system information to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system; if there is a compatibility problem, the target operating system is systematically modified according to the compatibility problem, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system. In the scheme of the present disclosure, if there is a compatibility problem, the target operating system is systematically modified according to the compatibility problem, so that the target operating system and the operating system to be migrated are adapted, so that there is no need to involve other responsible parties, thereby improving the efficiency and success rate of migration.

[0096] Based on the above Figure 1 and Figure 3 The present disclosure provides a cross-operating system service migration device, such as Figure 8 As shown, the device includes: an acquisition module 31, a comparison module 32, and a modification module 33;

[0097] An acquisition module 31 is used to acquire information of the operating system to be migrated and information of the target operating system;

[0098] A comparison module 32, used to compare the information of the operating system to be migrated with the information of the target operating system to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system;

[0099] The modification module 33 is used to modify the target operating system according to the compatibility problem if there is a compatibility problem, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system.

[0100] In a specific application scenario, the operating system information to be migrated includes the hardware information to be migrated, the target operating system information includes the target hardware information, and the compatibility issue includes the hardware compatibility issue. The comparison module 32 can be used to compare the hardware information to be migrated and the target hardware information. If the hardware information to be migrated is consistent with the target hardware information, it is determined that there is no hardware compatibility issue between the operating system to be migrated and the target operating system; or, by comparing the hardware information to be migrated and the target hardware information, if the hardware information to be migrated is inconsistent with the target hardware information, it is determined that there is a hardware compatibility issue between the operating system to be migrated and the target operating system.

[0101] In a specific application scenario, the modification module 33, if the hardware compatibility problem exists, uses the target hardware patch to modify the target hardware instruction initiated by the target operating system to the hardware instruction to be migrated initiated by the operating system to be migrated;

[0102] After the modification is completed, the target hardware patch is packaged into a patch package, and the target operating system and the operating system to be migrated are adapted through the patch package to migrate the existing service from the operating system to be migrated to the target operating system.

[0103] In a specific application scenario, the target hardware patch includes an existing hardware patch and a new hardware patch, and the device further includes: a first checking module 34, a first downloading module 35, and a first generating module 36;

[0104] A first checking module 34 is used to check whether there is an existing hardware patch corresponding to solving the hardware compatibility problem in the migration warehouse if the hardware compatibility problem exists;

[0105] A first downloading module 35 is configured to download the existing hardware patch to the local system if there is an existing hardware patch corresponding to solving the hardware compatibility problem in the migration warehouse;

[0106] The first generating module 36 is used to generate a new hardware patch if there is no existing hardware patch corresponding to the hardware compatibility problem in the migration warehouse, and synchronize the new hardware patch to the migration warehouse, wherein the new hardware patch is used to solve the hardware compatibility problem.

[0107] In a specific application scenario, the operating system information to be migrated also includes software information to be migrated, the software information to be migrated includes a version software package to be migrated, the target operating system information also includes target software information, the target software information includes a target version software package, the compatibility issue also includes a software compatibility issue, and the comparison module 32 can be used to compare the version software package to be migrated and the target version software package. If the version software package to be migrated is the same as the target version software package, it is determined that there is no software compatibility issue between the operating system to be migrated and the target operating system; or,

[0108] Comparing the version software package to be migrated with the target version software package, if the version software package to be migrated is lower than the target version software package, determining that there is a solvable software compatibility issue between the operating system to be migrated and the target operating system; or,

[0109] The to-be-migrated version software package is compared with the target version software package. If the to-be-migrated version software package is higher than the target version software package, it is determined that an unsolvable software compatibility problem exists between the to-be-migrated operating system and the target operating system.

[0110] In a specific application scenario, the modification module 33 may be used to perform source code analysis on the to-be-migrated version software package and the target version software package using the target software patch to obtain a source code analysis result if there is a solvable software compatibility problem;

[0111] Using the target software patch, modify the function of the target version software package according to the source code analysis result, so that the modified target version software package is functionally identical to the version software package to be migrated, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system;

[0112] If there are unsolvable software compatibility issues, the user is reminded to select a higher version operating system for migration so that the target operating system and the operating system to be migrated are compatible, so as to migrate the existing business from the operating system to be migrated to the higher version operating system.

[0113] In a specific application scenario, the target software patch includes an existing software patch and a new software patch, and the device further includes: a second checking module 37, a second downloading module 38, and a second generating module 39;

[0114] The second checking module 37 is used to check whether there is an existing software patch corresponding to solving the software compatibility problem in the migration warehouse if there is a solvable software compatibility problem;

[0115] A second downloading module 38 is configured to download the existing software patch to the local system if there is an existing software patch corresponding to solving the software compatibility problem in the migration warehouse;

[0116] The second generating module 39 is used to generate a new software patch if there is no existing software patch corresponding to the software compatibility problem in the migration warehouse, and synchronize the new software patch to the migration warehouse, wherein the new software patch is used to solve the software compatibility problem.

[0117] In a specific application scenario, the device further includes: a judgment module 40, a skipping module 41 and a reconstruction module 42;

[0118] A judgment module 40 is used to judge whether the existing business migrated after skipping the third-party software package is running normally if there is a third-party software package without providing source code;

[0119] A skipping module 41 is used for skipping the processing of the third-party software package if the existing service migrated after skipping the third-party software package runs normally;

[0120] The reconstruction module 42 is used to reconstruct the code of the third-party software package according to the target operating system if the existing business migrated after skipping the third-party software package cannot run normally, and migrate the reconstructed third-party software package to the target operating system.

[0121] It should be noted that for other corresponding descriptions of the functional units involved in the cross-operating system service migration device provided by the present disclosure, reference can be made to Figure 1 and Figure 3 The corresponding description in will not be repeated here.

[0122] Based on the above Figure 1 and Figure 3 The method shown in the present disclosure, accordingly, also provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned Figure 1 and Figure 3 The method shown.

[0123] Based on this understanding, the technical solution of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various implementation scenarios of the present disclosure.

[0124] Based on the above Figure 1 and Figure 3 The method shown, and Figure 8 In order to achieve the above-mentioned purpose, the embodiment of the present disclosure also provides an electronic device, which can be configured on the vehicle (such as an electric vehicle) side, and the device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 3 The method shown.

[0125] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.

[0126] Those skilled in the art will appreciate that the above-mentioned physical device structure provided by the present disclosure does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.

[0127] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.

[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present disclosure can be implemented by means of software plus a necessary general hardware platform, or by hardware. According to the cross-operating system business migration method, device and electronic device provided by the present disclosure, compared with the prior art, the present disclosure obtains the operating system information to be migrated and the target operating system information; compares the operating system information to be migrated with the target operating system information to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system; if there is a compatibility problem, the target operating system is systematically modified according to the compatibility problem, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system. In the scheme of the present disclosure, if there is a compatibility problem, the target operating system is systematically modified according to the compatibility problem, so that the target operating system and the operating system to be migrated are adapted, so that there is no need to involve other responsible parties, thereby improving the efficiency and success rate of migration.

[0129] 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 term "comprising" or any other variant thereof is 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 "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0130] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features applied herein.

Claims

1. A cross-operating system service migration method, characterized in that: The method comprises: Obtain information about the operating system to be migrated and the target operating system; Comparing the information of the operating system to be migrated with the information of the target operating system to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system, wherein the information of the operating system to be migrated includes the hardware information to be migrated, the target operating system information includes the target hardware information, and the compatibility problem includes the hardware compatibility problem, including: comparing the hardware information to be migrated with the target hardware information, and if the hardware information to be migrated is consistent with the target hardware information, determining that there is no hardware compatibility problem between the operating system to be migrated and the target operating system; or, comparing the hardware information to be migrated with the target hardware information, and if the hardware information to be migrated is inconsistent with the target hardware information, determining that there is a hardware compatibility problem between the operating system to be migrated and the target operating system; If there is a compatibility problem, the target operating system is modified according to the compatibility problem so that the target operating system and the operating system to be migrated are adapted to each other, so as to migrate the existing business from the operating system to be migrated to the target operating system, including: if there is a hardware compatibility problem, the target hardware instructions initiated by the target operating system are modified into hardware instructions to be migrated initiated by the operating system to be migrated by using the target hardware patch; after the modification is completed, the target hardware patch is packaged into a patch package, and the target operating system and the operating system to be migrated are adapted by using the patch package, so as to migrate the existing business from the operating system to be migrated to the target operating system.

2. The method according to claim 1, characterized in that: The target hardware patch includes an existing hardware patch and a new hardware patch, and the method further includes: If the hardware compatibility problem exists, check whether there is an existing hardware patch in the migration warehouse that can solve the hardware compatibility problem; If there is an existing hardware patch corresponding to solving the hardware compatibility problem in the migration warehouse, downloading the existing hardware patch to the local system; If the migration warehouse does not have an existing hardware patch corresponding to solving the hardware compatibility problem, a new hardware patch is generated and synchronized to the migration warehouse, wherein the new hardware patch is used to solve the hardware compatibility problem.

3. The method according to claim 1, characterized in that The operating system information to be migrated also includes software information to be migrated, the software information to be migrated includes the version software package to be migrated, the target operating system information also includes target software information, the target software information includes the target version software package, and the compatibility issue also includes software compatibility issue; The comparing the information of the operating system to be migrated with the information of the target operating system to determine whether there is a compatibility problem between the operating system to be migrated and the target operating system includes: Comparing the version software package to be migrated with the target version software package, if the version software package to be migrated is the same as the target version software package, determining that there is no software compatibility issue between the operating system to be migrated and the target operating system; or, Comparing the version software package to be migrated with the target version software package, if the version software package to be migrated is lower than the target version software package, determining that there is a solvable software compatibility issue between the operating system to be migrated and the target operating system; or, The to-be-migrated version software package is compared with the target version software package. If the to-be-migrated version software package is higher than the target version software package, it is determined that an unsolvable software compatibility problem exists between the to-be-migrated operating system and the target operating system.

4. The method according to claim 3, characterized in that If there is a compatibility problem, modifying the target operating system according to the compatibility problem so that the target operating system and the operating system to be migrated are compatible, so as to migrate the existing business from the operating system to be migrated to the target operating system, including: If there is a solvable software compatibility problem, the target software patch is used to perform source code analysis on the to-be-migrated version software package and the target version software package to obtain a source code analysis result; Using the target software patch, modify the function of the target version software package according to the source code analysis result, so that the modified target version software package is functionally identical to the version software package to be migrated, so that the target operating system and the operating system to be migrated are adapted to migrate the existing business from the operating system to be migrated to the target operating system; If there are unsolvable software compatibility issues, the user is reminded to select a higher version operating system for migration so that the target operating system and the operating system to be migrated are compatible, so as to migrate the existing business from the operating system to be migrated to the higher version operating system.

5. The method according to claim 4, characterized in that The target software patch includes an existing software patch and a new software patch, and the method further includes: If there is a solvable software compatibility issue, check whether there is an existing software patch in the migration warehouse that can solve the software compatibility issue; If there is an existing software patch corresponding to solving the software compatibility problem in the migration warehouse, downloading the existing software patch to the local system; If the migration warehouse does not have an existing software patch corresponding to solving the software compatibility problem, a new software patch is generated and synchronized to the migration warehouse, wherein the new software patch is used to solve the software compatibility problem.

6. The method according to claim 4, characterized in that The method further comprises: If there is a third-party software package for which no source code is provided, determining whether the existing business migrated after skipping the third-party software package is running normally; If the existing service migrated after skipping the third-party software package runs normally, then the processing of the third-party software package is skipped; If the existing service migrated after skipping the third-party software package cannot run normally, the third-party software package is reconstructed according to the target operating system, and the reconstructed third-party software package is migrated to the target operating system.

7. A cross-operating system service migration device, characterized in that: include: An acquisition module is used to acquire information of the operating system to be migrated and information of the target operating system; A comparison module, used for comparing the information of the operating system to be migrated with the target operating system information, and determining whether there is a compatibility problem between the operating system to be migrated and the target operating system, wherein the information of the operating system to be migrated includes the hardware information to be migrated, the target operating system information includes the target hardware information, and the compatibility problem includes the hardware compatibility problem, including: comparing the hardware information to be migrated with the target hardware information, and if the hardware information to be migrated is consistent with the target hardware information, then determining that there is no hardware compatibility problem between the operating system to be migrated and the target operating system; or, comparing the hardware information to be migrated with the target hardware information, and if the hardware information to be migrated is inconsistent with the target hardware information, then determining that there is a hardware compatibility problem between the operating system to be migrated and the target operating system; A modification module is used to perform system modifications on the target operating system according to the compatibility problem if there is a compatibility problem, so that the target operating system and the operating system to be migrated are adapted to each other, so as to migrate the existing business from the operating system to be migrated to the target operating system, including: if the hardware compatibility problem exists, using the target hardware patch to modify the target hardware instructions initiated by the target operating system to the hardware instructions to be migrated initiated by the operating system to be migrated; after the modification is completed, the target hardware patch is packaged into a patch package, and the target operating system and the operating system to be migrated are adapted to each other through the patch package, so as to migrate the existing business from the operating system to be migrated to the target operating system.

8. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.