CN114827172A - Data migration method and device based on Internet of things and electronic equipment - Google Patents

Data migration method and device based on Internet of things and electronic equipment Download PDF

Info

Publication number
CN114827172A
CN114827172A CN202210334028.3A CN202210334028A CN114827172A CN 114827172 A CN114827172 A CN 114827172A CN 202210334028 A CN202210334028 A CN 202210334028A CN 114827172 A CN114827172 A CN 114827172A
Authority
CN
China
Prior art keywords
internet
things
application system
data
equipment
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
CN202210334028.3A
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.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Cloud Computing 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 Alibaba Cloud Computing Ltd filed Critical Alibaba Cloud Computing Ltd
Priority to CN202210334028.3A priority Critical patent/CN114827172A/en
Publication of CN114827172A publication Critical patent/CN114827172A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The application provides a data migration method and device based on the Internet of things and electronic equipment, and relates to the technical field of Internet big data and cloud computing. The method comprises the following steps: in response to a data migration request sent by an application control terminal, determining the Internet of things equipment to be migrated, and migrating equipment associated data of the Internet of things equipment from a first application system to a second application system; and acquiring migration state information, and sending the migration state information to an application server of the equipment associated data, wherein the migration state information is used for indicating the application server to modify a first application system to which the Internet of things equipment belongs into a second application system. According to the embodiment of the application, the damage to the service caused by data migration can be avoided, and the quality of the service provided by the Internet of things platform is improved.

Description

Data migration method and device based on Internet of things and electronic equipment
Technical Field
The application relates to the technical field of internet big data and cloud computing, in particular to a data migration method and device based on the internet of things and electronic equipment.
Background
Data migration is generally migration between databases, and data synchronization is performed in a specific manner. In the scene of the internet of things, there is also a demand that stock data needs to be migrated, for example, data migration, application system upgrade configuration, application system capacity expansion, cross-region disaster tolerance, and the like of the internet of things equipment connected to the internet of things platform between different application systems. Different from traditional data migration, data migration in the scene of the internet of things relates to more data types, more data are related to equipment, and different platforms and application scenes are spanned by different users, so that the data migration in the scene of the internet of things is easy to cause service damage and influences the quality of service provided by the platform of the internet of things.
Disclosure of Invention
The application provides a data migration method and device based on the Internet of things and electronic equipment, so that the service damage caused by data migration is avoided, and the quality of service provided by an Internet of things platform is improved.
On one hand, the application provides a data migration method based on the internet of things, which is applied to an internet of things platform for providing an application system, and comprises the following steps:
in response to a data migration request sent by an application control terminal, determining the Internet of things equipment to be migrated, and migrating equipment associated data of the Internet of things equipment from a first application system to a second application system; the Internet of things equipment provides service for the application terminal based on the application system;
and acquiring migration state information, and sending the migration state information to an application server of the equipment associated data, wherein the migration state information is used for indicating the application server to modify a first application system to which the Internet of things equipment belongs into a second application system.
On the other hand, the application provides a data migration method based on the internet of things, which is applied to an application server connected with an internet of things platform providing an application system, and comprises the following steps:
receiving a device control instruction sent by an application terminal, and determining the Internet of things device corresponding to the device control instruction; the Internet of things equipment provides service for the application terminal based on the application system;
and under the condition that the device association data of the Internet of things device is determined to be migrated from the first application system to the second application system based on the migration state information sent by the Internet of things platform, calling an interface from the Internet of things platform based on an interface calling mode corresponding to the second application system, and controlling the Internet of things device based on the interface.
On the other hand, the application provides a data migration device, is applied to the thing networking platform that provides application system, includes:
the data migration module is used for responding to a data migration request sent by the application control terminal, determining the Internet of things equipment to be migrated, and migrating the equipment associated data of the Internet of things equipment from the first application system to the second application system; the Internet of things equipment provides service for the application terminal based on the application system;
and the state sending module is used for acquiring the migration state information and sending the migration state information to the application server of the equipment associated data, wherein the migration state information is used for indicating the application server to modify the first application system to which the Internet of things equipment belongs into a second application system.
On the other hand, the application provides a data migration device, is applied to the application server who is connected with the thing networking platform that provides application system, includes:
the instruction receiving module is used for receiving the equipment control instruction sent by the application terminal and determining the Internet of things equipment corresponding to the equipment control instruction; the Internet of things equipment provides service for the application terminal based on the application system;
the interface calling module is used for calling an interface from the Internet of things platform based on an interface calling mode corresponding to the second application system and controlling the Internet of things equipment based on the interface under the condition that the migration state information sent by the Internet of things platform determines that the equipment associated data of the Internet of things equipment is migrated from the first application system to the second application system.
In another aspect, the present application provides an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of any of the embodiments of the present application.
In another aspect, the present application provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform a method in any of the embodiments of the present application.
The application provides a data migration method and device based on the Internet of things and electronic equipment, wherein an Internet of things platform responds to a data migration request sent by an application control terminal and migrates equipment associated data of the Internet of things equipment from a first application system to a second application system; in the data migration process, the internet of things platform indicates the application system to which the internet of things equipment belongs to the application server through the migration state information, so that the application server provides services to the application server based on the application system to which the internet of things equipment belongs, damage to the services caused by data migration is avoided, and the quality of the services provided by the internet of things platform is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic diagram of a system architecture of a data migration method based on the internet of things according to an embodiment of the present application;
fig. 2 is a flowchart of a data migration method based on the internet of things according to an embodiment of the present application;
fig. 3 is a flowchart of a data migration method based on the internet of things in an embodiment of the present application;
fig. 4 is a schematic diagram of a data migration method based on the internet of things according to an embodiment of the present application;
fig. 5 is a schematic diagram of a monitoring process of a data migration method based on the internet of things according to an embodiment of the present application;
fig. 6 is a schematic diagram of a data migration method based on the internet of things in an embodiment of the present application;
fig. 7 is a schematic diagram of a data migration method based on the internet of things in an embodiment of the present application;
fig. 8 is a schematic diagram of a data migration apparatus based on the internet of things according to an embodiment of the present application;
fig. 9 is a schematic diagram of a data migration apparatus based on the internet of things according to an embodiment of the present application;
FIG. 10 is a block diagram of an electronic device used to implement embodiments of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application to assist in understanding, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to more clearly show the data migration method based on the internet of things provided in the embodiment of the present application, an application scenario of the data migration method based on the internet of things provided in the embodiment of the present application is first introduced.
Fig. 1 is a schematic diagram of a system architecture of a data migration method based on the internet of things according to an embodiment of the present application. As shown in fig. 1, an application control end 11 sends a data migration request to an internet of things platform 12, the internet of things platform 12 determines an internet of things device 15 to be migrated, and migrates device-related data of the internet of things device 15 from a first application system to a second application system; the internet of things platform 12 acquires the migration state information, sends the migration state information to the application server 13 of the device associated data, and the application server 13 modifies the first application system to which the internet of things device 15 belongs into the second application system according to the migration state information. After the gray scale migration is completed, the application control terminal 11 configures a subscription message group by using the device associated data after the gray scale migration, and the application service terminal 13 restarts the service client according to the subscription message group. The application server 13 receives the device control instruction sent by the application terminal 14, and determines that the internet of things device corresponding to the device control instruction is the internet of things device 15; the application server 13 calls an interface from the internet of things platform 12 based on an interface calling mode corresponding to the second application system, and sends the device control instruction to the internet of things device 15 so as to control the internet of things device 15 after data migration, and the internet of things device 15 sends the device associated data to the internet of things platform 12.
An embodiment of the present application provides a data migration method based on the internet of things, and fig. 2 is a flowchart of the data migration method based on the internet of things according to an embodiment of the present application, where the method may be applied to a data migration device, and the device may be deployed in a server or other electronic devices. Additionally, in some possible implementations, the method may also be implemented by a processor invoking computer readable instructions stored in a memory.
As shown in fig. 2, the data migration method based on the internet of things provided in the embodiment of the present application includes:
step S201, responding to a data migration request sent by an application control terminal, determining Internet of things equipment to be migrated, and migrating equipment associated data of the Internet of things equipment from a first application system to a second application system; the Internet of things equipment provides service for the application terminal based on the application system;
step S202, acquiring migration state information, and sending the migration state information to an application server of the device associated data, wherein the migration state information is used for indicating the application server to modify a first application system to which the Internet of things device belongs into a second application system.
The method in the embodiment can be applied to an internet of things platform for providing the application system, and the internet of things equipment provides service for the application terminal based on the application system. The internet of things platform can be a cloud platform for providing internet of things services, and receives equipment association data sent by the internet of things equipment. The application end is a user end for providing service by using the application server end and is an actual use end of the device associated data. The application end sends an equipment control instruction to the application server end, determines the equipment to be controlled according to the equipment control instruction, inquires the application system to which the equipment belongs, and sends the control instruction to the corresponding Internet of things equipment through the corresponding application system in the Internet of things platform, so that the equipment is controlled. That is to say, the service object of the internet of things platform is the application server, and the service object of the application server is the application server.
After receiving the data migration request sent by the application control terminal, the internet of things platform determines the internet of things equipment to be migrated according to the data migration request, executes a data migration task, and migrates the equipment associated data of the internet of things equipment from the first application system to the second application system.
The first application system and the second application system can be systems for providing corresponding services of the internet of things, and can achieve management functions of resources such as products, equipment and rules provided by the platform of the internet of things. Wherein the device association data may include: the metadata information of the device infrastructure, such as product definition, device tag, device group, etc., may also include attribute information generated during device runtime, and rule engine data, etc. Where a product may be a collection of devices, it generally refers to a group of devices having the same functionality. The Internet of things platform supports the establishment of equipment groups, the equipment groups can contain equipment belonging to different products, and cross-product management equipment can be performed through the equipment groups. The Internet of things platform is compatible with different access addresses of the Internet of things equipment, and the equipment is prevented from burning new access addresses again.
The migration state information may represent an execution state of the data migration process, for example, the migration is completed, and the migration state information further includes a system identifier of the application system after the data migration, and after receiving the migration state information, the application server modifies the system identifier of the application system to which the internet of things device belongs to the system identifier of the second application system. After the data migration is completed, the Internet of things equipment provides services for the application terminal based on the second application system.
In the data migration method based on the internet of things provided by the embodiment, the internet of things platform responds to the data migration request sent by the application control terminal, and migrates the device-associated data of the internet of things device from the first application system to the second application system; in the data migration process, the internet of things platform indicates the application system to which the internet of things equipment belongs to the application server through the migration state information, so that the application server provides services to the application server based on the application system to which the internet of things equipment belongs, damage to the services caused by data migration is avoided, and the quality of the services provided by the internet of things platform is improved.
Before data migration, the data migration may be evaluated according to a pre-configured evaluation template, and an influence of the data migration on providing a service is evaluated. The functional dimensions provided by the user can be evaluated from the internet of things platform. Such as script parsing, file uploading, firmware upgrading, packet management, device control, data streaming, etc.
When data migration is performed, a migration policy may be configured in advance, and evaluation is performed according to the migration policy, which is specifically shown in the following embodiment:
in a possible implementation manner, in step S201, migrating device association data of the internet of things device from the first application system to the second application system, includes:
determining a migration strategy corresponding to the data type in the device associated data;
migrating the device associated data from the first application system to the second application system according to the determined migration policy;
wherein the data type includes at least one of:
device data, product data, rules engine data.
In practical application, different migration strategies are configured in advance for different data types, and data migration is performed through the different migration strategies, so that damage to services can be avoided. Wherein, the migration strategy comprises: duplication, deletion of newly added files, etc. For example, the device data may employ a replicated migration policy, and the rules engine data may employ a delete added migration policy.
Wherein the device data may include: device definitions, device tags, device groupings, and attribute information generated during device runtime. The product data may include product definitions and the like. The rules engine data may include data related to the rules engine, data related to rules generated by the rules engine, and the like.
In addition, when data migration is performed, gray scale migration may be performed first, and then full scale migration may be performed, as shown in the following example:
in a possible implementation manner, in step S201, migrating device association data of the internet of things device from the first application system to the second application system, includes:
determining the Internet of things equipment subjected to gray level migration in the Internet of things equipment to be migrated according to the gray level strategy of data migration;
and migrating the equipment associated data of the grayscale migrated internet-of-things equipment from the first application system to the second application system.
In practical application, according to a pre-configured gray scale strategy, a part of device-associated data can be migrated first, the accuracy of data migration is verified, and then full migration is performed, so that the data migration is ensured not to cause service damage. The gray level strategy can select a part of the Internet of things equipment to be migrated as the gray level migrated Internet of things equipment according to the requirements of a user, and can also configure the gray level strategy according to the actual needs of an application scene to determine the gray level migrated Internet of things equipment and migrate the equipment associated data of the gray level migrated Internet of things equipment from the first application system to the second application system.
In a possible implementation manner, determining, according to a grayscale policy of data migration, a grayscale migrated internet of things device in an internet of things device to be migrated includes:
determining the Internet of things equipment subjected to gray level migration in the Internet of things equipment to be migrated based on the gray level migration equipment list; or
And determining the gray level migrated Internet of things equipment in the to-be-migrated Internet of things equipment based on the position information of the to-be-migrated equipment.
In practical application, the internet of things equipment subjected to gray scale migration can be determined in the internet of things equipment to be migrated according to a gray scale migration equipment list sent by an application control terminal, the gray scale migration equipment list comprises equipment identifications of the plurality of gray scale migration internet of things equipment, and the gray scale migration of internet of things equipment is determined according to the equipment identifications. In addition, the device of the internet of things with the gray scale migration can be determined based on the position information of the device to be migrated, for example, the device to be migrated with the position in the area a is determined as the device of the internet of things with the gray scale migration. It should be noted that the internet of things equipment subjected to gray level migration may also be determined in the internet of things equipment to be migrated according to other characteristic information of the equipment to be migrated, which is not limited in the present application.
After the gray scale migration is completed, the application control end configures a subscription message group by using the equipment associated data of the gray scale migration, and the application server restarts the application client according to the subscription message group. And then, the application control terminal initiates full transfer, filters out the Internet of things equipment with gray scale transfer, and transfers the equipment associated data of other Internet of things equipment from the first application system to the second application system.
In one possible implementation, the method further includes:
after the device association data is migrated from the first application system to the second application system, switching connection between the internet of things device and the first application system into connection between the internet of things device and the second application system;
and acquiring new equipment associated data of the equipment of the Internet of things based on the second application system.
In practical application, after data migration is completed, the internet of things platform is disconnected from the device to be migrated based on the first application system, when the internet of things device is connected with the internet of things platform again, the internet of things platform is connected with the device to be migrated based on the second application system through the routing device, and new device-related data reported by the internet of things device is received based on the second application system.
In one possible implementation, the method further includes:
and correspondingly processing the abnormal data migration process based on the migration state information.
In practical application, the migration state information may further include heartbeat information in the migration task execution process, and if the data migration process is abnormal, the data migration task is pulled up again if the data migration task fails, and the task execution is retried if the task execution is abnormal.
In one possible implementation, the method further includes:
aggregating the device association data of the Internet of things device based on the first application system to obtain first aggregated data;
aggregating the device association data of the Internet of things device based on the second application system to obtain second aggregated data;
and sending the first aggregation data and the second aggregation data to an application control end so that the application control end monitors the running state of the Internet of things equipment.
In practical application, in the data migration process, in order to avoid loss of the device associated data in the migration process and monitoring of the internet of things device, the device associated data are aggregated according to each application system respectively according to a preset time period, and then the aggregated data are sent to the application control end for storage.
An embodiment of the present application provides a data migration method based on the internet of things, and fig. 3 is a flowchart of the data migration method based on the internet of things according to an embodiment of the present application, where the method may be applied to a data migration device, and the device may be deployed in a server or other electronic devices. Additionally, in some possible implementations, the method may also be implemented by the processor invoking computer readable instructions stored in the memory.
As shown in fig. 3, the data migration method based on the internet of things provided in the embodiment of the present application includes:
step S301, receiving a device control instruction sent by an application terminal, and determining Internet of things equipment corresponding to the device control instruction; the Internet of things equipment provides service for the application terminal based on the application system;
step S302, under the condition that the device associated data of the Internet of things device is determined to be migrated from the first application system to the second application system based on the migration state information sent by the Internet of things platform, an interface is called from the Internet of things platform based on an interface calling mode corresponding to the second application system, and the Internet of things device is controlled based on the interface.
The method in the embodiment can be applied to an application server connected with an internet of things platform providing an application system, and the internet of things equipment provides services to the application server through the application server based on the application system.
The application end is a user end which provides service for using the application server end and is an actual use end of the device associated data. The application end sends an equipment control instruction to the application server end, determines the equipment to be controlled according to the equipment control instruction, inquires the application system to which the equipment belongs, and sends the control instruction to the corresponding Internet of things equipment through the corresponding application system in the Internet of things platform, so that the equipment is controlled. That is to say, the service object of the internet of things platform is the application server, and the service object of the application server is the application server.
The application server receives the equipment control instruction sent by the application terminal, determines the Internet of things equipment corresponding to the equipment control instruction, inquires the system identification of the application system to which the Internet of things equipment belongs, and if the application server receives the migration state information corresponding to the Internet of things equipment sent by the Internet of things platform, the migration state information shows that the equipment associated data of the Internet of things equipment is migrated from the first application system to the second application system, the system identification of the application system to which the Internet of things equipment belongs is modified into the system identification of the second application system. And calling an interface from the Internet of things platform, sending the system identification of the second application system to the Internet of things platform, and controlling the Internet of things equipment based on the second application system in the Internet of things platform.
If the application server side does not receive the migration state information corresponding to the internet of things equipment sent by the internet of things platform, the fact that the equipment associated data of the internet of things equipment is not migrated from the first application system to the second application system is indicated, and the application system to which the internet of things equipment belongs is the first application system. And calling an interface from the Internet of things platform, so that the system identification does not need to be sent to the Internet of things platform, and the Internet of things equipment is controlled based on the first application system in the Internet of things platform.
In the data migration method based on the internet of things provided by this embodiment, the application server receives the device control instruction sent by the application terminal, and determines the internet of things device corresponding to the device control instruction; and under the condition that the device association data of the Internet of things device is determined to be migrated from the first application system to the second application system based on the migration state information sent by the Internet of things platform, calling an interface from the Internet of things platform based on an interface calling mode corresponding to the second application system, and controlling the Internet of things device based on the interface. In the data migration process, the application service side determines an application system to which the Internet of things equipment belongs on the basis of migration state information sent by the Internet of things platform, and controls the Internet of things equipment on the basis of the application system to which the Internet of things equipment after data migration belongs, so that damage to services caused by data migration is avoided, and the quality of services provided by the Internet of things platform is improved.
In one possible implementation, the method further includes:
and receiving the migration state information sent by the Internet of things platform, and modifying the first application system to which the Internet of things equipment belongs into a second application system based on the migration state information.
In practical application, after the device associated data of the internet of things device is migrated from the first application system to the second application system, the application server receives migration state information sent by the internet of things platform, and modifies a system identifier of a system to which the internet of things device belongs to a system identifier of the second application system based on a device identifier of the internet of things device and a system identifier of the second application system in the internet of things state information.
In one possible implementation, the method further includes:
receiving device association data of the Internet of things device belonging to the first application system and device association data of the Internet of things device belonging to the second application system, wherein the device association data are sent by the Internet of things platform.
In practical application, in the data migration process, in order to avoid loss of the device associated data and monitoring of the internet of things device in the migration process, the application control end receives and stores the device associated data, which is sent by the internet of things platform and belongs to the first application system, of the internet of things device and the device associated data, which belongs to the second application system, of the internet of things device, so that service is provided for the application end. Meanwhile, the application control end can monitor the running state of the equipment of the internet of things according to the equipment association data in each application system, for example, whether the equipment of the internet of things is on line or not, whether the equipment of the internet of things runs normally or not and the like.
Fig. 4 is a schematic view of a data migration method based on the internet of things according to an embodiment of the present application, where in this embodiment, a data migration system is deployed on a platform of the internet of things. The first application system is a public instance and the second application system is an enterprise instance. 1. And triggering data migration by the application server. 2. A data migration task is created. 2.1 different data plug-ins perform data export tasks, exporting data from a common instance. 2.2 different data plug-ins perform data import tasks, importing data into enterprise instances. Wherein the state machine manages the data migration state. And the state machine asynchronously submits a data migration task to the task frame, and the task executes a data migration plug-in to export data from the public instance and import data from the enterprise instance according to different data migration sequences. The migrated Internet of things equipment associated data are product data and equipment data. The product data migration plug-in, the equipment data migration plug-in, the rule engine migration plug-in and the attribute data migration plug-in respectively migrate data of corresponding data types.
Fig. 5 is a schematic diagram of a monitoring process of the data migration method based on the internet of things according to an embodiment of the present application. In this embodiment, the first application system is a system a, the second application system is a system B, the data migration system, the system a, and the system B are deployed on an internet of things platform, and the state of task execution is persistently stored in a Relational Database Service (RDS). Migration state data of the device is stored in an Open structured data Service (OTS). The operation in the migration process can print logs and collect the logs into a Simple Log Service (SLS) of cloud products. The system A and the system B are used for counting the online quantity and the message quantity of the equipment of the Internet of things, printing the statistics into a log and collecting the statistics through a product SLS. Data of different dimensions are calculated and aggregated through a rendering engine Blink. The online amount and the message number of the equipment are calculated, a data migration task is aggregated once per minute according to product dimensionality, a key operation log is aggregated once per minute according to error codes, data after error information aggregation is counted per minute, and the data are synchronously sent to cloud monitoring. The application control end can inquire the online quantity and the message number of the Internet of things equipment belonging to different systems. And the development end of the data migration system can display the aggregated data through a visualization tool Grafana, and meanwhile, an alarm is configured to monitor the execution condition of the data migration task.
Fig. 6 is a schematic diagram of a data migration method based on the internet of things according to an embodiment of the present application. In this embodiment, the first application system is shown as system a, and the second application system is shown as system B. The Application end is an Application program (APP) shown in the figure, and the Application server end is a client system C shown in the figure. And the Internet of things equipment is accessed to the system A in a long connection mode. And the Internet of things equipment receives control data sent by the Internet of things platform based on the system A. The APP receives a control instruction input by a user to control the Internet of things equipment, and the client system C is called to perform authentication, charging and the like. Client system C then makes a service call based on system a, sending control data to the device. After the device association data of the internet of things device is migrated from the system a to the system B, the internet of things device is connected to the system B. And receiving a service calling instruction input by a user through the APP, and calling the service by the client system C based on the system B to control the equipment of the Internet of things.
Fig. 7 is a schematic diagram of a data migration method based on the internet of things according to an embodiment of the present application. In this example, the first application system is a public instance and the second application system is an enterprise instance. Before data migration, an application terminal initiates a control command to an application server terminal, the application server terminal calls an interface to an Internet of things platform, a public instance in the Internet of things platform is accessed through a cloud gateway, and Internet of things equipment connected with the Internet of things platform is controlled through the public instance. And the application control terminal initiates instance migration, firstly carries out gray scale migration, and migrates the equipment associated data of the Internet of things equipment subjected to gray scale migration from the public instance to the enterprise instance. And the Internet of things platform sends the migration state information to the application server, and the application server modifies the equipment instance information of the Internet of things equipment, namely modifies the instance ID of the equipment into the enterprise instance ID. The application control end configures a new Advanced Message Queuing Protocol (AMQP) and a server subscription consumption group, and the application server restarts the application. After the gray level migration is completed, the application control terminal initiates instance migration to perform full migration, and after the migration is completed, the Internet of things platform disconnects the Internet of things equipment connected based on the public instance and connects the Internet of things equipment to the enterprise instance. When the application server sends the control command to the application server again, the application server calls the interface in the interface calling mode based on the enterprise instance, transmits the enterprise instance ID, calls the Internet of things equipment through the enterprise instance, and controls the Internet of things equipment.
Fig. 8 is a schematic diagram of a data migration apparatus based on the internet of things in an embodiment of the present application. As shown in fig. 8, the data migration apparatus based on the internet of things may include:
the data migration module 801 is configured to determine, in response to a data migration request sent by an application control end, an internet of things device to be migrated, and migrate device-related data of the internet of things device from a first application system to a second application system; the Internet of things equipment provides service for the application terminal based on the application system;
the state sending module 802 is configured to obtain migration state information, and send the migration state information to an application server of the device-associated data, where the migration state information is used to instruct the application server to modify a first application system to which the internet of things device belongs to a second application system.
The data migration apparatus based on the internet of things provided by this embodiment migrates the device-related data of the device of the internet of things from the first application system to the second application system in response to the data migration request sent by the application control terminal; in the data migration process, the application system to which the Internet of things equipment belongs is indicated to the application server through the migration state information, so that the application server provides services to the application terminal based on the application system to which the Internet of things equipment belongs, damage to the services caused by data migration is avoided, and the quality of the services provided by the Internet of things platform is improved.
In one possible implementation manner, the data migration module 801, when migrating the device association data of the internet of things device from the first application system to the second application system, is configured to:
determining a migration strategy corresponding to the data type in the device associated data;
migrating the device associated data from the first application system to the second application system according to the determined migration policy;
wherein the data type includes at least one of:
device data, product data, rules engine data.
In one possible implementation manner, when migrating the device association data of the internet of things device from the first application system to the second application system, the data migration module 801 is configured to:
determining the Internet of things equipment subjected to gray level migration in the Internet of things equipment to be migrated according to the gray level strategy of data migration;
and migrating the equipment associated data of the grayscale migrated internet-of-things equipment from the first application system to the second application system.
In a possible implementation manner, when determining the internet of things device subjected to gray level migration in the internet of things devices to be migrated according to the gray level policy of data migration, the data migration module 801 is configured to:
determining the Internet of things equipment subjected to gray level migration in the Internet of things equipment to be migrated based on the gray level migration equipment list; or
And determining the gray level migrated Internet of things equipment in the to-be-migrated Internet of things equipment based on the position information of the to-be-migrated equipment.
In a possible implementation manner, the apparatus further includes a switching module, configured to:
after the device association data is migrated from the first application system to the second application system, switching connection between the internet of things device and the first application system into connection between the internet of things device and the second application system;
and acquiring new equipment associated data of the equipment of the Internet of things based on the second application system.
In one possible implementation manner, the apparatus further includes an exception handling module configured to:
and correspondingly processing the abnormal data migration process based on the migration state information.
In one possible implementation manner, the apparatus further includes an aggregation module configured to:
aggregating the device association data of the Internet of things device based on the first application system to obtain first aggregated data;
aggregating the device association data of the Internet of things device based on the second application system to obtain second aggregated data;
and sending the first aggregation data and the second aggregation data to an application control end so that the application control end monitors the running state of the Internet of things equipment.
Fig. 9 is a schematic diagram of a data migration apparatus based on the internet of things in an embodiment of the present application. Be applied to the application server that is connected with the thing networking platform that provides application system, data migration device based on the thing networking includes:
the instruction receiving module 901 is configured to receive an equipment control instruction sent by an application end, and determine an internet of things equipment corresponding to the equipment control instruction; the Internet of things equipment provides service for the application terminal based on the application system;
the interface calling module 902 is configured to, when it is determined that the device-related data of the internet of things device is migrated from the first application system to the second application system based on the migration state information sent by the internet of things platform, call an interface from the internet of things platform based on an interface calling manner corresponding to the second application system, and control the internet of things device based on the interface.
The data migration device based on the internet of things provided by this embodiment receives an equipment control instruction sent by an application end, and determines an internet of things equipment corresponding to the equipment control instruction; and under the condition that the device association data of the Internet of things device is determined to be migrated from the first application system to the second application system based on the migration state information sent by the Internet of things platform, calling an interface from the Internet of things platform based on an interface calling mode corresponding to the second application system, and controlling the Internet of things device based on the interface. In the data migration process, an application system to which the Internet of things equipment belongs is determined based on migration state information sent by the Internet of things platform, and the Internet of things equipment is controlled based on the application system to which the Internet of things equipment after data migration belongs, so that damage to services caused by data migration is avoided, and the quality of services provided by the Internet of things platform is improved.
In one possible implementation, the apparatus further includes a modification module configured to:
and receiving the migration state information sent by the Internet of things platform, and modifying the first application system to which the Internet of things equipment belongs into a second application system based on the migration state information.
In a possible implementation manner, the apparatus further includes a receiving module configured to:
receiving device association data of the Internet of things device belonging to the first application system and device association data of the Internet of things device belonging to the second application system, wherein the device association data are sent by the Internet of things platform.
The functions of each unit, module, or sub-module in each apparatus in the embodiment of the present application may refer to the corresponding description in the above method embodiment, and are not described herein again.
According to another aspect of the present application, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of any of the embodiments of the present application.
According to another aspect of the present application, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any of the embodiments of the present application.
FIG. 10 is a block diagram of an electronic device used to implement embodiments of the present application. As shown in fig. 10, the electronic apparatus includes: a memory 1010 and a processor 1020, the memory 1010 having stored therein computer programs operable on the processor 1020. The processor 1020, when executing the computer program, implements the method in the embodiments described above. The number of the memory 1010 and the processor 1020 may be one or more.
The electronic device further includes:
and a communication interface 1030, configured to communicate with an external device, and perform data interactive transmission.
If the memory 1010, the processor 1020, and the communication interface 1030 are implemented independently, the memory 1010, the processor 1020, and the communication interface 1030 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
Optionally, in an implementation, if the memory 1010, the processor 1020, and the communication interface 1030 are integrated on a chip, the memory 1010, the processor 1020, and the communication interface 1030 may communicate with each other through an internal interface.
Embodiments of the present application provide a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the computer program implements the method provided in the embodiments of the present application.
The embodiment of the present application further provides a chip, where the chip includes a processor, and is configured to call and execute the instruction stored in the memory from the memory, so that the communication device in which the chip is installed executes the method provided in the embodiment of the present application.
An embodiment of the present application further provides a chip, including: the system comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method provided by the embodiment of the application.
It should be understood that the processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be an advanced reduced instruction set machine (ARM) architecture supported processor.
Further, optionally, the memory may include a read-only memory and a random access memory, and may further include a nonvolatile random access memory. The memory may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may include a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the present application are generated in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present application includes other implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the method of the above embodiments may be implemented by hardware that is configured to be instructed to perform the relevant steps by a program, which may be stored in a computer-readable storage medium, and which, when executed, includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module may also be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present application, and these should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A data migration method based on the Internet of things is applied to an Internet of things platform providing an application system, and comprises the following steps:
in response to a data migration request sent by an application control terminal, determining the Internet of things equipment to be migrated, and migrating equipment associated data of the Internet of things equipment from a first application system to a second application system; the Internet of things equipment provides service for the application terminal based on the application system;
acquiring migration state information, and sending the migration state information to an application server of the device associated data, wherein the migration state information is used for indicating the application server to modify the first application system to which the internet of things device belongs into the second application system.
2. The method of claim 1, wherein migrating the device association data of the internet of things device from the first application system to the second application system comprises:
determining a migration strategy corresponding to the data type in the equipment associated data;
migrating the device association data from the first application system to the second application system according to the determined migration policy;
wherein the data type comprises at least one of:
device data, product data, rules engine data.
3. The method of claim 1, wherein migrating the device association data of the internet of things device from the first application system to the second application system comprises:
determining the Internet of things equipment subjected to gray level migration in the Internet of things equipment to be migrated according to a gray level strategy of data migration;
and migrating the equipment associated data of the grayscale migrated internet-of-things equipment from the first application system to the second application system.
4. The method according to claim 3, wherein the determining, according to the grayscale policy of data migration, a grayscale migrated internet-of-things device in the internet-of-things devices to be migrated comprises:
determining the Internet of things equipment subjected to gray level migration in the Internet of things equipment to be migrated based on a gray level migration equipment list; or
And determining the Internet of things equipment subjected to gray level migration in the Internet of things equipment to be migrated based on the position information of the equipment to be migrated.
5. The method of claim 1, further comprising:
after migrating the device association data from the first application system to the second application system, switching connection of the internet of things device with the first application system to connection of the internet of things device with the second application system;
and acquiring new equipment associated data of the Internet of things equipment based on the second application system.
6. The method of claim 1, further comprising:
and correspondingly processing the abnormal data migration process based on the migration state information.
7. The method of claim 1, further comprising:
aggregating the Internet of things equipment based on the equipment associated data of the first application system to obtain first aggregated data;
aggregating the Internet of things equipment based on the equipment associated data of the second application system to obtain second aggregated data;
and sending the first aggregation data and the second aggregation data to the application control end so that the application control end monitors the running state of the Internet of things equipment.
8. The data migration method based on the Internet of things is applied to an application server connected with an Internet of things platform providing an application system, and comprises the following steps:
receiving an equipment control instruction sent by an application end, and determining the Internet of things equipment corresponding to the equipment control instruction; the Internet of things equipment provides services for the application terminal based on the application system;
and under the condition that the device associated data of the Internet of things device is determined to be migrated from a first application system to a second application system based on the migration state information sent by the Internet of things platform, calling an interface from the Internet of things platform based on an interface calling mode corresponding to the second application system, and controlling the Internet of things device based on the interface.
9. The method of claim 8, further comprising:
and receiving the migration state information sent by the Internet of things platform, and modifying a first application system to which the Internet of things equipment belongs into a second application system based on the migration state information.
10. The method of claim 8, further comprising:
and receiving equipment association data, sent by the Internet of things platform, of the Internet of things equipment belonging to a first application system and equipment association data, sent by the Internet of things platform, of the Internet of things equipment belonging to a second application system.
11. The utility model provides a data migration device based on thing networking which characterized in that is applied to the thing networking platform that provides application system, includes:
the data migration module is used for responding to a data migration request sent by the application control terminal, determining the Internet of things equipment to be migrated, and migrating the equipment associated data of the Internet of things equipment from the first application system to the second application system; the Internet of things equipment provides services for the application terminal based on the application system;
the state sending module is used for obtaining migration state information and sending the migration state information to an application server of the equipment associated data, wherein the migration state information is used for indicating the application server to modify the first application system to which the internet of things equipment belongs into the second application system.
12. The utility model provides a data migration device based on thing networking which characterized in that is applied to the application server side that is connected with the thing networking platform that provides application system, includes:
the instruction receiving module is used for receiving an equipment control instruction sent by an application end and determining the Internet of things equipment corresponding to the equipment control instruction; the Internet of things equipment provides services for the application terminal based on the application system;
and the interface calling module is used for calling an interface from the Internet of things platform based on an interface calling mode corresponding to the second application system and controlling the Internet of things equipment based on the interface under the condition that the migration state information sent by the Internet of things platform determines that the equipment associated data of the Internet of things equipment is migrated from the first application system to the second application system.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-10.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-10.
CN202210334028.3A 2022-03-30 2022-03-30 Data migration method and device based on Internet of things and electronic equipment Pending CN114827172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210334028.3A CN114827172A (en) 2022-03-30 2022-03-30 Data migration method and device based on Internet of things and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210334028.3A CN114827172A (en) 2022-03-30 2022-03-30 Data migration method and device based on Internet of things and electronic equipment

Publications (1)

Publication Number Publication Date
CN114827172A true CN114827172A (en) 2022-07-29

Family

ID=82532152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210334028.3A Pending CN114827172A (en) 2022-03-30 2022-03-30 Data migration method and device based on Internet of things and electronic equipment

Country Status (1)

Country Link
CN (1) CN114827172A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868998A (en) * 2012-09-14 2013-01-09 中国联合网络通信集团有限公司 Method and device for visiting businesses of internet of things
CN103475512A (en) * 2013-09-02 2013-12-25 中国联合网络通信集团有限公司 Internet of Things remote management platform migration method, device and Internet of Things terminal
US20160088049A1 (en) * 2013-05-06 2016-03-24 Convida Wireless, Llc Internet of things (iot) adaptation services
CN112153098A (en) * 2019-06-28 2020-12-29 华为技术有限公司 Application migration method and device
CN113220660A (en) * 2021-04-15 2021-08-06 远景智能国际私人投资有限公司 Data migration method, device and equipment and readable storage medium
CN114090200A (en) * 2021-11-02 2022-02-25 中国联合网络通信集团有限公司 Cross-system application instantiation migration method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868998A (en) * 2012-09-14 2013-01-09 中国联合网络通信集团有限公司 Method and device for visiting businesses of internet of things
US20160088049A1 (en) * 2013-05-06 2016-03-24 Convida Wireless, Llc Internet of things (iot) adaptation services
CN103475512A (en) * 2013-09-02 2013-12-25 中国联合网络通信集团有限公司 Internet of Things remote management platform migration method, device and Internet of Things terminal
CN112153098A (en) * 2019-06-28 2020-12-29 华为技术有限公司 Application migration method and device
CN113220660A (en) * 2021-04-15 2021-08-06 远景智能国际私人投资有限公司 Data migration method, device and equipment and readable storage medium
CN114090200A (en) * 2021-11-02 2022-02-25 中国联合网络通信集团有限公司 Cross-system application instantiation migration method and device

Similar Documents

Publication Publication Date Title
CN108965381B (en) Nginx-based load balancing implementation method and device, computer equipment and medium
CN110535777B (en) Access request control method and device, electronic equipment and readable storage medium
CN105245373B (en) A kind of container cloud platform system is built and operation method
CN107480015B (en) Load testing method, device and system, storage medium and pressure testing server
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
US11347684B2 (en) Rolling back KUBERNETES applications including custom resources
CN104219316A (en) Method and device for processing call request in distributed system
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
CN108733545B (en) Pressure testing method and device
CN110502581B (en) Distributed database system monitoring method and device
CN109714208A (en) A kind of equipment is included in method, storage medium and the electronic equipment of network management
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN113064732A (en) Distributed system and management method thereof
CN114827172A (en) Data migration method and device based on Internet of things and electronic equipment
CN114090268B (en) Container management method and container management system
CN115499514A (en) Data storage service access method, computing device and computer storage medium
CN113157306A (en) Resource packaging management method, device, equipment and storage medium
CN112433875A (en) Middleware-based database operation method and device and terminal equipment
CN112579189A (en) Configuration file updating method and device
CN110716972A (en) Method and device for processing error of high-frequency calling external interface
CN112148513A (en) Dump method and device for single point service data and storage medium
CN110839066A (en) Data processing method and related equipment
CN111241068B (en) Information processing method, device and equipment and computer readable storage medium
CN113076151B (en) Application program interaction method, device, computer equipment and storage medium
CN115866029A (en) Micro-service offline processing method and device, computer equipment and storage medium

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