CN112559245A - Data migration method and device for intelligent gateway, server and storage medium - Google Patents

Data migration method and device for intelligent gateway, server and storage medium Download PDF

Info

Publication number
CN112559245A
CN112559245A CN202011388045.2A CN202011388045A CN112559245A CN 112559245 A CN112559245 A CN 112559245A CN 202011388045 A CN202011388045 A CN 202011388045A CN 112559245 A CN112559245 A CN 112559245A
Authority
CN
China
Prior art keywords
gateway
migration
data
data migration
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011388045.2A
Other languages
Chinese (zh)
Inventor
李树彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202011388045.2A priority Critical patent/CN112559245A/en
Publication of CN112559245A publication Critical patent/CN112559245A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application provides a data migration method, a device, a server and a storage medium for an intelligent gateway, wherein the data migration method for the intelligent gateway responds to a data migration request; determining a source gateway and a target gateway to be migrated according to the data migration request; acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway; and if the migration identification information meets the data migration condition, migrating the data of the source gateway to the target gateway, and then migrating the data of the gateway by the user when the gateway is replaced without configuration of the user.

Description

Data migration method and device for intelligent gateway, server and storage medium
Technical Field
The application relates to the technical field of intelligent home, in particular to a data migration method, a data migration device, a data migration server and a storage medium for an intelligent gateway.
Background
Nowadays, smart homes are used by more and more users. In the smart home system, a gateway is an important link for connecting each smart device. When the old gateway is damaged, it is often necessary to replace the new gateway. And the new gateway is required to be reconfigured by the user when the data in the old gateway is re-entered into the new gateway, so that the operation is complicated.
Disclosure of Invention
In view of the above problems, embodiments of the present application provide a data migration method and apparatus for an intelligent gateway, a server, and a storage medium, so as to solve the above technical problems.
The embodiment of the application is realized by adopting the following technical scheme:
in a first aspect, some embodiments of the present application provide a data migration method for an intelligent gateway, the method including responding to a data migration request; determining a source gateway and a target gateway to be migrated according to the data migration request; acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway; and if the migration identification information meets the data migration condition, migrating the data of the source gateway to the target gateway.
In a second aspect, some embodiments of the present application further provide a data migration apparatus for an intelligent gateway, where the apparatus includes a request response module, a gateway determination module, an identifier obtaining module, and a data migration module; the request response module is used for responding to the data migration request; the gateway determining module is used for determining a source gateway and a target gateway to be migrated according to the data migration request; the identification acquisition module is used for acquiring migration identification information of the target gateway, and the migration identification information is used for indicating the historical data migration condition of the target gateway; and the data migration module is used for migrating the data of the source gateway to the target gateway if the migration identification information meets the data migration condition.
In a third aspect, an embodiment of the present application further provides a server, which includes a processor and a memory, where the memory stores computer program instructions, and the computer program instructions, when called by the processor, execute the data migration method of the intelligent gateway.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and when the program code is executed by a processor, the method for migrating data of an intelligent gateway is performed.
According to the data migration method, the device, the server and the storage medium of the intelligent gateway, the data migration method of the intelligent gateway responds to the data migration request; determining a source gateway and a target gateway to be migrated according to the data migration request; acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway; and if the migration identification information meets the data migration condition, migrating the data of the source gateway to the target gateway, and then migrating the data of the gateway by the user when the gateway is replaced without configuration of the user.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flowchart of a data migration method for an intelligent gateway according to an embodiment of the present application.
Fig. 2 is a schematic flowchart illustrating a data migration method of another intelligent gateway according to an embodiment of the present application.
Fig. 3 shows a schematic flow chart of step S280 in fig. 2.
Fig. 4 shows another flowchart of a data migration method for an intelligent gateway according to an embodiment of the present application.
Fig. 5 shows a block diagram of a data migration apparatus of an intelligent gateway according to an embodiment of the present application.
Fig. 6 shows a block diagram of modules of a server according to an embodiment of the present application.
Fig. 7 illustrates a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
With the continuous progress of the intelligent home technology and the continuous pursuit of people on the quality of life, the intelligent home serving as one of the applications of the internet of things is bound to become a basic form of the future home, and has a wide market application prospect. Based on the idea of internet of things, smart home devices are intended to activate various devices (such as video and audio systems, lighting systems, air conditioning systems, security systems, computer devices, security systems, heating and cooling systems, etc.) of home life, which are also called smart home devices, and are associated with sensors and communication networks to combine the smart home devices and home environment into a smart home system for people.
Nowadays, smart homes are used by more and more users. In the smart home system, a gateway is an important link for connecting each smart device. When the old gateway is damaged, it is often necessary to replace the new gateway. And the new gateway is required to be reconfigured by the user when the data in the old gateway is re-entered into the new gateway, so that the operation is complicated.
The inventor provides a data migration method, a device, a server and a storage medium of an intelligent gateway through long-term research, wherein the data migration method of the intelligent gateway responds to a data migration request; determining a source gateway and a target gateway to be migrated according to the data migration request; acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway; and if the migration identification information meets the data migration condition, migrating the data of the source gateway to the target gateway, and then migrating the data of the gateway by the user when the gateway is replaced without configuration of the user.
As shown in fig. 1, fig. 1 is a data migration method 100 of an intelligent gateway provided in this embodiment of the present application, where the data migration method 100 of the intelligent gateway may include the following steps S110 to S140.
Step S110: in response to the data migration request.
In this embodiment, a data migration request of a user is responded.
Step S120: and determining a source gateway and a target gateway to be migrated according to the data migration request.
The source gateway to be migrated is also the old gateway needing data migration; the target gateway is also a new gateway which needs to receive the migration data. In this embodiment, the source gateway and the target gateway may be determined according to a data migration request of a user. Further, a user can select a source gateway and a target gateway in the mobile terminal, and when the user selects the source gateway and the target gateway, the source gateway and the target gateway to be migrated are determined according to a data migration request triggered by the user.
Step S130: and acquiring the migration identification information of the target gateway.
The migration identification information is used to indicate a history data migration condition of the gateway, and the migration identification information of the target gateway is also used to indicate a history data migration condition of the target gateway. In this embodiment, the history data migration condition may refer to, but is not limited to, whether the gateway has undergone data migration, the number of times the gateway has undergone data migration, and the role of the gateway in history migration.
Step S140: and if the migration identification information meets the data migration condition, migrating the data of the source gateway to the target gateway.
In this embodiment, the data migration condition may be, but is not limited to, that the target gateway has not undergone data migration, specifically, the target gateway history neither migrates data as a source gateway nor receives migration data of other source gateways as a target gateway.
When the migration identification information of the target gateway meets the data migration condition, it indicates that the target gateway can perform the data migration, and at this time, the data of the source gateway can be migrated to the target gateway.
According to the data migration method of the intelligent gateway, the data migration request is responded; determining a source gateway and a target gateway to be migrated according to the data migration request; acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway; and if the migration identification information meets the data migration condition, migrating the data of the source gateway to the target gateway, and then migrating the data of the gateway by the user when the gateway is replaced without configuration of the user.
As shown in fig. 2, fig. 2 shows another data migration method 200 for an intelligent gateway provided in the embodiment of the present application, where the data migration method 200 for an intelligent gateway may include the following steps S210 to S300.
Step S210: in response to the data migration request.
In this embodiment, a data migration request of a user is responded.
Step S220: and determining a source gateway and a target gateway to be migrated according to the data migration request.
The source gateway to be migrated is also the old gateway needing data migration; the target gateway is also a new gateway which needs to receive the migration data. In this embodiment, the source gateway and the target gateway may be determined according to a data migration request of a user. Further, a user can select a source gateway and a target gateway in the mobile terminal, and when the user selects the source gateway and the target gateway, the source gateway and the target gateway to be migrated are determined according to a data migration request triggered by the user. Further, the source gateway and the target gateway may be under the same account of the user.
Step S230: and acquiring the migration identification information of the target gateway.
The migration identification information is used for indicating the historical data migration condition of the gateway. When a gateway undergoes data migration, the gateway may be tagged with a migration identification. Specifically, in the process of data migration, migration identifiers may be respectively marked on the source gateway and the target gateway, and the migration identifiers also indicate that the source gateway and the target gateway undergo data migration once.
The migration identification information may include whether the gateway has the migration identification. In this embodiment, migration identification information of the target gateway of the data migration is obtained. Further, migration identification information of the source gateway of the data migration can be obtained.
Step S240: and judging whether the migration identification information meets the data migration condition.
In this embodiment, the data migration condition may be, but is not limited to, that the gateway has not undergone data migration. And judging whether the migration identification information of the target gateway meets the data migration condition, namely judging whether the target gateway is not used as a source gateway to migrate data in the historical data migration or not, and is not used as the target gateway to receive the migration data of other source gateways. When the migration identification information of the target gateway meets the data migration condition, the target gateway of the data migration can perform the data migration.
Further, it may also be determined whether the migration identification information of the source gateway meets the data migration condition, that is, whether the source gateway has not been used as the source gateway to migrate data in the history data migration process, or has not been used as the target gateway to receive the migration data of other source gateways. When the migration identification information of the source gateway meets the data migration condition, the source gateway of the data migration can perform the data migration.
Further, if the migration identification information of the target gateway and the migration identification information of the source gateway both satisfy the data migration condition, it indicates that both the target gateway and the source gateway of the data migration can perform data migration, and at this time, step S250 may be continuously executed; if any one of the migration identification information of the target gateway and the migration identification information of the source gateway does not meet the data migration condition, the data migration cannot be smoothly performed, and at this time, the data migration failure can be judged, and the user is prompted through the mobile terminal.
Step S250: and acquiring the network connection state of the source gateway.
In this embodiment, if the migration identification information of the target gateway and the migration identification information of the source gateway both satisfy the data migration condition, the data migration may be started. When the data migration is started, the network connection state of the source gateway of the data migration can be acquired.
Step S260: and judging whether the network connection state is in a connection state or a disconnection state.
In this embodiment, it may be determined whether the network state of the source gateway of the data migration is in a connected state or a disconnected state. I.e., whether the source gateway is currently in an online state or an offline state.
Further, when the gateway is online, the gateway will synchronize its up-to-date data to the server. Therefore, if the source gateway in the data migration is currently in an online state, which indicates that the latest data of the source gateway is synchronized to the server, the data migration may migrate the latest data of the source gateway to the target gateway, and at this time, step S280 may be continuously performed; if the source gateway in the data migration is currently in an offline state, which indicates that the latest data of the source gateway may not be synchronized to the server, the data migration may not be able to migrate the latest data of the source gateway to the target gateway, and at this time, step S270 may be executed.
Step S270: and sending migration confirmation information to the mobile terminal, receiving selection information sent by the mobile terminal and made by a user according to the migration confirmation information, and executing data migration to the target gateway according to the selection information.
In this embodiment, if the network connection state of the source gateway is in the disconnected state, the migration determination information may be sent to the mobile terminal, the selection information sent by the mobile terminal and made by the user according to the migration determination information is received, and the data migration to the target gateway is performed according to the selection information.
Specifically, migration confirmation information is sent to the mobile terminal of the user to inquire whether the user continues to perform data migration while the source gateway is offline. If the user selects according to the migration confirmation information, the data migration to the target gateway can be executed according to the selection information sent by the mobile terminal and made by the user according to the migration confirmation information. If the user selects to continue data migration, the data device can be continuously migrated to the target gateway according to the selection information; if the user selects to cancel the data migration, the data migration can be terminated according to the selection information.
Further, if the selection information sent by the mobile terminal and made by the user according to the migration confirmation information is not received within the preset selection time, the data migration can be directly terminated. In other words, if the user does not make a selection to continue data migration while the source gateway is offline within the specified preset selection time, the data migration may be terminated by default to ensure the integrity of the data migration.
Further, the migration confirmation information may further include data synchronization information of the source gateway. The data synchronization information may include a current data synchronization progress and a data synchronization status of the source gateway. This makes it possible for the user to more easily select whether or not to continue data migration.
Step S280: and migrating the data of the source gateway to the target gateway.
In this embodiment, if the network connection state of the source gateway is in the connection state, the data of the source gateway may be migrated to the target gateway. When data migration is performed, migration identifiers can be marked on a source gateway and a target gateway of the data migration, and the migration identifiers indicate that the source gateway and the target gateway have undergone data migration once.
Further, when the data of the source gateway is migrated to the target gateway, backup may be performed according to the latest data of the source gateway.
In this embodiment, the step S280 may be specifically as shown in fig. 3, and the data of the source gateway may be migrated to the target gateway through the steps S281 to S282 in fig. 3.
Step S281: and replacing the first data identification of the source gateway with the second data identification of the target gateway.
In this embodiment, in order to distinguish data of different gateways, the data of the source gateway is marked by a first data identifier, and the data of the target gateway is marked by a second data identifier; that is, the first data identification is used for marking the data synchronized in the server by the source gateway, and the second data identification is used for marking the data synchronized in the server by the target gateway. In the process of migrating the data of the source gateway to the target gateway, replacing the first data identifier of the source gateway with the second data identifier of the target gateway, so that the data of the source gateway is changed into the data of the target gateway.
In a specific implementation scenario, if the first data of the source gateway is marked as a, the data of the source gateway is identified by a; the second data of the target gateway is identified as B, i.e. the data of the target gateway is identified with B. In the process of migrating the data of the source gateway to the target gateway, the first data identifier a is replaced by a second data identifier B, that is, the data of the source gateway is also identified by B, and at this time, the data of the source gateway is changed into the data of the target gateway.
Step S282: and sending the data to the target gateway according to the second data identifier.
In this embodiment, after replacing the first data identifier of the source gateway with the second data identifier of the destination gateway, the source gateway may send the data of the source gateway to the destination gateway according to the second data identifier. Because the data of the source gateway has been identified by the second data identifier, that is, the data of the source gateway has been identified as the data of the target gateway, the data of the source gateway can be sent to the target gateway according to the second data identifier, so as to complete the data migration from the source gateway to the target gateway.
Further, in the process of sending the data of the source gateway to the destination gateway, current data synchronization information may be sent to the mobile terminal of the user to display the progress of current data migration to the user on the mobile terminal. Meanwhile, a virtual key for canceling the migration, which can be operated by a user, is generated on the mobile terminal, and when the virtual key is operated by the user, the data migration can be terminated according to a migration canceling instruction sent by the mobile terminal.
Step S290: and receiving migration result information sent by the target gateway.
In this embodiment, after receiving the data migrated by the source gateway, the target gateway may send migration result information to the server, and the server may receive the migration result information sent by the target gateway.
As shown in fig. 4, in some embodiments, step S290 may be replaced with step S291.
Step S291: and judging whether migration result information is received within preset time.
The preset time server waits for receiving the time of the target gateway sending the migration result information, and if the server does not receive the migration result information sent by the target gateway within the preset time, the data migration failure can be directly judged; if the server receives the migration result information sent by the target gateway within the preset time, step S300 may be continuously executed, and the data migration result is determined according to the migration result information.
In other words, if the target gateway does not send the migration result information within the specified preset time, it may be considered that an error occurs in the migration process or the network is not smooth, and at this time, it may be determined that the data migration has failed this time, so as to avoid affecting the time of the user. It should be noted that it is determined that the data migration is failed, that is, the data migration is terminated. If the target gateway sends the migration result information within the specified preset time, the migration result of the data migration can be considered according to the migration result.
Step S300: and determining the migration result of the data according to the migration result information.
In this embodiment, the migration result of the data migration may be determined according to the migration result information sent by the target gateway. The migration result includes migration success and migration failure. In some embodiments, if the server receives migration result information sent by the target gateway within a preset time, the server determines a data migration result according to the migration result information.
Further, if the target gateway receives migration data of all the source gateways, migration result information indicating that the migration is successful may be sent to the server, and the server may determine that the data migration is successful according to the migration result information. If an error occurs in the migration process, the target gateway may send migration result information for indicating the failure of the migration to the server, and the server may determine that the data migration is failed according to the migration result information.
Further, when the data migration is successful, a migration success prompt message may be sent to the mobile terminal of the user to prompt the user that the migration is successful. Meanwhile, if the source gateway is in an online state, that is, if the network connection state of the source gateway is in a connection state, the local data in the source gateway can be cleared, and the source gateway can be restored to factory settings.
When the data migration fails or is terminated in the data migration process, if the source gateway is online, the source gateway is reset and the source gateway data in the server is also cleared, and if the source gateway is offline, the source gateway is reset and the source gateway data in the server is also cleared when the source gateway is online again, so that the data in the source gateway can be restored according to the backup data of the source gateway in the server.
Further, when the data migration fails or is terminated in the data migration process, a migration failure prompt message may be sent to the mobile terminal of the user to prompt the user that the migration fails. Meanwhile, the migration identifiers of the source gateway and the target gateway in the data migration process can be cleared. And when the migration identifiers of the source gateway and the target gateway are removed, the source gateway and the target gateway can be migrated for the next time.
It should be noted that, when the migration is successful, the migration identifiers of the source gateway and the target gateway are not cleared, that is, the source gateway and the target gateway in the data migration process cannot be used as the target gateway to be subjected to the next data migration by another source gateway, and the target gateway in the data migration process cannot be used as the source gateway to be subjected to the next data migration. Further, the target gateway may be migrated by the same source gateway multiple times, that is, the target gateway in the data migration process may be migrated by the source gateway in the data migration process multiple times.
According to the data migration method of the intelligent gateway, the data migration request is responded; determining a source gateway and a target gateway to be migrated according to the data migration request; acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway; and if the migration identification information meets the data migration condition, migrating the gateway data of the source gateway to the target gateway, and then migrating the gateway data by the user when the gateway is replaced without configuration of the user.
As shown in fig. 5, fig. 5 illustrates a data migration apparatus 300 of an intelligent gateway according to an embodiment of the present application, where the data migration apparatus 300 of the intelligent gateway includes a request response module 310, a gateway determination module 320, an identification obtaining module 330, and a data migration module 340. Wherein, the request response module 310 is configured to respond to the data migration request; the gateway determining module 320 is configured to determine a source gateway and a target gateway to be migrated according to the data migration request; the identifier obtaining module 330 is configured to obtain migration identifier information of the target gateway; the data migration module 340 is configured to migrate the data of the source gateway to the target gateway if the migration identification information meets the data migration condition.
In some embodiments, the data migration module 340 includes a first determination unit 341, a status acquisition unit 342, a second determination unit 343, a user confirmation unit 344, and a data migration unit 345. The first determining unit 341 is configured to determine whether the migration identification information satisfies the data migration condition; the state obtaining unit 342 is configured to obtain a network connection state of the source gateway; the second determining unit 343 is configured to determine whether the network connection state is a connected state or a disconnected state; the user confirmation unit 344 is configured to send migration confirmation information to the mobile terminal, receive selection information sent by the mobile terminal and made by a user according to the migration confirmation information, and perform data migration to the target gateway according to the selection information; the data migration unit 345 is configured to migrate data of the source gateway to the target gateway.
In some embodiments, the data migration unit 345 includes an identification replacement unit 3451 and a data transmission unit 3452. The identifier replacing unit 3451 is configured to replace the first data identifier of the source gateway with the second data identifier of the target gateway; the data sending unit 3452 is configured to send data to the target gateway according to the second data identifier.
In some embodiments, the data migration apparatus 300 further includes a result receiving module 350, a time judging module 360, and a result determining module 370. The result receiving module 350 is configured to receive migration result information sent by the target gateway; the time judgment module 360 is configured to judge whether migration result information is received within a preset time; the result determining module 370 is configured to determine a migration result of the data according to the migration result information.
The embodiment of the application provides a data migration device of an intelligent gateway, which responds to a data migration request; determining a source gateway and a target gateway to be migrated according to the data migration request; acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway; and if the migration identification information meets the data migration condition, migrating the gateway data of the source gateway to the target gateway, and then migrating the gateway data by the user when the gateway is replaced without configuration of the user.
As shown in fig. 6, fig. 6 illustrates a block diagram of a server 400 according to an embodiment of the present application, where the server 400 includes a processor 410 and a memory 420, and the memory 420 stores program instructions, and the program instructions, when executed by the processor 410, implement the data migration method of the intelligent gateway described above.
Processor 410 may include one or more processing cores. The processor 410 interfaces with various components within the overall battery management system using various interfaces and lines to perform various functions of the battery management system and to process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 420 and invoking data stored in the memory 420. Alternatively, the processor 410 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 410 may integrate one or more of a Central Processing Unit (CPU) 410, a Graphics Processing Unit (GPU) 410, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 410, but may be implemented by a communication chip.
The Memory 420 may include a Random Access Memory (RAM) 420 or a Read-Only Memory (Read-Only Memory) 420. The memory 420 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 420 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area can also store data (such as a phone book, audio and video data, chatting record data) created by the electronic device map in use and the like.
As shown in fig. 7, an embodiment of the present application further provides a computer-readable storage medium 500, where computer program instructions 510 are stored in the computer-readable storage medium 500, and the computer program instructions 510 can be called by a processor to execute the method described in the above embodiment.
The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-volatile computer-readable storage medium. The computer-readable storage medium 600 has storage space for program code for performing any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
Although the present application has been described with reference to the preferred embodiments, it is to be understood that the present application is not limited to the disclosed embodiments, but rather, the present application is intended to cover various modifications, equivalents and alternatives falling within the spirit and scope of the present application.

Claims (10)

1. An intelligent gateway data migration method is characterized by comprising the following steps:
responding to a data migration request;
determining a source gateway and a target gateway to be migrated according to the data migration request; and
acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway;
and if the migration identification information meets the data migration condition, migrating the data of the source gateway to the target gateway.
2. The intelligent gateway data migration method of claim 1, wherein the method further comprises;
receiving migration result information sent by the target gateway; and
and determining the migration result of the data according to the migration result information.
3. The intelligent gateway data migration method of claim 1, wherein the method further comprises:
if migration result information sent by the target gateway is received within preset time, determining a migration result of the data according to the migration result information;
and if the migration result information is not received within the preset time, judging that the data migration fails.
4. The intelligent gateway data migration method according to claim 2 or 3, wherein the migrating the data of the source gateway to the target gateway if the migration identification information satisfies the data migration condition includes:
if the migration identification information meets the data migration condition, acquiring the network connection state of the source gateway;
if the network connection state is in a connection state, executing migration of data of a source gateway to the target gateway;
and if the network connection state is in a disconnected state, sending migration confirmation information to the mobile terminal, receiving selection information sent by the mobile terminal and made by a user according to the migration confirmation information, and executing migration of the data to the target gateway according to the selection information.
5. The intelligent gateway data migration method of claim 4, wherein the method further comprises: and backing up the data of the source gateway, and restoring the data of the source gateway according to the backup when the data migration failure is judged.
6. The intelligent gateway data migration method of claim 4, wherein the method further comprises: and marking migration identifications for the source gateway and the target gateway, and clearing the migration identifications for the source gateway and the target gateway when judging that the data migration fails.
7. The intelligent gateway data migration method according to claim 1, wherein the migrating the data of the source gateway to the target gateway specifically includes:
replacing the first data identification of the source gateway with the second data identification of the target gateway;
and sending the data to the target gateway according to the second data identifier.
8. An intelligent gateway data migration apparatus, characterized in that the intelligent gateway data migration apparatus comprises:
a request response module for responding to the data migration request;
the gateway determining module is used for determining a source gateway and a target gateway to be migrated according to the data migration request; and
the identification acquisition module is used for acquiring migration identification information of the target gateway, wherein the migration identification information is used for indicating the historical data migration condition of the target gateway;
and the data migration module is used for migrating the data of the source gateway to the target gateway if the migration identification information meets the data migration condition.
9. A server, comprising a processor and a memory, wherein the memory stores computer program instructions, and the computer program instructions, when called by the processor, execute the intelligent gateway data migration method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing program code, wherein the program code when executed by a processor performs the intelligent gateway data migration method of any one of claims 1 to 7.
CN202011388045.2A 2020-12-01 2020-12-01 Data migration method and device for intelligent gateway, server and storage medium Pending CN112559245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011388045.2A CN112559245A (en) 2020-12-01 2020-12-01 Data migration method and device for intelligent gateway, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011388045.2A CN112559245A (en) 2020-12-01 2020-12-01 Data migration method and device for intelligent gateway, server and storage medium

Publications (1)

Publication Number Publication Date
CN112559245A true CN112559245A (en) 2021-03-26

Family

ID=75047423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011388045.2A Pending CN112559245A (en) 2020-12-01 2020-12-01 Data migration method and device for intelligent gateway, server and storage medium

Country Status (1)

Country Link
CN (1) CN112559245A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022343A (en) * 2022-06-17 2022-09-06 阿里云计算有限公司 Object migration method, device and equipment
WO2024037439A1 (en) * 2022-08-17 2024-02-22 维沃移动通信有限公司 Computing power task migration method and apparatus, and device
CN115022343B (en) * 2022-06-17 2024-05-24 阿里云计算有限公司 Object migration method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370505A1 (en) * 2014-06-20 2015-12-24 Ca, Inc. Performing Online Data Migration With Concurrent Active User Access to the Data
CN109791522A (en) * 2017-09-05 2019-05-21 华为技术有限公司 Method, system and the intelligent network adapter of Data Migration
CN110399356A (en) * 2019-06-14 2019-11-01 阿里巴巴集团控股有限公司 A kind of online data moving method, calculates equipment and storage medium at device
CN111767167A (en) * 2020-04-30 2020-10-13 深圳市欧瑞博科技股份有限公司 Method, system, server and storage medium for migrating gateway data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370505A1 (en) * 2014-06-20 2015-12-24 Ca, Inc. Performing Online Data Migration With Concurrent Active User Access to the Data
CN109791522A (en) * 2017-09-05 2019-05-21 华为技术有限公司 Method, system and the intelligent network adapter of Data Migration
CN110399356A (en) * 2019-06-14 2019-11-01 阿里巴巴集团控股有限公司 A kind of online data moving method, calculates equipment and storage medium at device
CN111767167A (en) * 2020-04-30 2020-10-13 深圳市欧瑞博科技股份有限公司 Method, system, server and storage medium for migrating gateway data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022343A (en) * 2022-06-17 2022-09-06 阿里云计算有限公司 Object migration method, device and equipment
CN115022343B (en) * 2022-06-17 2024-05-24 阿里云计算有限公司 Object migration method, device and equipment
WO2024037439A1 (en) * 2022-08-17 2024-02-22 维沃移动通信有限公司 Computing power task migration method and apparatus, and device

Similar Documents

Publication Publication Date Title
CN107493212B (en) Configuration processing method, terminal, server and system of intelligent household equipment
CN111190747A (en) Message loss detection method and device for message queue
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
CN111866063B (en) Online updating system, method and device for AI algorithm of industrial Internet of things
CN108880972B (en) Information processing method, server and terminal
CN112714426B (en) Intelligent upgrading method and device of Bluetooth equipment, electronic equipment and medium
CN113691404A (en) Network repairing method and device of intelligent equipment and intelligent gateway
CN110824948A (en) Intelligent household control method and device based on IOT virtual service
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
EP3506599B1 (en) Method for synchronizing contact information, apparatus and medium
CN104243602A (en) User information synchronizing device, system and method
CN113691935A (en) Network optimization method and device and electronic equipment
CN111767167A (en) Method, system, server and storage medium for migrating gateway data
CN112559245A (en) Data migration method and device for intelligent gateway, server and storage medium
CN112492030B (en) Data storage method, device, computer equipment and storage medium
CN112333295A (en) Multipath connection method and device, electronic equipment and storage medium
CN111917886B (en) Intelligent device data migration method and device and intelligent device
CN115835370A (en) Network distribution method, device, equipment and medium for intelligent equipment
CN115442228A (en) Business logic processing method, device, electronic device, storage medium and system
CN104301423A (en) Heartbeat message sending method, device and system
CN114726711A (en) Method and system for cooperative processing service between devices
CN109743379B (en) Multi-protocol distributed message service system based on communication between servers
CN110177364B (en) Bluetooth device pairing connection method and device, storage medium and electronic device
CN108076116B (en) Intelligent reading method and system based on cloud storage data
CN106776119A (en) The method for restarting of Service Instance, device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination