Data migration method, device and equipment suitable for vehicle
By migrating data under different states of the vehicle, the problems of limited capacity and network delay of a single data center are solved, and efficient, accurate migration of vehicle data and improved service efficiency are achieved.
Patent Information
- Application Number
- CN202310615074.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2024-11-29
AI Technical Summary
In the prior art, the capacity of a single data center is limited, resulting in limited availability and scalability of the data center, making it difficult to ensure high efficiency and high accuracy during data migration, and there are network latency problems, affecting the backup and transmission of vehicle data.
By migrating data in different states of the vehicle, first obtain the first vehicle data in the initial data center and migrate to the target data center, then obtain the newly added second vehicle data and migrate, update the data center address of the target vehicle to ensure that The accuracy and efficiency of data migration can avoid data transmission errors, improve service efficiency and disaster recovery capabilities.
It realizes accurate and efficient migration of vehicle data, avoids the availability and scalability limitations of a single data center, reduces network latency, and improves service efficiency and disaster recovery capabilities.
Smart Images

Figure CN119052332A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a data migration method, device and equipment applicable to a vehicle. Background Art
[0002] The data center accessed by the vehicle refers to a self-contained collection that can complete all business operations. This collection contains all services required for all businesses and the data assigned to this data center. The data center is a global collaborative network of specific devices used to transmit, accelerate, display, calculate, and store data information on the network infrastructure. In related technologies, the capacity of a single data center is limited, which limits the availability and scalability of the data center. On the other hand, due to the real-time growth of the data volume in the data center and possible network delays, it is impossible to ensure that all vehicle data is backed up during the data migration process, which may lead to data transmission errors and make it difficult to achieve efficient and accurate data transmission between devices.
[0003] Therefore, how to accurately and efficiently migrate vehicle data, avoid the availability and scalability limitations of data centers, improve service efficiency and disaster recovery capabilities, and reduce network latency has become one of the important research directions. Summary of the invention
[0004] The present disclosure provides a data migration method, device and apparatus applicable to a vehicle. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a data migration method applicable to a vehicle is provided, comprising:
[0006] In response to the initial data center of the target vehicle supporting data migration, determining a target data center to be migrated;
[0007] Acquire the first vehicle data in the initial data center at the current moment, and migrate the first vehicle data to the target data center;
[0008] In response to the completion of the first vehicle data migration, locking the information interaction service of the target vehicle to control the information interaction state of the target vehicle to be a locked state;
[0009] Acquire the newly added second vehicle data in addition to the first vehicle data in the initial data center, and migrate the second vehicle data to the target data center;
[0010] In response to the second vehicle data migration being completed, an address of a target data center is determined, and the data center address of the target vehicle is updated to the address of the target data center.
[0011] According to a second aspect of an embodiment of the present disclosure, there is provided a data migration device applicable to a vehicle, comprising:
[0012] A determination module, configured to determine a target data center to be migrated in response to an initial data center of a target vehicle supporting data migration;
[0013] A first migration module, used to obtain the first vehicle data in the initial data center at the current moment, and migrate the first vehicle data to the target data center;
[0014] A locking module, configured to lock the information interaction service of the target vehicle in response to completion of the first vehicle data migration, so as to control the information interaction state of the target vehicle to be a locked state;
[0015] A second migration module, used to obtain the newly added second vehicle data in addition to the first vehicle data in the initial data center, and migrate the second vehicle data to the target data center;
[0016] An update module is used to determine the address of the target data center in response to the completion of the second vehicle data migration, and update the data center address of the target vehicle to the address of the target data center.
[0017] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0018] processor;
[0019] a memory for storing processor-executable instructions;
[0020] The processor is configured to execute instructions to implement a data migration method applicable to a vehicle as described in any one of the first aspects above.
[0021] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute a data migration method applicable to a vehicle as described in any one of the first aspects above.
[0022] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements a data migration method applicable to a vehicle according to any one of the above-mentioned first aspects.
[0023] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0024] In the disclosed embodiment, first vehicle data in the initial data center at the current moment is obtained, and the first vehicle data is migrated to the target data center; in response to completion of the migration of the first vehicle data, the information interaction service of the target vehicle is locked to control the information interaction state of the target vehicle to a locked state; newly added second vehicle data in addition to the first vehicle data in the initial data center is obtained, and the second vehicle data is migrated to the target data center. By performing data migration under different states of the vehicle, vehicle data migration can be performed accurately and efficiently. Local access to vehicle services is performed through data migration, which can avoid the limitations of availability and scalability of a single data center, improve service efficiency and disaster recovery capabilities, and reduce network latency.
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0027] Figure 1 is a flow chart showing a data migration method applicable to a vehicle according to an exemplary embodiment;
[0028] Figure 2 is a flow chart showing a data migration method applicable to a vehicle according to an exemplary embodiment;
[0029] Figure 3 is a flow chart showing a data migration method applicable to a vehicle according to an exemplary embodiment;
[0030] Figure 4 is a schematic diagram showing a data migration method applicable to a vehicle according to an exemplary embodiment;
[0031] Figure 5 is a block diagram of a data migration device applicable to a vehicle according to an exemplary embodiment;
[0032] Figure 6 is a block diagram of a device according to an exemplary embodiment;
[0033] Figure 7 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION
[0034] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0036] It should be noted that the user information involved in this disclosure (including but not limited to user device information, user personal information, etc.) is all information authorized by the user or fully authorized by all parties.
[0037] Figure 1 is a flow chart showing a data migration method applicable to a vehicle according to an exemplary embodiment. Figure 1 As shown, the method includes the following steps, which can be specifically executed by the cloud server.
[0038] Step 101 : In response to an initial data center of a target vehicle supporting data migration, a target data center to be migrated is determined.
[0039] In some implementations, it can be determined whether the target vehicle supports data migration in the initial data center based on the vehicle series of the target vehicle. If the vehicle series of the target vehicle is a multi-domain controller vehicle series, it is determined that the target vehicle supports data migration in the initial data center corresponding to itself. In some implementations, it can be determined whether the target vehicle supports data migration in the initial data center based on the vehicle state of the target vehicle. If the vehicle state of the target vehicle is online, it is determined that the target vehicle supports data migration in the initial data center corresponding to itself. It can be determined whether the target vehicle supports data migration in the initial data center based on the version of the application associated with the target vehicle. If the version of the application associated with the target vehicle is a preset version, it is determined that the target vehicle supports data migration in the initial data center corresponding to itself.
[0040] In some implementations, data centers are divided according to geographical areas. For example, if the vehicle is produced in location A and sold in location B, the initial data center is data center A corresponding to location A, and the target data center to be migrated is data center B corresponding to location B.
[0041] Step 102: Acquire the first vehicle data in the initial data center at the current moment, and migrate the first vehicle data to the target data center.
[0042] The initial information interaction state of the target vehicle is an unlocked state, that is, the information interaction service is normal. In some implementations, during the migration of vehicle data, new vehicle data may appear in the initial data center. Therefore, in order to avoid data transmission errors, in the embodiment of the present disclosure, two data migrations can be performed under different information interaction states of the target vehicle. That is to say, the first data migration is performed when the initial information interaction state is an unlocked state, and then the information interaction service is locked to control the information interaction state of the target vehicle to a locked state, and then the second data migration is performed.
[0043] The first data migration process can migrate the first vehicle data in the initial data center at the current moment to the target data center, and the second data migration process can migrate the incremental vehicle data in the initial data center to the target data center, thus achieving the migration of the vehicle data in the initial data center to the target data center. The first vehicle data is the service data corresponding to the target vehicle in the initial data center, including all services required for all businesses of the target vehicle, and the data allocated to the initial data center.
[0044] Optionally, the information interaction service includes a cloud proxy service and a gateway service. Optionally, in the embodiment of the present disclosure, the first vehicle data of the initial data center can be migrated to the target data center through a message queue (MQ), wherein the message queue is a "first-in-first-out" data structure in the basic data structure. The data to be transmitted can be placed in the queue, and the queue mechanism can be used to realize data migration from the initial data center to the target data center.
[0045] Step 103 , in response to completion of the first vehicle data migration, locking the information interaction service of the target vehicle to control the information interaction state of the target vehicle to be a locked state.
[0046] In some implementations, before locking the information interaction service of the target vehicle, it is necessary to further determine whether the locking function used to lock / unlock the information interaction service of the target vehicle is normal. If the locking function is normal, it is determined that data migration of the second vehicle data is supported.
[0047] In the disclosed embodiment, if it is determined that the data migration of the second vehicle data is supported and the data migration of the first vehicle is completed, the information interaction service of the target vehicle is locked. Locking the information interaction service of the target vehicle includes locking the cloud proxy service and the gateway service at the same time. The purpose of locking is to prevent the communication between the target vehicle-application and the target vehicle-cloud server during the second data migration process, and no new data is generated.
[0048] Step 104 , acquiring the newly added second vehicle data in addition to the first vehicle data in the initial data center, and migrating the second vehicle data to the target data center.
[0049] In some implementations, new vehicle data may appear in the initial data center during the migration of vehicle data. Therefore, in order to avoid data transmission errors, in the embodiments of the present disclosure, two data migrations can be performed under different information interaction states of the target vehicle. That is, the first data migration is performed when the initial information interaction state is an unlocked state, and then the information interaction service is locked to control the information interaction state of the target vehicle to a locked state, and then the second data migration is performed.
[0050] The second vehicle data is service data corresponding to the target vehicle.
[0051] Step 105 , in response to the completion of the migration of the second vehicle data, determining the address of the target data center, and updating the data center address of the target vehicle to the address of the target data center.
[0052] In some implementations, in order to support subsequent business operations of the target vehicle, after the second vehicle data migration is completed, the address of the data center needs to be updated.
[0053] In the disclosed embodiment, first vehicle data in the initial data center at the current moment is obtained, and the first vehicle data is migrated to the target data center; in response to completion of the migration of the first vehicle data, the information interaction service of the target vehicle is locked to control the information interaction state of the target vehicle to a locked state; newly added second vehicle data in addition to the first vehicle data in the initial data center is obtained, and the second vehicle data is migrated to the target data center. By performing data migration under different states of the vehicle, vehicle data migration can be performed accurately and efficiently. Local access to vehicle services is performed through data migration, which can avoid the limitations of availability and scalability of a single data center, improve service efficiency and disaster recovery capabilities, and reduce network latency.
[0054] It should be noted that the entire data migration process needs to ensure that the vehicle status of the target vehicle remains online at all times. That is to say, before migrating the second vehicle data, it is necessary to query the vehicle status again. If the vehicle status is online, continue to migrate the second vehicle data to the target data center.
[0055] Figure 2 is a flow chart showing a data migration method applicable to a vehicle according to an exemplary embodiment. Figure 2 As shown, the method comprises the following steps:
[0056] Step 201 , obtaining multiple attribute information of a target vehicle, wherein the multiple attribute information includes the model of the target vehicle, the vehicle status, and the version of the application associated with the target vehicle.
[0057] Optionally, in the disclosed embodiment, the target vehicle may be a multi-domain controller vehicle or any other vehicle; the vehicle status may include an online status, a sleeping status, an offline status, etc.
[0058] Step 202, in response to the target vehicle being a multi-domain controller vehicle, the vehicle status being online, and the version of the application associated with the target vehicle being a preset version, it is determined that the initial data center of the target vehicle supports data migration, and a target data center to be migrated is determined.
[0059] In some implementations, if the target vehicle is not a multi-domain controller vehicle, or the vehicle is not in an online state, or the version of the application associated with the target vehicle is not a preset version, it is determined that the initial data center of the target vehicle does not support data migration, and the data migration process is terminated.
[0060] In some implementations, if the vehicle is in a sleeping state, the vehicle can be awakened to control the vehicle to an online state.
[0061] Since the original information channel between the target vehicle and the initial data center will be closed during the data migration process (i.e., the subsequent information interaction state for controlling the target vehicle is locked), affecting the interaction between the cloud server and the target vehicle, in order to avoid network delays and transmission errors caused by real-time data growth, in the embodiment of the present disclosure, before obtaining the first vehicle data in the initial data center at the current moment, a temporary information channel (quic channel) can be constructed to facilitate the subsequent transmission of interactive information between the cloud server and the target vehicle during the data migration process (such as transmitting information on vehicle status changes during the data migration process), that is, the uplink and downlink interactions of information during the data migration process based on the quic channel.
[0062] Step 203: Acquire the first vehicle data in the initial data center at the current moment, and migrate the first vehicle data to the target data center.
[0063] For the content of step 203, please refer to the relevant introduction in the above embodiment, which will not be repeated here.
[0064] It should be noted that in some implementations, before locking the information interaction service of the target vehicle, it is necessary to further determine whether the data migration of the second vehicle data is supported. Optionally, whether the cloud server supports the data migration of the second vehicle data can be determined based on whether the global network service GNS (Global Network Service) system is normal and whether the locking function is normal.
[0065] Step 204, testing whether the global network service GNS system is normal through the query interface of the hypertext transfer protocol http.
[0066] The purpose of confirming that the GNS system is normal is to ensure that the data transmission of the data center to which the vehicle belongs in the GNS system is normal. In the embodiment of the present disclosure, whether the GNS system is normal can be tested from the http query interface.
[0067] Step 205: In response to the GNS system being normal, test whether the locking function is normal.
[0068] In order to improve the efficiency of data transmission, before locking the information interaction service of the target vehicle, it is necessary to test whether the locking function is normal, wherein the locking function is used to lock / unlock the information interaction service of the target vehicle.
[0069] Step 206 , in response to the locking function being normal, determining that data migration of the second vehicle data is supported.
[0070] In some implementations, if the locking function is tested and there is no response within a timeout period, it is determined that the locking function is abnormal, and it is determined that the data migration of the second vehicle data is not supported, and the data migration process is terminated.
[0071] In some implementations, before locking the information interaction service of the target vehicle, the status of the vehicle is determined again, and if the vehicle status is online, the information interaction service of the target vehicle is locked.
[0072] Step 207 , in response to the completion of the first vehicle data migration, the information interaction service of the target vehicle is locked to control the information interaction state of the target vehicle to be a locked state.
[0073] The contents of step 301 to step 303 can be found in the introduction of the above embodiment and will not be repeated here.
[0074] Step 208 , recording a first timestamp when the first vehicle data is acquired, and a second timestamp when the information interaction service of the target vehicle is locked.
[0075] In some implementations, new vehicle data may appear in the initial data center during the migration of vehicle data. Therefore, in order to avoid data transmission errors, in the embodiment of the present disclosure, two data migrations can be performed under different information interaction states of the target vehicle. During the second data migration, the first timestamp when the first vehicle data is obtained and the second timestamp when the information interaction service of the target vehicle is locked are recorded to facilitate the subsequent acquisition of the second vehicle data.
[0076] Step 209 , obtaining the vehicle data newly added between the first timestamp and the second timestamp in the initial data center as the second vehicle data, and migrating the second vehicle data to the target data center.
[0077] In the disclosed embodiment, the first data migration is performed when the initial information interaction state is unlocked, and then the information interaction service is locked to control the information interaction state of the target vehicle to a locked state, and the second data migration is performed to ensure the ultimate consistency of the data in the target data center and the data in the initial data center.
[0078] Step 210 , in response to completion of the second vehicle data migration, determining the address of the target data center, and updating the data center address of the target vehicle to the address of the target data center.
[0079] For the content of step 210, please refer to the relevant introduction in the above embodiment, which will not be repeated here.
[0080] In the embodiment of the present disclosure, whether data migration is supported is determined before data migration, so that vehicle data migration can be performed accurately and efficiently, errors in the data migration process can be avoided, and service data corresponding to target vehicles newly added between the first timestamp and the second timestamp in the initial data center is obtained as the second vehicle data, and the second vehicle data is migrated to the target data center, so that the final consistency of the data in the target data center and the data in the initial data center can be ensured.
[0081] Figure 3 is a flow chart showing a data migration method applicable to a vehicle according to an exemplary embodiment. Figure 3 As shown, the method comprises the following steps:
[0082] Step 301 : In response to an initial data center of a target vehicle supporting data migration, a target data center to be migrated is determined.
[0083] Step 302: Acquire the first vehicle data in the initial data center at the current moment, and migrate the first vehicle data to the target data center.
[0084] Step 303 , in response to completion of the first vehicle data migration, the information interaction service of the target vehicle is locked to control the information interaction state of the target vehicle to be a locked state.
[0085] Step 304 , acquiring the newly added second vehicle data in addition to the first vehicle data in the initial data center, and migrating the second vehicle data to the target data center.
[0086] Step 305 , in response to the completion of the migration of the second vehicle data, determining the address of the target data center, and updating the data center address of the target vehicle to the address of the target data center.
[0087] For the contents of step 301 to step 305, reference may be made to the relevant introduction in the above embodiment, which will not be repeated here.
[0088] Step 306: Send a first instruction message to the target vehicle and an application associated with the target vehicle.
[0089] The first indication information is used to instruct the target vehicle and the application to update their respective data center addresses to the address of the target data center.
[0090] Optionally, the interactive information between the cloud server and the application during the data migration process is transmitted based on an http request. For example, the cloud server transmits a first indication message to the application associated with the target vehicle through an http request.
[0091] It should be noted that, in the embodiment of the present disclosure, the interactive information between the cloud server and the target vehicle during the data migration process is transmitted based on the constructed temporary information channel.
[0092] It should be noted that in the disclosed embodiment, the target vehicle is a multi-domain controller vehicle, that is, the target vehicle contains multiple domain controllers, including the in-vehicle entertainment HU domain controller, the vehicle control XCU domain controller, and the intelligent driving FSD domain controller, each domain controller is responsible for different functions. Among them, the HU domain controller is mainly responsible for the in-vehicle entertainment system; the XCU domain controller is responsible for the vehicle control system; and the FSD domain controller is mainly responsible for intelligent driving related functions.
[0093] In some implementations, the cloud server sends a first indication message to the target vehicle based on the constructed temporary information channel. Optionally, the first indication message includes the address of the target data center. After receiving the instruction, the car routing service in the HU domain controller synchronizes it to the XCU domain controller and the FSD domain controller. The results after each domain switching unit will report the progress to the cloud server through the temporary information channel (quic channel). Among them, after the car routing service synchronizes the address of the target data center to the XCU domain controller and the FSD domain controller, the new unit address of each domain is reset. After the three domain controllers monitor the change of the unit address, they send a receipt of the unit switching result to the car routing service. After receiving the receipts from each domain, the car routing service sends a receipt to the cloud server (that is, sends a second indication message to the target vehicle), indicating that the data migration is successful.
[0094] In some implementations, the cloud server sends a first indication message to an application associated with the target vehicle based on the constructed temporary information channel. Optionally, the application queries the GNS system when entering the vehicle control page for the first time, and finally obtains the address of the target data center. At this time, the data center corresponding to the vehicle has been updated to the target data center.
[0095] Step 307: Receive a second instruction message sent by the target vehicle.
[0096] In an embodiment of the present application, after sending a first indication message to the target vehicle and the application associated with the target vehicle, it is necessary to receive receipts sent by the target vehicle and the application associated with the target vehicle respectively to confirm whether the target vehicle and the application have completed the update of the data center address.
[0097] The second indication message is used to indicate that the target vehicle has completed the update of the data center address.
[0098] In some implementations, the cloud server receives the second indication message sent by the target vehicle based on the constructed temporary information channel.
[0099] Step 308: Receive a third instruction message sent by an application associated with the target vehicle.
[0100] The third indication message is used to indicate that the application has completed the update of the data center address.
[0101] In some implementations, the cloud server receives the third indication message sent by the application based on the constructed temporary information channel.
[0102] Step 309 , in response to the target vehicle and the application completing the update of the data center address, unlocking the information interaction service of the target vehicle.
[0103] In response to the target vehicle and the application completing the update of the data center address after a period of time, the information interaction service of the target vehicle is unlocked, and the information interaction state of the target vehicle is controlled to be an unlocked state.
[0104] Optionally, clear the temporary information channel after the data migration is complete.
[0105] In the disclosed embodiment, the data center address of the target vehicle is updated to the address of the target data center, and the target vehicle and the application are instructed to update their respective data center addresses to the address of the target data center. This can avoid errors in the data migration process, improve the capacity availability and scalability of the data center, reduce the latency rate at the network level, improve service disaster recovery capabilities, achieve fault domain isolation and migration, achieve disaster recovery in the same city and in different locations, improve the cohesion and decoupling of each business domain, and enhance the level of service governance.
[0106] Figure 4 is a schematic diagram showing a data migration method applicable to a vehicle according to an exemplary embodiment. Figure 4As shown, in the disclosed embodiment, the cloud server includes a traffic scheduling system, a data migration system, and a GNS system. The target vehicle includes a vehicle routing service and a vehicle domain controller. The application is deployed on the terminal device. First, the traffic scheduling system creates a data migration task and obtains the vehicle series, vehicle status, and version of the application associated with the target vehicle. In response to the target vehicle series being a multi-domain controller vehicle series, the vehicle status being an online status, and the version of the application associated with the target vehicle being a preset version, it is determined that the target vehicle supports data migration in the initial data center. Otherwise, it is determined that the target vehicle does not support data migration in the initial data center, and the data migration process is stopped.
[0107] like Figure 4 As shown, in response to the target vehicle supporting the initial data center corresponding to itself to perform data migration, a temporary information channel is constructed, and the temporary information channel is used to transmit the interactive information between the cloud server and the target vehicle during the data migration process. Further, the target data center to be migrated is determined, and the traffic scheduling system sends an instruction to the data migration system to instruct the data migration system to obtain the first vehicle data at a historical moment in the initial data center and migrate the first vehicle data to the target data center. This is the first data migration.
[0108] like Figure 4 As shown, after the first data migration is completed, the GNS system is tested from the http query interface to see if it is normal; in response to the GNS system being normal, the locking function is tested to see if it is normal; in response to the locking function being normal, it is determined that the data migration of the second vehicle data is supported, and the information interaction service of the target vehicle is locked, and the newly added second vehicle data in addition to the first vehicle data when the information interaction state is unlocked is obtained, and the second vehicle data is migrated to the target data center, which is the second data migration. If the GNS system is abnormal or the locking function is abnormal, the data migration process is stopped.
[0109] like Figure 4As shown, after the second data migration is completed, the address of the target data center is determined, and a first indication message is sent to the vehicle routing service based on the pre-built temporary information channel. The vehicle routing service obtains the address of the target data center and synchronizes it to the vehicle domain controller, thereby updating the respective data center addresses to the address of the target data center. Optionally, the vehicle domain controller includes a HU domain controller, an XCU domain controller, and an FSD domain controller. If any domain controller fails to update, the data migration failure is determined and the information interaction service is unlocked. Further, the traffic scheduling system receives a receipt from the vehicle routing service or monitors that the vehicle modifies the data center address in the GNS system after going online at the target data center (that is, the data center address of the target vehicle in the cloud server is updated to the address of the target data center). Further, the traffic scheduling system sends a first indication message to the application based on the pre-built temporary information channel to instruct the application to update the address of the target data center, so as to enable the target application to perform subsequent vehicle control operations in the target data center, and finally deletes the unlocking of the information interaction service of the target vehicle, and clears the temporary information channel.
[0110] Optionally, the entire data migration process in the disclosed embodiment is triggered and executed by the traffic scheduling system in the cloud server. Any process node needs to obtain a receipt and determine whether to continue data migration based on the receipt. For example, the process node for the first data migration, the process node for the second data migration, the process node for determining whether the target vehicle / cloud server supports data migration in the initial data center, and the process node for determining whether the cloud server / target vehicle / application successfully updates the address of the target data center. In some implementations, in order to improve the timeliness and accuracy of data migration, the time between the triggering process node and the receipt of the process node is obtained. If the time is greater than a preset threshold, the data migration failure is confirmed and the data migration process ends.
[0111] In the disclosed embodiments, by performing data migration under different vehicle states, vehicle data migration can be performed accurately and efficiently to avoid data transmission errors. By performing local access to vehicle services through data migration, the availability and scalability limitations of a single data center can be avoided, the efficiency and disaster recovery capabilities of the service can be improved, and network latency can be reduced.
[0112] Figure 5 FIG. 1 is a block diagram of a data migration device applicable to a vehicle according to an exemplary embodiment. Figure 5 , a data migration device 500 applicable to a vehicle comprises:
[0113] A determination module 510, configured to determine a target data center to be migrated in response to an initial data center of a target vehicle supporting data migration;
[0114] A first migration module 520, configured to obtain first vehicle data in the initial data center at a current moment, and migrate the first vehicle data to a target data center;
[0115] The locking module 530 is used to lock the information interaction service of the target vehicle in response to the completion of the first vehicle data migration, so as to control the information interaction state of the target vehicle to be a locked state;
[0116] A second migration module 540, configured to obtain the newly added second vehicle data in addition to the first vehicle data in the initial data center, and migrate the second vehicle data to the target data center;
[0117] The updating module 550 is used to determine the address of the target data center in response to the completion of the migration of the second vehicle data, and update the data center address of the target vehicle to the address of the target data center.
[0118] In some implementations, the second migration module 540 is further configured to:
[0119] Recording a first timestamp when the first vehicle data is acquired, and a second timestamp when the information interaction service of the target vehicle is locked;
[0120] The vehicle data newly added by the initial data center between the first timestamp and the second timestamp is obtained as the second vehicle data.
[0121] In some implementations, the locking module 530 is further configured to:
[0122] Test whether the GNS system is normal from the http query interface;
[0123] In response to the GNS system being normal, testing whether the locking function is normal, the locking function is used to lock / unlock the information interaction service of the target vehicle;
[0124] In response to the locking function being normal, it is determined that data migration of the second vehicle data is supported.
[0125] In some implementations, the update module 550 is further configured to:
[0126] A first indication message is sent to the target vehicle and an application associated with the target vehicle, where the first indication message is used to instruct the target vehicle and the application to update their respective data center addresses to the address of the target data center.
[0127] In some implementations, the update module 550 is further configured to:
[0128] receiving a second indication message sent by the target vehicle, where the second indication message is used to indicate that the target vehicle has completed updating of the data center address;
[0129] receiving a third indication message sent by an application associated with the target vehicle, where the third indication message is used to indicate that the application has completed updating of a data center address;
[0130] In response to the target vehicle and the application completing the update of the data center address, the information interaction service of the target vehicle is unlocked.
[0131] In some implementations, the determination module 510 is further configured to:
[0132] Construct a temporary information channel and transmit the interactive information between the target vehicle and the data migration process based on the temporary information channel.
[0133] In some implementations, the determination module 510 is further configured to:
[0134] Acquire multiple attribute information of the target vehicle, the multiple attribute information including the model of the target vehicle, the vehicle status, and the version of the application associated with the target vehicle;
[0135] In response to the target vehicle being a multi-domain controller vehicle, the vehicle state being an online state, and the version of an application associated with the target vehicle being a preset version, it is determined that the initial data center of the target vehicle supports data migration.
[0136] In the disclosed embodiment, first vehicle data in the initial data center at the current moment is obtained, and the first vehicle data is migrated to the target data center; in response to completion of the migration of the first vehicle data, the information interaction service of the target vehicle is locked to control the information interaction state of the target vehicle to a locked state; newly added second vehicle data in addition to the first vehicle data in the initial data center is obtained, and the second vehicle data is migrated to the target data center. By performing data migration under different states of the vehicle, vehicle data migration can be performed accurately and efficiently. Local access to vehicle services is performed through data migration, which can avoid the limitations of availability and scalability of a single data center, improve service efficiency and disaster recovery capabilities, and reduce network latency.
[0137] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0138] Figure 6 6 is a block diagram of an apparatus 600 according to an exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0139] Reference Figure 6, the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0140] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0141] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0142] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0143] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0144] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0145] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0146] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0147] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0148] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0149] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0150] Figure 7 is a block diagram of a data migration device 700 for a vehicle according to an exemplary embodiment. For example, the device 700 may be provided as a server. Figure 7 , the apparatus 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions, such as an application, that can be executed by the processing component 722. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute the instructions to perform the above method.
[0151] The device 700 may also include a power supply component 726 configured to perform power management of the device 700, a wired or wireless network interface 750 configured to connect the device 700 to a network, and an input / output (I / O) interface 758. The device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0152] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0153] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data migration method applicable to a vehicle, characterized in that: include: In response to the initial data center of the target vehicle supporting data migration, determining a target data center to be migrated; Acquire the first vehicle data in the initial data center at the current moment, and migrate the first vehicle data to the target data center; In response to completion of the migration of the first vehicle data, locking the information interaction service of the target vehicle to control the information interaction state of the target vehicle to be a locked state; Acquire newly added second vehicle data in addition to the first vehicle data in the initial data center, and migrate the second vehicle data to the target data center; In response to the completion of the migration of the second vehicle data, the address of the target data center is determined, and the data center address of the target vehicle is updated to the address of the target data center.
2. The method according to claim 1, characterized in that The acquiring the newly added second vehicle data in addition to the first vehicle data in the initial data center includes: Recording a first timestamp when the first vehicle data is acquired, and a second timestamp when the information interaction service of the target vehicle is locked; The vehicle data newly added by the initial data center between the first timestamp and the second timestamp is obtained as the second vehicle data.
3. The method according to claim 1 or 2, characterized in that: Before locking the information interaction service of the target vehicle, the method further includes: Test whether the global network service GNS system is normal through the query interface of the hypertext transfer protocol http; In response to the GNS system being normal, testing whether a locking function is normal, the locking function being used to lock / unlock the information interaction service of the target vehicle; In response to the locking function being normal, it is determined that data migration of the second vehicle data is supported.
4. The method according to claim 3, characterized in that After updating the data center address of the target vehicle to the address of the target data center, the method further includes: A first indication message is sent to the target vehicle and an application associated with the target vehicle, wherein the first indication message is used to instruct the target vehicle and the application to update their respective data center addresses to the address of the target data center.
5. The method according to claim 4, characterized in that After sending the first indication message to the target vehicle and the application associated with the target vehicle, the method further includes: receiving a second indication message sent by the target vehicle, wherein the second indication message is used to indicate that the target vehicle has completed the update of the data center address; receiving a third indication message sent by an application associated with the target vehicle, wherein the third indication message is used to indicate that the application has completed updating of a data center address; In response to the target vehicle and the application completing the update of the data center address, the information interaction service of the target vehicle is unlocked.
6. The method according to claim 1, characterized in that Before acquiring the first vehicle data in the initial data center at the current moment, the method further includes: A temporary information channel is constructed, and interactive information between the target vehicle and the target vehicle is transmitted during the data migration process based on the temporary information channel.
7. The method according to claim 1, characterized in that Before determining the target data center to be migrated, the method further includes: Acquire multiple attribute information of the target vehicle, wherein the multiple attribute information includes the vehicle series, vehicle status, and version of an application associated with the target vehicle; In response to the target vehicle being a multi-domain controller vehicle, the vehicle status being an online status, and the version of an application associated with the target vehicle being a preset version, it is determined that the initial data center of the target vehicle supports data migration.
8. A data migration device suitable for a vehicle, characterized in that: include: A determination module, configured to determine a target data center to be migrated in response to an initial data center of a target vehicle supporting data migration; A first migration module, used for acquiring first vehicle data in the initial data center at a current moment, and migrating the first vehicle data to the target data center; A locking module, configured to lock the information interaction service of the target vehicle in response to completion of the migration of the first vehicle data, so as to control the information interaction state of the target vehicle to be a locked state; A second migration module, configured to obtain newly added second vehicle data in addition to the first vehicle data in the initial data center, and migrate the second vehicle data to the target data center; An updating module is used to determine the address of the target data center in response to completion of the migration of the second vehicle data, and to update the data center address of the target vehicle to the address of the target data center.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data migration method applicable to a vehicle as claimed in any one of claims 1 to 7. 10 . A computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data migration method applicable to a vehicle as claimed in any one of claims 1 to 7.
