CN105491165B - The method and device of task immigration between a kind of smart machine - Google Patents
The method and device of task immigration between a kind of smart machine Download PDFInfo
- Publication number
- CN105491165B CN105491165B CN201610040818.5A CN201610040818A CN105491165B CN 105491165 B CN105491165 B CN 105491165B CN 201610040818 A CN201610040818 A CN 201610040818A CN 105491165 B CN105491165 B CN 105491165B
- Authority
- CN
- China
- Prior art keywords
- smart device
- migration
- application
- source
- network
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000013508 migration Methods 0.000 claims abstract description 802
- 230000005012 migration Effects 0.000 claims abstract description 802
- 238000009434 installation Methods 0.000 claims abstract description 72
- 238000012545 processing Methods 0.000 claims description 15
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000012795 verification Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/04—Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
- G06F9/4856—Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例提供了一种智能设备间任务迁移的方法及装置,涉及信息技术领域,用以实现在智能设备间实现方便、快捷地进行应用的迁移,提高用户体验。所述方法包括:获取用户指令,并根据用户指令确定迁移应用;加入迁移网络;在迁移网络中包含有至少一个可能接收迁移的智能设备时,获取至少一个可能接收迁移的智能设备的迁移应用的安装信息;根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备;将源智能设备内的迁移应用的运行信息发送至目标智能设备;在目标智能设备根据运行信息完成源智能设备内的迁移应用的迁移时,接收目标智能设备返回的迁移完成消息。
Embodiments of the present invention provide a method and device for task migration between smart devices, which relate to the field of information technology and are used to realize convenient and fast application migration between smart devices and improve user experience. The method includes: acquiring a user instruction, and determining a migration application according to the user instruction; joining a migration network; when the migration network contains at least one smart device that may receive migration, obtaining the migration application information of at least one smart device that may receive migration Installation information; determine the target smart device according to the installation information of at least one migration application of the smart device that may receive migration and the application information of the migration application of the source smart device; send the operation information of the migration application in the source smart device to the target The smart device: when the target smart device completes the migration of the migration application in the source smart device according to the running information, it receives a migration completion message returned by the target smart device.
Description
技术领域technical field
本发明涉及信息技术领域,尤其涉及一种智能设备间任务迁移的方法及装置。The invention relates to the field of information technology, in particular to a method and device for task migration between smart devices.
背景技术Background technique
随着智能手机和平板电脑的普及,用户通常拥有多个智能设备。越来越多的用户习惯随时随地的通过各种智能设备观看视频、浏览网页等。例如用户在户外行走时通过手机、平板电脑、个人PC等移动终端观看视频,在室内则通过个人计算机等设备观看视频。然而,现有技术中还无法支持用户随心所欲地在各个智能设备间无缝切换当前网络应用,例如用户在路上通过手机观看某个视频,当其进入到具有平板电脑的室内空间时,如到家时,则更希望能将其正在观看的视频切换到该平板电脑上继续观看,以获得更好的观看体验。另一方面,当正在使用的智能设备电量不足时,用户希望将正在运行的应用切换至其他智能设备上,如观看视频或阅读文本等。With the popularity of smartphones and tablets, users often own multiple smart devices. More and more users are used to watching videos and browsing the web through various smart devices anytime, anywhere. For example, users watch videos through mobile terminals such as mobile phones, tablet computers, and personal PCs when walking outdoors, and watch videos through devices such as personal computers indoors. However, the existing technology cannot support users to seamlessly switch current network applications among various smart devices as they wish. , you would prefer to switch the video you are watching to the tablet to continue watching for a better viewing experience. On the other hand, when the power of the smart device being used is low, the user hopes to switch the running application to another smart device, such as watching a video or reading a text.
因此,如何在智能设备间方便、快捷地迁移当前应用,以提升用户的使用体验,成为本领域人员亟需解决的一个问题。Therefore, how to conveniently and quickly migrate current applications between smart devices to improve user experience has become an urgent problem to be solved by those skilled in the art.
发明内容Contents of the invention
本发明的实施例提供一种智能设备间任务迁移的方法及装置,用以实现在智能设备间实现方便、快捷地进行应用的迁移,提高用户体验。Embodiments of the present invention provide a method and device for task migration between smart devices, so as to implement convenient and fast application migration between smart devices and improve user experience.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
本发明实施例提供了一种智能设备间任务迁移的方法,包括:源智能设备获取用户指令,并根据所述用户指令确定迁移应用;所述迁移应用是所述源智能设备中待迁移至其他智能设备中的应用;所述源智能设备加入迁移网络;在所述迁移网络中包含有至少一个可能接收迁移的智能设备时,所述源智能设备获取所述至少一个可能接收迁移的智能设备的迁移应用的安装信息;所述可能接收迁移的智能设备是所述迁移网络中除所述源智能设备之外的智能设备;所述源智能设备根据所述至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备;所述目标智能设备是所述迁移网络中的安装了所述迁移应用,且所述安装的迁移应用兼容所述源智能设备中的迁移应用的智能设备;所述源智能设备将所述源智能设备内的迁移应用的运行信息发送至所述目标智能设备,以便所述目标智能设备根据所述源智能设备内的迁移应用的运行信息运行所述目标智能设备内的迁移应用;所述运行信息是记录所述源智能设备内的迁移应用在所述源智能设备中的运行数据及状态的相关信息;在所述目标智能设备根据所述运行信息完成所述源智能设备内的迁移应用的迁移时,所述源智能设备接收所述目标智能设备返回的迁移完成消息。An embodiment of the present invention provides a method for task migration between smart devices, including: the source smart device obtains user instructions, and determines a migration application according to the user instructions; the migration application is the source smart device to be migrated to other An application in a smart device; the source smart device joins a migration network; when the migration network contains at least one smart device that may receive migration, the source smart device acquires the information of the at least one smart device that may receive migration The installation information of the migration application; the smart device that may receive migration is a smart device other than the source smart device in the migration network; the source smart device is based on the migration of the at least one smart device that may receive migration The installation information of the application and the application information of the migration application of the source smart device determine the target smart device; the target smart device is the migration application installed in the migration network, and the installed migration application is compatible with all The smart device of the migration application in the source smart device; the source smart device sends the running information of the migration application in the source smart device to the target smart device, so that the target smart device The running information of the migration application in the target smart device runs the migration application in the target smart device; the running information is information related to recording the running data and status of the migration application in the source smart device in the source smart device; When the target smart device completes the migration of the migration application in the source smart device according to the running information, the source smart device receives a migration completion message returned by the target smart device.
可选的,所述源智能设备根据所述至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备包括:所述源智能设备根据所述至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备列表;所述目标智能设备列表中记录了所述迁移网络中安装了迁移应用,且所述安装的迁移应用兼容所述源智能设备中的迁移应用的智能设备的设备标识;所述设备标识用于唯一标示出智能设备;所述源智能设备根据所述目标智能设备列表,确定出目标智能设备。Optionally, the source smart device determines that the target smart device includes: the source smart device According to the installation information of the migration application of the at least one smart device that may receive migration, and the application information of the migration application of the source smart device, a target smart device list is determined; the target smart device list records the information in the migration network The migration application is installed, and the installed migration application is compatible with the device identifier of the smart device of the migration application in the source smart device; the device identifier is used to uniquely mark the smart device; the source smart device according to the target List of smart devices to determine the target smart device.
可选的,所述源智能设备加入迁移网络包括:所述源智能设备广播报文;所述报文中携带有所述源智能设备的设备标识和所述源智能设备的网络名;所述源智能设备的网络名是所述源智能设备默认加入的网络名称;在接收到可能接收迁移的智能设备的响应消息时,所述源智能设备确定所述可能接收迁移的智能设备的响应消息中携带的网络名与所述源智能设备的网络名是否相同;若相同,则所述源智能设备根据网络名及预设密码,加入所述可能接收迁移的智能设备所在的网络;若不相同,则所述源智能设备检测历史网络列表,确定所述历史网络列表中是否有与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项;若在所述历史网络列表中有与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项,则所述源智能设备根据所述历史网络列表中的与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项,加入所述可能接收迁移的智能设备所在的网络;并更新网络名。Optionally, the joining of the source smart device into the migration network includes: the source smart device broadcasting a message; the message carrying the device identifier of the source smart device and the network name of the source smart device; The network name of the source smart device is the name of the network that the source smart device joins by default; when receiving the response message from the smart device that may receive migration, the source smart device determines that in the response message from the smart device that may receive migration Whether the network name carried is the same as the network name of the source smart device; if they are the same, the source smart device will join the network where the smart device that may receive migration is located according to the network name and preset password; if they are not the same, Then the source smart device detects the historical network list, and determines whether there is a matching item in the historical network list that matches the network name carried in the response message of the smart device that may receive migration; if in the historical network list If there is a matching item in the network name that matches the network name carried in the response message of the smart device that may receive migration, then the source smart device Matching items that match the network name carried in the message are added to the network where the smart device that may receive migration is located; and the network name is updated.
可选的,所述若不相同,则源智能设备检测历史网络列表,确定所述历史网络列表中是否有与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项包括:若不相同,则源智能设备根据预设网络优先级顺序,检测历史网络列表,确定所述历史网络列表中是否有与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项。Optionally, if not the same, the source smart device checks the historical network list, and determines whether there is a matching item in the historical network list that matches the network name carried in the response message of the smart device that may receive migration Including: if not the same, the source smart device checks the historical network list according to the preset network priority order, and determines whether there is any network name in the historical network list that is consistent with the network name carried in the response message of the smart device that may receive migration. Matched matches.
进一步的,本发明实施例提供了一种智能设备间任务迁移的方法,包括:目标智能设备接收源智能设备发送的所述源智能设备内的迁移应用的运行信息;所述运行信息是记录所述源智能设备内的迁移应用在所述源智能设备中的运行数据及状态的相关信息;所述目标智能设备开启所述目标智能设备内的迁移应用,并根据接收的所述源智能设备内的迁移应用的运行信息,设置所述目标智能设备内的迁移应用的相关参数;在所述目标智能设备内的迁移应用根据设置的所述迁移应用的相关参数运行时,所述目标智能设备向所述源智能设备发送迁移完成消息。Further, the embodiment of the present invention provides a method for task migration between smart devices, including: the target smart device receives the running information of the migration application in the source smart device sent by the source smart device; the running information is recorded Information about the running data and state of the migration application in the source smart device in the source smart device; the target smart device starts the migration application in the target smart device, and according to the received information in the source smart device The running information of the migration application, and set the relevant parameters of the migration application in the target smart device; when the migration application in the target smart device runs according to the set relevant parameters of the migration application, the target smart device sends The source smart device sends a migration completion message.
进一步的,本发明实施例提供了一种智能设备间任务迁移的装置,应用于源智能设备,包括:处理单元,用于获取用户指令,并根据所述用户指令确定迁移应用;所述迁移应用是所述源智能设备中待迁移至其他智能设备中的应用;所述处理单元,还用于加入迁移网络;获取单元,用于在所述迁移网络中包含有至少一个可能接收迁移的智能设备时,获取所述至少一个可能接收迁移的智能设备的迁移应用的安装信息;所述可能接收迁移的智能设备是所述迁移网络中除所述源智能设备之外的智能设备;确定单元,用于根据所述获取单元获取的所述至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备;所述目标智能设备是所述迁移网络中的安装了迁移应用,且所述安装的迁移应用兼容所述源智能设备中的迁移应用的智能设备;发送单元,用于将所述源智能设备内的迁移应用的运行信息发送至所述目标智能设备,以便所述目标智能设备根据所述源智能设备内的迁移应用的运行信息运行所述目标智能设备内的迁移应用;所述运行信息是记录所述源智能设备内的迁移应用在所述源智能设备中的运行数据及状态的相关信息;接收单元,用于在所述目标智能设备根据所述运行信息完成所述源智能设备内的迁移应用的迁移时,接收所述目标智能设备返回的迁移完成消息。Further, an embodiment of the present invention provides an apparatus for task migration between smart devices, which is applied to a source smart device, including: a processing unit, configured to obtain a user instruction, and determine a migration application according to the user instruction; the migration application It is an application in the source smart device to be migrated to other smart devices; the processing unit is also used to join the migration network; the acquisition unit is used to include at least one smart device that may receive migration in the migration network , acquire the installation information of the migration application of the at least one smart device that may receive migration; the smart device that may receive migration is a smart device in the migration network other than the source smart device; the determining unit uses A target smart device is determined based on the installation information of the migration application of the at least one smart device that may receive migration and the application information of the migration application of the source smart device acquired by the acquisition unit; the target smart device is the A smart device in the migration network that has a migration application installed, and the installed migration application is compatible with the migration application in the source smart device; a sending unit, configured to send the running information of the migration application in the source smart device to The target smart device, so that the target smart device runs the migration application in the target smart device according to the operation information of the migration application in the source smart device; the operation information is to record the migration in the source smart device Information related to running data and status applied in the source smart device; a receiving unit configured to receive the target smart device when the target smart device completes the migration of the migration application in the source smart device according to the running information. The migration completion message returned by the target smart device.
可选的,所述确定单元,具体用于根据所述至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备列表;所述目标智能设备列表中记录了所述迁移网络中安装了迁移应用,且所述安装的迁移应用兼容所述源智能设备中的迁移应用的智能设备的设备标识;所述设备标识用于唯一标示出智能设备;根据所述目标智能设备列表,确定出目标智能设备。Optionally, the determining unit is specifically configured to determine a target smart device list according to the installation information of the migration application of the at least one smart device that may receive migration and the application information of the migration application of the source smart device; The target smart device list records the device identification of the smart device that has the migration application installed in the migration network, and the installed migration application is compatible with the migration application in the source smart device; the device identification is used to uniquely mark Smart device: determine the target smart device according to the target smart device list.
可选的,所述处理单元,具体用于广播报文;所述报文中携带有所述源智能设备的设备标识和所述源智能设备的网络名;所述源智能设备的网络名是所述源智能设备默认加入的网络名称;在接收到可能接收迁移的智能设备的响应消息时,确定所述可能接收迁移的智能设备的响应消息中携带的网络名与所述源智能设备的网络名是否相同;若相同,则根据网络名及预设密码,加入所述可能接收迁移的智能设备所在的网络;若不相同,则检测历史网络列表,确定所述历史网络列表中是否有与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项;若在所述历史网络列表中有与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项,则根据所述历史网络列表中的与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项,加入所述可能接收迁移的智能设备所在的网络;并更新网络名。Optionally, the processing unit is specifically configured to broadcast a message; the message carries the device identifier of the source smart device and the network name of the source smart device; the network name of the source smart device is The name of the network that the source smart device joins by default; when receiving a response message from a smart device that may receive migration, determine that the network name carried in the response message from the smart device that may receive migration is consistent with the network name of the source smart device If they are the same, according to the network name and the preset password, join the network where the smart device that may receive the migration is located; if not, check the historical network list to determine whether there is any match the network name carried in the response message of the smart device that may receive migration; Matching items, according to the matching items in the historical network list that match the network name carried in the response message of the smart device that may receive migration, join the network where the smart device that may receive migration is located; and update network name.
可选的,所述处理单元,具体用于若不相同,则根据预设网络优先级顺序,检测历史网络列表,确定所述历史网络列表中是否有与所述可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项。Optionally, the processing unit is specifically configured to, if they are not the same, detect the historical network list according to the preset network priority order, and determine whether there is a response to the smart device that may receive migration in the historical network list matches the network name carried in the message.
进一步的,本发明实施例提供了一种智能设备间任务迁移的装置,应用于目标智能设备,包括:接收单元,用于接收源智能设备发送的所述源智能设备内的迁移应用的运行信息;所述运行信息是记录所述迁移应用在所述源智能设备中的运行数据及状态的相关信息;处理单元,用于开启所述目标智能设备内的迁移应用,并根据接收的所述源智能设备内的迁移应用的运行信息,设置所述目标智能设备内的迁移应用的相关参数;发送单元,用于在所述目标智能设备内的迁移应用根据设置的所述迁移应用的相关参数运行时,向所述源智能设备发送迁移完成消息。Further, an embodiment of the present invention provides an apparatus for task migration between smart devices, which is applied to the target smart device, including: a receiving unit, configured to receive the running information of the migration application in the source smart device sent by the source smart device ; The operation information is information related to recording the operation data and state of the migration application in the source smart device; a processing unit is used to open the migration application in the target smart device, and according to the received source The running information of the migration application in the smart device, setting the relevant parameters of the migration application in the target smart device; the sending unit is used for the migration application in the target smart device to run according to the set relevant parameters of the migration application , send a migration completion message to the source smart device.
本发明实施例提供了一种智能设备间任务迁移的方法及装置,包括:源智能设备获取用户指令,并根据用户指令确定迁移应用,迁移应用是源智能设备中待迁移至其他智能设备中的迁移应用;源智能设备加入迁移网络;在迁移网络中包含有至少一个可能接收迁移的智能设备时,源智能设备获取至少一个可能接收迁移的智能设备的迁移应用的安装信息;源智能设备根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的版本号,确定出目标智能设备;目标智能设备是迁移网络中的安装了迁移应用,且安装的迁移应用兼容源智能设备中的迁移应用的智能设备;源智能设备将源智能设备内的迁移应用的运行信息发送至目标智能设备;在目标智能设备根据运行信息完成源智能设备内的迁移应用的迁移时,源智能设备接收目标智能设备返回的迁移完成消息。这样,用户在需要将源智能设备中的应用迁移至其他智能设备时,源智能设备可以将待迁移至其他智能设备的应用确定为迁移应用,并在确定出迁移应用后,可以加入迁移网络。在迁移网络中确定出目标智能设备,从而使源智能设备将其内的迁移应用的运行信息发送至目标智能设备,以便目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用,完成源智能设备的迁移应用的迁移,即为本发明可以将迁移应用由源智能设备迁移至目标智能设备,实现了在智能设备间实现方便、快捷地进行网络应用的迁移,提高了用户体验。Embodiments of the present invention provide a method and device for task migration between smart devices, including: the source smart device obtains user instructions, and determines the migration application according to the user instructions, and the migration application is the source smart device to be migrated to other smart devices Migrating applications; the source smart device joins the migration network; when there is at least one smart device that may receive migration in the migration network, the source smart device obtains the installation information of the migration application of at least one smart device that may receive migration; the source smart device according to at least The installation information of the migration application of a smart device that may receive migration and the version number of the migration application of the source smart device determine the target smart device; the target smart device is the migration application installed in the migration network, and the installed migration application is compatible The smart device of the migration application in the source smart device; the source smart device sends the operation information of the migration application in the source smart device to the target smart device; when the target smart device completes the migration of the migration application in the source smart device according to the operation information, The source smart device receives the migration completion message returned by the target smart device. In this way, when the user needs to migrate the application in the source smart device to other smart devices, the source smart device can determine the application to be migrated to other smart devices as the migration application, and after the migration application is determined, it can join the migration network. The target smart device is determined in the migration network, so that the source smart device sends the operation information of the migration application in it to the target smart device, so that the target smart device runs the target smart device according to the operation information of the migration application in the source smart device. The migration application of the source smart device is completed, which means that the present invention can migrate the migration application from the source smart device to the target smart device, realizing the convenient and fast migration of network applications between smart devices, improving the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明实施例提供的一种智能设备间任务迁移的方法的第一种流程示意图;FIG. 1 is a first schematic flowchart of a method for task migration between smart devices provided by an embodiment of the present invention;
图2为本发明实施例提供的一种智能设备间任务迁移的方法的第二种流程示意图;FIG. 2 is a second schematic flowchart of a method for task migration between smart devices provided by an embodiment of the present invention;
图3为本发明实施例提供的一种智能设备间任务迁移的方法的第三种流程示意图;FIG. 3 is a third schematic flowchart of a method for task migration between smart devices provided by an embodiment of the present invention;
图4为本发明实施例提供的一种源智能设备中的智能设备间任务迁移的装置的结构示意图;FIG. 4 is a schematic structural diagram of an apparatus for task migration between smart devices in a source smart device according to an embodiment of the present invention;
图5为本发明实施例提供的一种目标智能设备中的智能设备间任务迁移的装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for task migration between smart devices in a target smart device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供了一种智能设备间任务迁移的方法,如图1所示,包括:An embodiment of the present invention provides a method for task migration between smart devices, as shown in Figure 1, including:
步骤101、源智能设备获取用户指令,并根据用户指令确定迁移应用。Step 101, the source smart device acquires user instructions, and determines a migration application according to the user instructions.
其中,迁移应用是源智能设备中待迁移至其他智能设备中的应用。Wherein, the migration application is an application in the source smart device to be migrated to other smart devices.
具体的,源智能设备中运行了第一应用,若用户需要将第一应用迁移至其他智能设备中运行时,可以向源智能设备发送用户指令,以告知源智能设备将第一应用迁移至其他智能设备中。此时,源智能设备接收到用户指令后,可以解析此用户指令进而获知用户需要将第一应用迁移至其他智能设备,此时源智能设备可以将第一应用确定为迁移应用。Specifically, the source smart device runs the first application, and if the user needs to migrate the first application to other smart devices, the user can send a user instruction to the source smart device to inform the source smart device to migrate the first application to other smart devices. in smart devices. At this point, after receiving the user instruction, the source smart device may parse the user instruction to learn that the user needs to migrate the first application to another smart device, and at this time, the source smart device may determine the first application as the migration application.
需要说明的是,用户指令可以指示出待迁移至其他智能设备中的应用,这样源智能设备就可跟用户指令确定出待迁移至其他智能设备中的迁移应用。It should be noted that the user instruction may indicate the application to be migrated to other smart devices, so that the source smart device can determine the migration application to be migrated to other smart devices according to the user instruction.
示例性的,若源智能设备为手机,用户通过手机观看视频应用,若用户需要将视频迁移至其他智能设备中,可以向手机发送指示将视频应用迁移至其他智能设备的用户指令。手机在接收到用户指令后,可以解析此用户指令,进而可以将视频应用确定为待迁移至其他智能设备的迁移应用。Exemplarily, if the source smart device is a mobile phone, and the user watches the video application through the mobile phone, if the user needs to migrate the video to other smart devices, a user instruction may be sent to the mobile phone instructing to migrate the video application to other smart devices. After receiving the user instruction, the mobile phone can analyze the user instruction, and then can determine the video application as a migration application to be migrated to other smart devices.
步骤102、源智能设备加入迁移网络。Step 102, the source smart device joins the migration network.
具体的,源智能设备在确定了迁移应用后,由于需要将迁移应用迁移至其他智能设备,此时源智能设备为了可以与其他智能设备进行通信,可以加入迁移网络。Specifically, after the source smart device determines the migration application, since the migration application needs to be migrated to other smart devices, the source smart device may join the migration network in order to communicate with other smart devices.
其中,迁移网络是智能设备间组件的智能区域网络。Wherein, the migration network is an intelligent area network of components among intelligent devices.
进一步的,源智能设备加入迁移网络包括:源智能设备广播报文;在接收到可能接收迁移的智能设备的响应消息时,确定可能接收迁移的智能设备的响应消息中携带的网络名与源智能设备的网络名是否相同;若相同,则源智能设备根据网络名及预设密码,加入可能接收迁移的智能设备所在的网络;若不相同,则源智能设备检测历史网络列表,确定历史网络列表中是否有与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项;若在历史网络列表中有与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项,则根据历史网络列表中的与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项,加入可能接收迁移的智能设备所在的网络;并更新网络名。Further, the source smart device joining the migration network includes: the source smart device broadcasts a message; when receiving a response message from a smart device that may receive migration, determine the network name and source smart device carried in the response message from the smart device that may receive migration Whether the network names of the devices are the same; if they are the same, the source smart device will join the network where the smart device that may receive migration is located according to the network name and preset password; if they are not the same, the source smart device will detect the historical network list and determine the historical network list Whether there is a matching item in the history network list that matches the network name carried in the response message of the smart device that may receive migration; if there is a match in the historical network list that matches the network name carried in the response message of the smart device item, according to the matching item in the historical network list that matches the network name carried in the response message of the smart device that may receive migration, join the network where the smart device that may receive migration is located; and update the network name.
其中,报文中携带有源智能设备的设备标识和源智能设备的网络名;源智能设备的网络名是源智能设备默认加入的网络名称。Wherein, the message carries the device identifier of the active smart device and the network name of the source smart device; the network name of the source smart device is the network name that the source smart device joins by default.
进一步的,在用户预设设置了网络优先级顺序时,源智能设备可以根据预设网络优先级顺序加入至可能接收迁移的智能设备所在的网络,此时若不相同,则源智能设备检测历史网络列表,确定历史网络列表中是否有与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项包括:若不相同,则源智能设备根据预设网络优先级顺序,检测历史网络列表,确定历史网络列表中是否有与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项。Further, when the user presets the network priority order, the source smart device can join the network where the smart device that may receive the migration is located according to the preset network priority order. If it is different at this time, the source smart device detects the history Network list, determine whether there is a matching item in the historical network list that matches the network name carried in the response message of the smart device that may receive migration. The network list is used to determine whether there is a matching item in the historical network list that matches the network name carried in the response message of the smart device that may receive migration.
具体的,源智能设备在需要加入迁移网络时,由于源智能设备并不知道其他智能设备是否已经组建了迁移网络,此时可以广播报文。其中,报文中可以携带源智能设备的设备标识和源智能设备的网络名。此时若有可能接收迁移的智能设备已经建立了迁移网络,可能接收迁移的智能设备接收到源智能设备广播的报文后,可以向源智能设备发送响应消息。此响应消息中携带了可能接收迁移的智能设备的网络名。这样,源智能设备可以接收到可能接收迁移的智能设备返回的响应消息。由于响应消息中携带的可能接收迁移的智能设备的网络名是可能接收迁移的智能设备加入的迁移网络的名称。因此,源智能设备可以在接收到可能接收迁移的智能设备返回的响应消息后,解析可能接收迁移的智能化设备的响应消息,获知可能接收迁移的智能设备加入的迁移网络的网络名。Specifically, when the source smart device needs to join the migration network, since the source smart device does not know whether other smart devices have established the migration network, it can broadcast a message at this time. Wherein, the message may carry the device identifier of the source smart device and the network name of the source smart device. At this time, if the smart device that may receive the migration has established a migration network, the smart device that may receive the migration may send a response message to the source smart device after receiving the message broadcast by the source smart device. The response message carries the network name of the smart device that may receive migration. In this way, the source smart device can receive the response message returned by the smart device that may receive migration. Because the network name of the smart device that may receive the migration carried in the response message is the name of the migration network that the smart device that may receive the migration joins. Therefore, after receiving the response message returned by the smart device that may receive migration, the source smart device may analyze the response message of the smart device that may receive migration, and learn the network name of the migration network joined by the smart device that may receive migration.
若此源智能设备仅接收到一个可能接收迁移的智能设备返回了响应消息时,源智能设备解析可能接收迁移的智能化设备的响应消息,获知可能接收迁移的智能设备加入的迁移网络的网络名后,可以将自己的网络名与可能接收迁移的智能设备的网络名进行比对,确定源智能设备自己的网络名是否与可能接收迁移的智能设备的网络名是否相同。若相同,则说明源智能设备默认加入的网络与可能接收迁移的智能设备已加入的网络是同一个网络,此时,源智能设备若要加入此网络,则可以将预设密码及网络名均发送至可能接收迁移的智能设备,这样,可能接收迁移的智能设备可以根据源智能设备发送的预设密码及网络名,确定源智能设备是否可以加入至此网络。If the source smart device only receives a response message returned by a smart device that may receive migration, the source smart device parses the response message of the smart device that may receive migration, and learns the network name of the migration network that the smart device that may receive migration joins Finally, you can compare your own network name with the network name of the smart device that may receive migration, and determine whether the network name of the source smart device is the same as the network name of the smart device that may receive migration. If they are the same, it means that the network that the source smart device joins by default is the same network that the smart device that may receive migration has already joined. At this time, if the source smart device wants to join this network, you can set the Send it to the smart device that may receive the migration, so that the smart device that may receive the migration can determine whether the source smart device can join the network according to the preset password and network name sent by the source smart device.
进一步的,可能接收迁移的智能设备根据源智能设备发送的预设密码及网络名,确定源智能设备是否可以加入至此网络的方法可以是,在可能接收迁移的智能设备具有认证的权限时,可以在接收到源智能设备发送的预设密码及网络名后,对源智能设备发送的预设密码及网络名进行验证,确定源智能设备的网络名及预设密码是否正确,若正确,则说明源智能设备具有加入网络的权限,可以让源智能设备加入网络,从而可以向源智能设备发送加入成功消息,这样,源智能设备加入了可能接收迁移的智能设备所在的网络。在可能接收迁移的智能设备不具有认证的权限时,可能接收迁移的智能设备在接收到源智能设备发送的预设密码及网络名后,可以将其发送至此网络中具有认证权限的智能设备,由具有认证权限的智能设备对源智能设备进行认证。在具有认证权限的智能设备确定源智能设备具有加入网络的权限,可以让源智能设备加入网络,可以通过可能接收迁移的智能设备向源智能设备发送加入成功消息,这样,源智能设备加入了可能接收迁移的智能设备所在的网络。Further, the smart device that may receive migration can determine whether the source smart device can join the network according to the preset password and network name sent by the source smart device. When the smart device that may receive migration has authentication authority, it can After receiving the preset password and network name sent by the source smart device, verify the preset password and network name sent by the source smart device to determine whether the network name and preset password of the source smart device are correct. The source smart device has the right to join the network, and the source smart device can be allowed to join the network, so that it can send a join success message to the source smart device. In this way, the source smart device has joined the network where the smart device that may receive migration is located. When the smart device that may receive migration does not have authentication authority, the smart device that may receive migration can send it to the smart device with authentication authority in this network after receiving the preset password and network name sent by the source smart device. The source smart device is authenticated by the smart device with authentication authority. After the smart device with authentication authority determines that the source smart device has the right to join the network, the source smart device can be allowed to join the network, and the smart device that may receive migration can send a join success message to the source smart device. In this way, the source smart device may join The network where the smart device receiving the migration resides.
进一步的,若可能接收迁移的智能设备验证出源智能设备的网络名与预设密码不对,则可以向源智能设备返回网络名或预设密码错误的消息,此时源智能设备需要通过用户重新获取密码,在进行验证。Further, if the smart device that may receive the migration verifies that the network name of the source smart device is incorrect with the preset password, it can return a message that the network name or preset password is wrong to the source smart device. Obtain the password and verify it.
若可能接收迁移的智能设备的响应消息中携带的网络名与源智能设备的网络名不相同,则说明源智能设备默认加入的网络与可能接收迁移的智能设备已加入的网络不是同一个网络,此时,源智能设备可以根据可能接收迁移的智能设备的网络名,检测历史网络列表,查看在历史网络列表中是否有与可能接收迁移的智能设备的网络名向匹配的一项,即为在历史网络列表中记录的网络名中是否有与可能接收迁移的智能设备的网络名相同的一项。若在历史网络列表中有与可能接收迁移的智能设备的网络名相匹配的匹配项,也就是说,在历史网络列表中记录的网络名中有与可能接收迁移的智能设备的网络名相同的一项,则说明源智能设备加入过此网络,源智能设备可以将历史网络列表中匹配项的内容中的网络名和密码发送至可能接收迁移的智能设备,以便加入可能接收迁移的智能设备所在的网络。If the network name carried in the response message of the smart device that may receive migration is different from the network name of the source smart device, it means that the network that the source smart device joins by default is not the same network that the smart device that may receive migration has joined. At this time, the source smart device can check the historical network list according to the network name of the smart device that may receive migration, and check whether there is an item that matches the network name of the smart device that may receive migration in the historical network list, that is, in Check whether any of the network names recorded in the historical network list is the same as the network name of the smart device that may receive migration. If there is a matching item in the historical network list that matches the network name of the smart device that may receive migration, that is, there is a network name that is the same as the network name of the smart device that may receive migration One, it means that the source smart device has joined this network, the source smart device can send the network name and password in the content of the matching item in the historical network list to the smart device that may receive migration, so as to join the network where the smart device that may receive migration is located network.
其中,可能接收迁移的智能设备如何通过源智能设备的历史网络列表中匹配项的内容中的网络名和密码,对源智能设备进行验证,并在通过验证时,将源智能设备添加至可能接收迁移的智能设备所在的网络中的具体方法与上述可能接收迁移的智能设备在获取到源智能设备发送的网络名及预设密码后,根据源智能设备发送的网络名及预设密码将源智能设备添加至可能接收迁移的智能设备所在的网络中的具体方法相同,在此不再赘述。Among them, how can the smart device that may receive migration verify the source smart device through the network name and password in the content of the matching item in the historical network list of the source smart device, and when passing the verification, add the source smart device to the list of possible recipients of migration The specific method in the network where the smart device is located is the same as the above-mentioned smart device that may receive the migration. After obtaining the network name and preset password sent by the source smart device, the source smart device will The specific method of adding to the network where the smart device that may receive migration is located is the same, and will not be repeated here.
在源智能设备加入至可能接收迁移的智能设备所在的网络后,将源智能设备的网络名更新为可能接收迁移的智能设备所在的网络的名称。After the source smart device joins the network where the smart device that may receive migration resides, update the network name of the source smart device to the name of the network where the smart device that may receive migration resides.
进一步的,在源智能设备接收到至少两个可能接收迁移的智能设备返回了响应消息时,源智能设备可以分别解析至少两个可能接收迁移的智能设备返回的响应消息,获知至少两个可能接收迁移的智能设备的网络名。此时源智能设备可以分别将其自身的网络名与至少两个可能接收迁移的智能设备的网络名进行比对,若确定出其自身的网络名与至少两个可能接收迁移的智能设备的网络名均相同,即为至少两个可能接收迁移的智能设备在同一个网络中,此时源智能设备可以将网络名及预设密码发送至至少两个可能接收迁移的智能设备中的任一个,此时接收到源智能设备的网络名和预设密码的可能接收迁移的智能设备可以根据源智能设备的网络名和预设密码,对源智能设备进行验证,并在通过验证时,将源智能设备加入至其所在的网络中。Further, when the source smart device receives response messages returned by at least two smart devices that may receive migration, the source smart device may respectively analyze the response messages returned by at least two smart devices that may receive migration, and learn that at least two possible recipients may receive The network name of the migrated smart device. At this time, the source smart device can compare its own network name with the network names of at least two smart devices that may receive migration. The names are the same, that is, at least two smart devices that may receive migration are in the same network. At this time, the source smart device can send the network name and preset password to any one of the at least two smart devices that may receive migration. At this time, the smart device that may receive the migration after receiving the network name and preset password of the source smart device can verify the source smart device according to the network name and preset password of the source smart device, and when passing the verification, add the source smart device to the to its network.
其中,可能接收迁移的智能设备根据源智能设备的网络名和预设密码,对源智能设备进行验证,并在通过验证时,将源智能设备添加至可能接收迁移的智能设备所在的网络中的具体方法与上述源智能设备仅接收到一个可能接收迁移的智能设备返回的响应消息时,可能接收迁移的智能设备在获取到源智能设备发送的网络名及预设密码后,根据源智能设备发送的网络名及预设密码将源智能设备添加至可能接收迁移的智能设备所在的网络中的具体方法相同,在此不再赘述。Among them, the smart device that may receive migration verifies the source smart device according to the network name and preset password of the source smart device, and when passing the verification, adds the source smart device to the network where the smart device that may receive migration is located. The method is the same as that when the above-mentioned source smart device only receives a response message returned by a smart device that may receive the migration, after the smart device that may receive the migration obtains the network name and preset password sent by the source smart device, it The specific method of adding the source smart device to the network where the smart device that may receive the migration is the same as the network name and preset password, and will not be repeated here.
或者,在确定出其自身的网络名与上述至少两个可能接收迁移的智能设备中的至少一个可能接收迁移的智能设备的网络名相同,且在上述至少两个可能接收迁移的智能设备的网络名不完全与源智能设备的网络名相同时,源智能设备可以优先加入网络名与其自身网络名相同的可能接收迁移的智能设备所在的网络。即为,源智能设备将网络名及预设密码发送至与其网络名相同的可能接收迁移的智能设备,以便加入至此可能接收迁移的智能设备所在的网络。Or, after determining that its own network name is the same as the network name of at least one of the at least two smart devices that may receive migration, and the network name of the at least two smart devices that may receive migration When the network name of the source smart device is not exactly the same as the network name of the source smart device, the source smart device can preferentially join the network where the smart device whose network name is the same as its own network name is located. That is, the source smart device sends the network name and the preset password to the smart device that may receive migration with the same network name, so as to join the network where the smart device that may receive migration is located.
或者,在确定出其自身的网络名与上述至少两个可能接收迁移的智能设备的网络均不相同时,在预先设置了网络优先级顺序时,源智能设备可以根据预设网络优先级顺序,在解析出的至少两个可能接收迁移的智能设备的网络名后,可以根据至少两个可能接收迁移的智能设备的网络名,确定出各个可能接收迁移的智能设备所在网络的优先级,从而根据各个可能接收迁移的智能设备所在的网络优先级,加入至可能接收迁移的智能设备所在的网络。此时,由于源智能设备的网络名与至少两个可能接收迁移的智能设备的网络名均不相同,因此,源智能设备可以根据上述各个可能接收迁移的智能设备所在的网络优先级,按照优先级逐渐降低的顺序,逐个将各个可能接收迁移的智能设备的网络名与历史网络列表记录的内容进行比对,直至在历史网络列表中查找到与可能接收迁移的智能设备的网络名匹配的匹配项。在历史网络列表中查找到匹配项后,可以根据此匹配项加入至此匹配项对应的可能接收迁移的智能设备所在的网络。并在加入到匹配项加入至此匹配项对应的可能接收迁移的智能设备所在的网络后,源智能设备可以将网络名更新为其加入的网络的网络名称。Or, when it is determined that its own network name is different from the above-mentioned at least two networks that may receive the migrated smart device, when the network priority order is preset, the source smart device may, according to the preset network priority order, After parsing the network names of at least two smart devices that may receive migration, the priority of the network where each smart device that may receive migration can be determined can be determined according to the network names of at least two smart devices that may receive migration. The network priority of each smart device that may receive migration is added to the network where the smart device that may receive migration is located. At this time, since the network name of the source smart device is different from the network names of at least two smart devices that may receive the migration, the source smart device may be based on the network priority of each smart device that may receive the migration. In order of decreasing levels, compare the network name of each smart device that may receive migration with the content recorded in the historical network list one by one, until a match is found in the historical network list that matches the network name of the smart device that may receive migration item. After a matching item is found in the historical network list, the matching item can be added to the network where the smart device that may receive migration corresponding to the matching item is located. And after joining the matching item to the network where the smart device that may receive the migration corresponding to the matching item is located, the source smart device can update the network name to the network name of the network it joined.
其中,源智能设备如何根据此匹配项加入至此匹配项对应的可能接收迁移的智能设备所在的网络,可参考上述源智能设备仅接收到一个可能接收迁移的智能设备返回的响应消息时,源智能设备如何根据此匹配项加入至此匹配项对应的可能接收迁移的智能设备所在的网络,在此不再赘述。Wherein, how the source smart device joins the network where the smart device corresponding to the matching item is located that may receive the migration according to the matching item can be referred to above. How the device joins the network corresponding to the matching item to the network where the smart device that may receive migration according to the matching item is located will not be described in detail here.
需要说明的是,预设网络优先级顺序是预先设置的,源智能设备可以加入的网络的优先级顺序。It should be noted that the preset network priority sequence is preset, and is the priority sequence of the network that the source smart device can join.
需要说明的是,源智能设备中存储的网络名及预设密码是用户预先设置的。It should be noted that the network name and preset password stored in the source smart device are preset by the user.
需要说明的是,源智能设备的历史网络列表是记录源智能设备存储的其曾加入过的网络的相关信息的列表。It should be noted that the historical network list of the source smart device is a list that records the relevant information of the networks that the source smart device has joined.
进一步的,在源智能设备广播了报文后,若没有接收到可能接收迁移的智能设备返回的响应消息,此时源智能设备可以自己组建迁移网络,此时,可以将迁移网络的名设定为其自身存储的网络名。这样,源智能设备可以等待其他智能设备加入到此迁移网络中,从而实现迁移应用的迁移。Furthermore, after the source smart device broadcasts the message, if no response message is received from the smart device that may receive the migration, the source smart device can set up a migration network by itself. At this time, the name of the migration network can be set to The network name stored for itself. In this way, the source smart device can wait for other smart devices to join the migration network, so as to realize the migration of the migration application.
进一步的,源智能设备在加入至迁移网络后,迁移网络中的各个智能设备需定期的广播报文,以通知其他智能设备自身当前的状态。这样,迁移网络中的各个智能设备可以根据接收的广播报文,生成网络列表,从而维护迁移网络中的其他智能设备。进一步的,当迁移网络中的智能设备在超过预设时间没有接收到某个智能设备广播的报文后,可以认为此智能设备已经移除了迁移网络,可以在网络列表中将此智能设备的相关信息删除。Further, after the source smart device joins the migration network, each smart device in the migration network needs to periodically broadcast messages to notify other smart devices of their current status. In this way, each smart device in the migration network can generate a network list according to the received broadcast message, so as to maintain other smart devices in the migration network. Furthermore, when the smart device in the migration network does not receive a message broadcast by a certain smart device within the preset time, it can be considered that the smart device has removed the migration network, and the smart device can be added to the network list. Related information is deleted.
需要说明的是,预设时间是用户根据实际需要预设设置的。It should be noted that the preset time is preset and set by the user according to actual needs.
如上例所述,用户在手机预先设置了其默认加入的网络,手机存储的网络名为a,并存储了加入网络名为a的网络的密码。在确定出视频应用为迁移应用后,手机可以广播报文,其中报文包括了网络名a及手机的标识。若现有智能设备1,智能设备2,智能设备3,智能设备4,智能设备5及智能设备6均向手机发送了响应消息。手机在接收到智能设备1,智能设备2,智能设备3,智能设备4,智能设备5及智能设备6发送的响应消息后,分别解析智能设备1,智能设备2,智能设备3,智能设备4,智能设备5及智能设备6发送的响应消息,从而获知智能设备1的响应消息中携带的网络名为b,智能设备2的响应消息中携带的网络名为b,智能设备3的响应消息中携带的网络名为b,智能设备4的响应消息中携带的网络名为b,智能设备5的响应消息中携带的网络名为b,智能设备6的响应消息携带的网络名为c。手机将自身存储的网络名a与解析出的各个网络名进行比对,确定出解析出的网络名与手机存储的网络名a均不相同。若用户预先设置了网络优先顺序。且预设网络优先顺序为:网络名为a的优先级最高,网络名为b的优先级次之,网络名c的优先级最低。此时,由于解析出的网络名均与手机存储的网络名a不同,此时,手机获取存储的历史网络列表,在历史网络列表中查找是否记录有网络名为b的一项。若在历史网络列表中有网络名为b的一项,则可以查找到网络名为b的匹配项。此时手机可以根据此匹配项中记录的网络名为b,及其密码向智能设备1发送网络名b,及密码。智能设备1接收到手机发送的网络名b及密码后,由于智能设备1没有验证网络名及密码是否正确的权限,此时智能设备1可以将接收的手机的网络名及密码发送至具有验证网络名及密码是否正确的权限的智能设备3。智能设备3在接收到手机的网络名及密码后,可以验证手机的网络名及密码是否正确。假设智能设备3验证手机发的网络名及密码正确,将手机加入至网络名b的网络中,并通过智能设备1向手机发送加入成功消息,这样手机在接收到加入成功消息后,可以获知手机已经加入了网络名为b的网络。As described in the above example, the user pre-sets the network to join by default on the mobile phone, the network name stored in the mobile phone is a, and the password for joining the network named a is stored. After determining that the video application is a migration application, the mobile phone may broadcast a message, wherein the message includes the network name a and the identification of the mobile phone. If the existing smart device 1, smart device 2, smart device 3, smart device 4, smart device 5 and smart device 6 all send response messages to the mobile phone. After the mobile phone receives the response messages sent by smart device 1, smart device 2, smart device 3, smart device 4, smart device 5 and smart device 6, it analyzes smart device 1, smart device 2, smart device 3 and smart device 4 respectively. , the response message sent by smart device 5 and smart device 6, so as to know that the network name carried in the response message of smart device 1 is b, the network name carried in the response message of smart device 2 is b, and the network name carried in the response message of smart device 3 is The network name carried is b, the network name carried in the response message of smart device 4 is b, the network name carried in the response message of smart device 5 is b, and the network name carried in the response message of smart device 6 is c. The mobile phone compares the network name a stored by itself with the resolved network names, and determines that the resolved network name is different from the network name a stored in the mobile phone. If the user has preset the network priority. And the preset network priority order is: the network name a has the highest priority, the network name b has the second priority, and the network name c has the lowest priority. At this time, since the parsed network names are all different from the network name a stored in the mobile phone, the mobile phone obtains the stored historical network list, and checks whether there is an item with the network name b recorded in the historical network list. If there is an item with the network name b in the historical network list, you can find a matching item with the network name b. At this time, the mobile phone can send the network name b and its password to the smart device 1 according to the network name b and its password recorded in the matching item. After the smart device 1 receives the network name b and password sent by the mobile phone, since the smart device 1 does not have the authority to verify whether the network name and password are correct, the smart device 1 can send the received network name and password of the mobile phone to the verification network. The smart device 3 with permission to verify whether the name and password are correct. After receiving the network name and password of the mobile phone, the smart device 3 can verify whether the network name and password of the mobile phone are correct. Assuming that the smart device 3 verifies that the network name and password sent by the mobile phone are correct, join the mobile phone to the network with the network name b, and send a successful joining message to the mobile phone through the smart device 1, so that the mobile phone can know the mobile phone after receiving the successful joining message. Already joined the network named b.
步骤103、在迁移网络中包含有至少一个可能接收迁移的智能设备时,源智能设备获取至少一个可能接收迁移的智能设备的迁移应用的安装信息。Step 103: When the migration network contains at least one smart device that may receive migration, the source smart device acquires the installation information of the migration application of the at least one smart device that may receive migration.
其中,可能接收迁移的智能设备是所述迁移网络中除源智能设备之外的智能设备。Wherein, the smart devices that may receive migration are smart devices in the migration network other than the source smart device.
需要说明的是,可能接收迁移的智能设备的迁移应用的安装信息可以指示出在可能接收迁移的智能设备中是否安装了与源智能设备的迁移应用相同的应用,即为,在可能接收迁移的智能设备中是否安装了迁移应用。若可能接收迁移的智能设备中安装了与源智能设备的迁移应用相同的应用时,其安装的此应用的版本号等信息。It should be noted that, the installation information of the migration application of the smart device that may receive migration may indicate whether the same application as the migration application of the source smart device is installed in the smart device that may receive migration, that is, in the smart device that may receive migration Whether the migration application is installed on the smart device. If it is possible to receive information such as the version number of the application installed on the migrated smart device when the same application as the migration application of the source smart device is installed.
需要说明的是,在本发明所有实施例,可能接收迁移的智能设备的迁移应用并不是指可能接收迁移的智能设备的中待迁移至其他智能设备的应用,而是指可能接收迁移的智能设备中与源智能设备的迁移应用相同的应用。It should be noted that, in all embodiments of the present invention, the migrated application of the smart device that may receive migration does not refer to the application that is to be migrated to other smart devices in the smart device that may receive migration, but refers to the smart device that may receive migration in the same app as the migration app on the source smart device.
需要说明的是,在迁移网络中的除源智能设备的其他智能设备也可以安装与源智能设备的迁移应用相同的应用,即为其他智能设备也可以安装迁移应用。但其他智能设备安装的迁移应用的应用信息可以与源智能设备的迁移应用的应用信息相同,也可以不同。例如安装的迁移应用的版本号不同,分辨率不同等。也就是说,源智能设备安装了迁移应用,其他智能设备也安装了迁移应用时,可以认为其他智能设备与源智能设备安装了相同的应用,且其他智能设备与源智能设备安装的迁移应用的应用信息可以不同。例如,源智能设备中安装了爱奇艺应用,且其版本号为3.5。在其他智能设备中安装了爱奇艺应用,且其版本号为4.0,则可以认为其他智能设备与源智能设备安装了同一个应用,即为爱奇艺应用,他们安装的应用的应用信息不同。It should be noted that, other smart devices in the migration network except the source smart device may also install the same application as the migration application of the source smart device, that is, other smart devices may also install the migration application. However, the application information of the migration application installed on other smart devices may be the same as or different from the application information of the migration application on the source smart device. For example, the version numbers and resolutions of the installed migration applications are different. That is to say, when the migration application is installed on the source smart device and the migration application is also installed on other smart devices, it can be considered that the other smart devices have the same application installed on the source smart device, and the migration application installed on the other smart device and the source smart device has the same Application information can vary. For example, the iQIYI application is installed on the source smart device, and its version number is 3.5. If the iQIYI application is installed on other smart devices, and its version number is 4.0, it can be considered that the other smart device and the source smart device have installed the same application, that is, the iQIYI application, and the application information of the applications installed by them is different. .
具体的,在源智能设备加入迁移网络后,可以与迁移网络中的智能设备进行通信,从而获取迁移网络中包含的至少一个可能接收迁移的智能设备的迁移应用的安装信息。Specifically, after the source smart device joins the migration network, it can communicate with the smart devices in the migration network, so as to obtain the installation information of the migration application included in at least one smart device that may receive migration in the migration network.
在源智能设备没有获取网络列表时,可以在迁移网络中广播获取迁移应用的安装信息的请求消息,迁移网络中的至少一个可能接收迁移的智能设备在接收到源智能设备广播的获取迁移应用的安装信息的请求消息后,可以解析此获取迁移应用的安装信息的请求消息,进而获取到获取迁移应用的安装信息的请求消息中携带的迁移应用的标识信息及源智能设备的设备标识。这样迁移网络中的至少一个可能接收迁移的智能设备可以根据迁移应用的标识信息,在自身安装的各个应用中查找是否有迁移应用,若有迁移应用,则进一步获取此迁移信息的版本号等应用信息。这样,可能接收迁移的智能设备在自身安装了迁移应用时,获取了迁移应用的版本号等应用信息后,可以根据安装有迁移应用,及安装的迁移应用的版本号等应用信息生成迁移应用的安装信息。在可能接收迁移的智能设备没有安装迁移应用时,可以根据自身没有安装迁移应用生成迁移应用的安装信息。可能接收迁移的智能设备在生成迁移用的安装信息后,可以将生成后的迁移应用的安装信息根据源智能设备的设备标识发送至源智能设备。When the source smart device does not obtain the network list, it may broadcast a request message to obtain the installation information of the migrated application in the migration network, and at least one smart device that may receive the migration in the migration network receives the information broadcast by the source smart device to obtain the migration application. After the request message of the installation information, the request message of obtaining the installation information of the migration application can be parsed, and then the identification information of the migration application and the device identification of the source smart device carried in the request message of the installation information of the migration application are obtained. In this way, at least one smart device that may receive migration in the migration network can search whether there is a migration application in each application installed by itself according to the identification information of the migration application, and if there is a migration application, further obtain applications such as the version number of the migration information information. In this way, when the migration application is installed on the smart device that may receive the migration, after obtaining the application information such as the version number of the migration application, it can generate the migration application information according to the application information such as the migration application installed and the version number of the installed migration application. Installation Information. When the smart device that may receive the migration has not installed the migration application, the installation information of the migration application may be generated based on the fact that the migration application itself is not installed. After generating the installation information for migration, the smart device that may receive the migration may send the generated installation information of the migration application to the source smart device according to the device identifier of the source smart device.
需要说明的是,获取迁移应用的安装信息的请求消息中携带有迁移应用的标识信息及源智能设备的设备标识。It should be noted that the request message for obtaining the installation information of the migrated application carries the identification information of the migrated application and the device identifier of the source smart device.
需要说明的是,迁移应用的标识信息用于唯一标示出迁移应用。设备标识用于唯一标示出智能设备。It should be noted that the identification information of the migration application is used to uniquely identify the migration application. The device identifier is used to uniquely identify the smart device.
进一步的,在源智能设备获取了网络列表时,源智能设备可以根据网络列表中记录的迁移网络中的智能设备的设备标识,向各个可能接收迁移的智能设备发送获取迁移应用的安装信息的请求消息。这样,可能接收迁移的智能设备接收到源智能设备发送的获取迁移应用的安装信息的请求消息后,可以解析此获取迁移应用的安装信息的请求消息,进而获取到获取迁移应用的安装信息的请求消息中携带的迁移应用的标识信息及源智能设备的设备标识。可能接收迁移的智能设备可以根据迁移应用的标识信息,在自身安装的各个应用中查找是否有迁移应用。若有迁移应用,则进一步获取此迁移信息的版本号等应用信息。可能接收迁移的智能设备在自身安装了迁移应用,且获取了迁移应用的版本号等应用信息后,可以根据安装有迁移应用,及安装的迁移应用的版本号等应用信息生成迁移应用的安装信息。在可能接收迁移的智能设备没有安装迁移应用时,可以根据自身没有安装迁移应用生成迁移应用的安装信息。并且可能接收迁移的智能设备在生成迁移用的安装信息后,可以将生成后的迁移应用的安装信息根据源智能设备的设备标识发送至源智能设备。Further, when the source smart device obtains the network list, the source smart device may send a request to obtain the installation information of the migrated application to each smart device that may receive migration according to the device identifiers of the smart devices in the migrated network recorded in the network list information. In this way, after receiving the request message for obtaining the installation information of the migrated application sent by the source smart device, the smart device that may receive the migration can parse the request message for obtaining the installation information of the migrated application, and then obtain the request for obtaining the installation information of the migrated application The identification information of the migration application and the device identification of the source smart device carried in the message. The smart device that may receive the migration can check whether there is a migration application among the applications installed on itself according to the identification information of the migration application. If there is a migration application, application information such as a version number of the migration information is further obtained. After the smart device that may receive the migration has installed the migration application itself and obtained the application information such as the version number of the migration application, it can generate the installation information of the migration application according to the application information such as the migration application installed and the version number of the installed migration application . When the smart device that may receive the migration has not installed the migration application, the installation information of the migration application may be generated based on the fact that the migration application itself is not installed. And after the smart device that may receive migration generates the installation information for migration, it may send the generated installation information of the migration application to the source smart device according to the device identifier of the source smart device.
如上例所述,假设视频应用的应用信息即为视频应用的版本号。手机在加入迁移网络后,迁移网络中有智能设备1,智能设备2,智能设备3,智能设备4,智能设备5。迁移网络中的各个智能设备需要定期的广播报文,向其他智能设备报告自身当前的状态。这样,手机可以通过接收智能设备1,智能设备2,智能设备3,智能设备4,智能设备5定期广播的报文,建立网络列表,记录迁移网络中的各个智能设备的信息。由于手机需要获取智能设备1,智能设备2,智能设备3,智能设备4,智能设备5的视频应用的安装信息。因此,手机可以根据网络列表分别向智能设备1,智能设备2,智能设备3,智能设备4,智能设备5发送获取视频应用的安装信息的请求消息。其中,获取视频应用的安装信息的请求消息中携带了视频应用的标识信息及手机的设备标识。这样,智能设备1接收到获取视频应用的安装信息的请求消息后,解析获取迁移应用的安装信息的请求消息,获取到视频应用的标识信息及手机的设备标识。根据视频应用的标识信息,在自身安装的应用中,查看是否有与视频应用的标识信息对应的视频应用。若在智能设备1中安装了与视频应用的标识信息对应的视频应用,则可以获取其内视频应用的版本号,并将智能设备1中安装有视频应用,及安装的视频应用的版本号作为智能设备1的视频应用的安装信息,发送至手机。同理,智能设备2、智能设备3及智能设备4在接收到获取视频应用的安装信息的请求消息后,进行与智能设备1相同的处理,并将生成的视频应用的安装信息,发送至手机,在此不再赘述。智能设备5接收到获取视频应用的安装信息的请求消息后,解析获取迁移应用的安装信息的请求消息,获取到视频应用的标识信息及手机的设备标识。根据视频应用的标识信息,在自身安装的应用中,查看是否有与视频应用的标识信息对应的视频应用。若在智能设备5中没有安装与视频应用的标识信息对应的视频应用,此时智能设备5将没有安装视频应用作为视频应用的安装信息,发送至手机。手机分别接收智能设备1,智能设备2,智能设备3,智能设备4,智能设备5发送的视频应用的安装信息。As described in the above example, it is assumed that the application information of the video application is the version number of the video application. After the mobile phone joins the migration network, there are smart device 1, smart device 2, smart device 3, smart device 4, and smart device 5 in the migration network. Each smart device in the migration network needs to periodically broadcast messages to report its current status to other smart devices. In this way, the mobile phone can establish a network list and record the information of each smart device in the migration network by receiving the messages regularly broadcast by the smart device 1, the smart device 2, the smart device 3, the smart device 4, and the smart device 5. Because the mobile phone needs to obtain the installation information of the video application of the smart device 1, the smart device 2, the smart device 3, the smart device 4, and the smart device 5. Therefore, according to the network list, the mobile phone can respectively send a request message for obtaining the installation information of the video application to the smart device 1, the smart device 2, the smart device 3, the smart device 4, and the smart device 5. Wherein, the request message for obtaining the installation information of the video application carries the identification information of the video application and the device identification of the mobile phone. In this way, after receiving the request message for obtaining the installation information of the video application, the smart device 1 parses the request message for obtaining the installation information of the migration application, and obtains the identification information of the video application and the device identification of the mobile phone. According to the identification information of the video application, check whether there is a video application corresponding to the identification information of the video application among the applications installed by itself. If the video application corresponding to the identification information of the video application is installed in the smart device 1, the version number of the video application in it can be obtained, and the video application installed in the smart device 1 and the version number of the installed video application are used as The installation information of the video application of the smart device 1 is sent to the mobile phone. Similarly, smart device 2, smart device 3, and smart device 4 perform the same processing as smart device 1 after receiving the request message for obtaining the installation information of the video application, and send the generated installation information of the video application to the mobile phone , which will not be repeated here. After receiving the request message for obtaining the installation information of the video application, the smart device 5 parses the request message for obtaining the installation information of the migrated application, and obtains the identification information of the video application and the device identification of the mobile phone. According to the identification information of the video application, check whether there is a video application corresponding to the identification information of the video application among the applications installed by itself. If the video application corresponding to the identification information of the video application is not installed in the smart device 5, the smart device 5 sends the installation information of the video application not installed to the mobile phone as the video application installation information. The mobile phone respectively receives the installation information of the video application sent by the smart device 1, the smart device 2, the smart device 3, the smart device 4, and the smart device 5.
步骤104、源智能设备根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备。Step 104, the source smart device determines the target smart device according to the installation information of the migration application of at least one smart device that may receive migration and the application information of the migration application of the source smart device.
其中,目标智能设备是迁移网络中的安装了所述迁移应用,且安装的迁移应用兼容源智能设备中的迁移应用的智能设备。Wherein, the target smart device is a smart device in the migration network on which the migration application is installed, and the installed migration application is compatible with the migration application in the source smart device.
需要说明的是,迁移应用的应用信息是迁移应用的属性相关信息。包括:迁移应用的版本号,分辨率等,本发明对此不作限制。It should be noted that the application information of the migration application is attribute-related information of the migration application. Including: the version number and resolution of the migration application, which are not limited in the present invention.
具体的,源智能设备在获取了迁移网络中的至少一个可能接收迁移的智能设备的迁移应用的安装信息后,可以解析至少一个可能接收迁移的智能设备的迁移应用的安装信息,确定出哪些可能接收迁移的智能设备安装了迁移应用。并根据源智能设备的迁移应用的应用信息,及已安装了迁移应用的可能接收迁移的智能设备的应用信息,在已安装了迁移应用的可能接收迁移的智能设备中,确定出安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备。在安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备仅有一个时,可以将此安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备确定为目标智能设备。在安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备有至少两个时,则可以根据选取规则,在至少两个安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备中,确定出目标智能设备。Specifically, after the source smart device obtains the installation information of the migration application of at least one smart device that may receive the migration in the migration network, it may analyze the installation information of the migration application of at least one smart device that may receive the migration, and determine which The smart device receiving the migration has the migration application installed. And according to the application information of the migration application of the source smart device, and the application information of the smart devices that may receive the migration and have installed the migration application, determine the installed migration application among the smart devices that may receive the migration and have the migration application installed Smart devices that are compatible with the migration application in the source smart device may receive the migration. When there is only one smart device that may receive the migration with the installed migration application compatible with the migration application in the source smart device, the smart device that may receive the migration with the installed migration application compatible with the migration application in the source smart device may be determined as the target smart device. When the installed migration application is compatible with the migration application in the source smart device, there are at least two smart devices that may receive the migration, then according to the selection rule, at least two installed migration applications are compatible with the migration application in the source smart device. The target smart device is determined among the smart devices receiving migration.
进一步的,选取规则可以是用户根据实际需要预先设置的。可以是,将安装的迁移应用兼容源智能设备中的迁移应用的至少两个可能接收迁移的智能设备的信息反馈给用户,由用户确定。此时,源智能设备在确定出有至少两个安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备时,可以将此至少两个可能接收迁移的智能设备的信息反馈至用户,由用户在至少两个可能接收迁移的智能设备中确定出一个可能接收迁移的智能设备作为目标智能设备。Further, the selection rules may be preset by the user according to actual needs. It may be that information of at least two smart devices that may receive migration of the installed migration application compatible with the migration application in the source smart device is fed back to the user for determination by the user. At this time, when the source smart device determines that there are at least two smart devices that may receive the migration and that the installed migration application is compatible with the migration application in the source smart device, it may feed back the information of the at least two smart devices that may receive the migration to The user determines, among at least two smart devices that may receive migration, a smart device that may receive migration as a target smart device.
选取规则也可以是用户预先设定在进行迁移应用的迁移时,其他智能设备能够进行迁移应用迁移的优先级,将满足迁移条件的,且优先级最高的智能设备作为目标智能设备。这样,源智能设备可以在确定出有至少两个安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备时,可以根据选取规则,在至少两个安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备中,将优先级最高的可能接收迁移的智能设备确定为目标智能设备。The selection rule may also be that the user pre-sets the priorities of other smart devices that can perform the migration of the migration application when the migration of the migration application is performed, and the smart device that meets the migration conditions and has the highest priority is used as the target smart device. In this way, when the source smart device determines that there are at least two installed migration applications compatible with the migration application in the source smart device that may receive the migration smart device, according to the selection rule, when at least two installed migration applications are compatible with the source smart device Among the smart devices that may receive migration in the migration application in the device, the smart device that may receive migration with the highest priority is determined as the target smart device.
需要说明的是,选取规则还可是其他规则,本发明对此不做限制。It should be noted that the selection rules may also be other rules, which is not limited in the present invention.
可选的,迁移应用的应用信息可以是迁移应用的版本号。此时,源智能设备在确定出哪些可能接收迁移的智能设备安装了迁移应用后,可以并根据源智能设备的迁移应用的版本号,在已安装了迁移应用的可能接收迁移的智能设备中,与各个已安装了迁移应用的可能接收迁移的智能设备的迁移应用的版本号进行比对,从而确定出安装的迁移应用的版本号不低于源智能设备的迁移应用的版本号的可能接收迁移的智能设备。若安装的迁移应用的版本号不低于源智能设备的迁移应用的版本号的可能接收迁移的智能设备仅有一个,则可以将这个安装的迁移应用的版本号不低于源智能设备的迁移应用的版本号的可能接收迁移的智能设备确定为目标智能设备。若安装的迁移应用的版本号不低于源智能设备的迁移应用的版本号的可能接收迁移的智能设备有至少两个,则可以根据选取规则在至少两个可能接收迁移的智能设备中确定出目标智能设备。Optionally, the application information of the migration application may be a version number of the migration application. At this time, after the source smart device determines which smart devices that may receive the migration have installed the migration application, and according to the version number of the migration application of the source smart device, among the smart devices that may receive the migration that have installed the migration application, Compare with the version number of the migration application of each smart device that has installed the migration application and may receive the migration, so as to determine the possible reception of migration whose version number of the installed migration application is not lower than the version number of the migration application of the source smart device of smart devices. If the version number of the installed migration application is not lower than the version number of the migration application of the source smart device and there is only one smart device that may receive the migration, then the migration The smart device that may receive the migration of the version number of the application is determined as the target smart device. If there are at least two smart devices that may receive the migration and the version number of the migration application installed is not lower than the version number of the migration application of the source smart device, then it can be determined from the at least two smart devices that may receive the migration according to the selection rule. target smart device.
进一步的,源智能设备根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备包括:源智能设备根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备列表。源智能设备根据目标智能设备列表,确定目标智能设备。Further, the source smart device determines the target smart device according to the installation information of at least one migration application of the smart device that may receive migration and the application information of the migration application of the source smart device: The installation information of the migration application of the smart device and the application information of the migration application of the source smart device determine the target smart device list. The source smart device determines the target smart device according to the target smart device list.
其中,目标智能设备列表中记录了迁移网络中安装了迁移应用,且安装的迁移应用兼容源智能设备中的迁移应用的智能设备的设备标识;设备标识用于唯一标示出智能设备。Wherein, the target smart device list records the device identifier of the smart device that has the migration application installed in the migration network and is compatible with the migration application in the source smart device; the device identifier is used to uniquely identify the smart device.
也就是说,源智能设备在获取了迁移网络中的至少一个可能接收迁移的智能设备的迁移应用的安装信息后,可以解析至少一个可能接收迁移的智能设备的迁移应用的安装信息,确定出哪些可能接收迁移的智能设备安装了迁移应用。并根据源智能设备的迁移应用的应用信息及已安装了迁移应用的可能接收迁移的智能设备的迁移应用的应用信息,在已安装了迁移应用的可能接收迁移的智能设备中,确定出安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备。根据确定出的安装的迁移应用兼容源智能设备中的迁移应用的可能接收迁移的智能设备,生成目标智能设备列表。这样可以将目标智能设备列表反馈至用户,由用户在目标智能列表中标记出一个可能接收迁移的智能设备为目标智能设备,这样,源智能设备可以将目标智能设备列表中用户标记处的可能接收迁移的智能设备确定为目标智能设备。That is to say, after obtaining the installation information of the migration application of at least one smart device that may receive migration in the migration network, the source smart device may analyze the installation information of at least one migration application of the smart device that may receive migration, and determine which A smart device that may receive migration has a migration application installed. And according to the application information of the migration application of the source smart device and the application information of the migration application of the smart device that has installed the migration application and may receive the migration, determine the installed The migration application is compatible with the migration application in the source smart device and may receive the migration smart device. A list of target smart devices is generated according to the determined smart devices that may receive the migration and the installed migration application is compatible with the migration application in the source smart device. In this way, the target smart device list can be fed back to the user, and the user can mark a smart device that may receive migration as the target smart device in the target smart The migrated smart device is determined as the target smart device.
如上例所述,手机在接收到智能设备1,智能设备2,智能设备3,智能设备4,智能设备5发送的视频应用的安装信息后,可以解析智能设备1,智能设备2,智能设备3,智能设备4,智能设备5发送的视频应用的安装信息。手机通过解析视频应用的安装信息可以获知智能设备1,智能设备2,智能设备3,智能设备4,智能设备5是否安装了视频应用,若安装了视频应用,其安装的版本号是多少。这样,手机可以获知智能设备1,智能设备2,智能设备3,智能设备4安装了视频应用。智能设备5没有安装视频应用,则手机不能将视频应用迁移至智能设备5中。手机可以根据自己安装的视频应用的版本号,分别于智能设备1,智能设备2,智能设备3,智能设备4安装的视频应用的版本号进行对比,确定出智能设备1,智能设备2安装的视频应用的版本号高于手机安装的视频应用的版本号,智能设备3安装的视频应用的版本号与手机安装的视频应用的版本号相同。智能设备4安装的视频应用的版本号低于手机安装的视频应用的版本号。这样,手机可以确定出在迁移网络中,能够进行视频应用迁移的智能设备为智能设备1,智能设备2,智能设备3,此时手机可以生成记录能够进行视频应用迁移的智能设备为智能设备1,智能设备2,智能设备3的目标智能设备列表,并将目标智能设备列表反馈至用户,由用户确定需要将视频设备迁移至哪个智能设备中。若用户选择将视频应用迁移至智能设备1,此时,手机可以根据用户的选择结果,确定智能设备1为目标智能设备。As mentioned in the above example, after the mobile phone receives the installation information of the video application sent by smart device 1, smart device 2, smart device 3, smart device 4, and smart device 5, it can analyze the information of smart device 1, smart device 2, and smart device 3. , the installation information of the video application sent by the smart device 4 and the smart device 5 . By analyzing the installation information of the video application, the mobile phone can know whether the video application is installed on the smart device 1, the smart device 2, the smart device 3, the smart device 4, and the smart device 5, and if the video application is installed, what is the installed version number. In this way, the mobile phone can learn that the smart device 1, the smart device 2, the smart device 3, and the smart device 4 have installed video applications. If the video application is not installed on the smart device 5, the mobile phone cannot transfer the video application to the smart device 5. The mobile phone can compare the version numbers of the video applications installed on the smart device 1, smart device 2, smart device 3, and smart device 4 according to the version number of the video application installed by itself, and determine the version numbers of the video applications installed on the smart device 1 and smart device 2. The version number of the video application is higher than that of the video application installed on the mobile phone, and the version number of the video application installed on the smart device 3 is the same as that of the video application installed on the mobile phone. The version number of the video application installed on the smart device 4 is lower than the version number of the video application installed on the mobile phone. In this way, the mobile phone can determine that in the migration network, the smart devices capable of video application migration are smart device 1, smart device 2, and smart device 3. At this time, the mobile phone can generate a record that the smart device capable of video application migration is smart device 1 , the smart device 2, the target smart device list of the smart device 3, and feed back the target smart device list to the user, and the user determines which smart device the video device needs to be migrated to. If the user chooses to migrate the video application to the smart device 1, at this time, the mobile phone can determine the smart device 1 as the target smart device according to the user's selection result.
步骤105、源智能设备将源智能设备内的迁移应用的运行信息发送至目标智能设备,以便目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用。Step 105, the source smart device sends the running information of the migrated application in the source smart device to the target smart device, so that the target smart device runs the migrated application in the target smart device according to the running information of the migrated application in the source smart device.
其中,运行信息是记录源智能设备内的迁移应用在源智能设备中的运行数据及状态的相关信息。Wherein, the running information is information related to recording the running data and status of the migration application in the source smart device in the source smart device.
具体的,源智能设备在确定出目标智能设备后,可以查看自身的迁移应用,获取源智能设备内的迁移应用的运行信息。并将获取的源智能设备内的迁移应用的运行信息发送给目标智能设备。这样,目标智能设备在接收到源智能设备内的迁移应用的运行信息后,可以开启其自身内的迁移应用。并根据接收到的源智能设备发送的源智能设备内的迁移应用的运行信息,设置自身的迁移应用的各个运行参数,从而将目标智能设备内的迁移应用的运行状态设置为源智能设备内的迁移应用的运行状态,使得目标智能设备中的迁移应用可以接着源智能设备的迁移应用继续运行。在目标智能设备完成其自身内的迁移应用的设置,使目标智能设备内的迁移应用接着源智能设备内的迁移应用继续运行,即为目标智能设备完成源智能设备内的迁移应用的迁移时,可以向源智能设备发送迁移完成消息,以便告知源智能设备完成迁移应用的迁移。Specifically, after determining the target smart device, the source smart device can check its own migration application to obtain running information of the migration application in the source smart device. And the obtained running information of the migrated application in the source smart device is sent to the target smart device. In this way, after receiving the running information of the migration application in the source smart device, the target smart device can start the migration application in itself. And according to the received running information of the migration application in the source smart device sent by the source smart device, set the various running parameters of the migration application itself, so that the running state of the migration application in the target smart device is set as the running state of the migration application in the source smart device. The running state of the migration application enables the migration application in the target smart device to continue to run following the migration application of the source smart device. When the target smart device completes the setting of the migration application in itself, so that the migration application in the target smart device continues to run after the migration application in the source smart device, that is, when the migration of the migration application in the source smart device is completed for the target smart device, A migration completion message may be sent to the source smart device, so as to inform the source smart device to complete the migration of the migration application.
如上例所述,在手机确定出智能设备1为目标智能设备时,手机可以获取自身运行视频应用的运行信息,即为获取其自身运行视频应用的运行数据及状态的相关信息,并将手机内的视频应用的运行信息发送至智能设备1。这样,智能设备1接收到手机内的视频应用的运行信息后,可以开启自身的视频应用,并根据接收的手机发送的手机内的视频应用的运行信息,设置自身的视频应用的各个运行参数,使自身的视频应用可以配置到与手机内的视频应用相同的运行状态,从而使智能设备1内的视频应用可以接着进行手机内的视频应用运行,以便使用户在智能设备1中观看的视频应用播放的位置,为在手机内的观看的视频应用播放的位置,这样用户在智能设备1中无需重新观看视频应用。若手机运行了视频应用的视频已观看时间为30:00,则智能设备1可以将自身的视频应用的视频已观看时间设置为30:00,从而使用户可以在智能设备1中继续观看视频。智能设备1在完成手机内的视频应用的迁移时,可以向手机发送迁移完成消息,以便告知手机视频应用迁移成功。As mentioned in the above example, when the mobile phone determines that the smart device 1 is the target smart device, the mobile phone can obtain the running information of the video application running by itself, that is, to obtain the running data and status information of the video The running information of the video application is sent to the smart device 1 . In this way, after the smart device 1 receives the running information of the video application in the mobile phone, it can start its own video application, and set various operating parameters of its own video application according to the received running information of the video application in the mobile phone sent by the mobile phone. Make your own video application can be configured to the same running state as the video application in the mobile phone, so that the video application in the smart device 1 can then run the video application in the mobile phone, so that the video application watched by the user in the smart device 1 The playing position is the playing position of the watched video application in the mobile phone, so that the user does not need to re-watch the video application in the smart device 1 . If the mobile phone has run the video of the video application and the watched time is 30:00, then the smart device 1 can set the video watched time of its own video application to 30:00, so that the user can continue to watch the video in the smart device 1. When the smart device 1 completes the migration of the video application in the mobile phone, it can send a migration completion message to the mobile phone, so as to inform the mobile phone that the migration of the video application is successful.
步骤106、在目标智能设备根据运行信息完成源智能设备内的迁移应用的迁移时,源智能设备接收目标智能设备返回的迁移完成消息。Step 106: When the target smart device completes the migration of the migration application in the source smart device according to the running information, the source smart device receives a migration completion message returned by the target smart device.
具体的,在目标智能设备根据运行信息完成源智能设备内的迁移应用的迁移时,目标智能设备需要向源智能设备发送迁移完成消息,此时源智能设备可以接收到迁移完成消息,从而可以根据迁移完成消息,获知目标智能设备已完成了源智能设备内的迁移应用的迁移。Specifically, when the target smart device completes the migration of the migration application in the source smart device according to the running information, the target smart device needs to send a migration completion message to the source smart device. The migration completion message is used to know that the target smart device has completed the migration of the migration application in the source smart device.
进一步的,源智能设备在获知目标智能设备完成源智能设备内的迁移应用的迁移时,可以将自身的迁移应用关闭,也可以不关闭而是继续运行,本发明对此不做限制。Furthermore, when the source smart device learns that the target smart device has completed the migration of the migration application in the source smart device, it can close its own migration application, or continue to run without closing it, which is not limited in the present invention.
如上例所述,智能设备1在完成手机内的视频应用的迁移后,可以向手机返回迁移完成消息,这样手机可以接收到迁移完成消息,进而可以根据迁移完成消息,获知智能设备1已完成了手机内的视频应用的迁移。As mentioned in the above example, after the migration of the video application in the mobile phone is completed, the smart device 1 can return the migration completion message to the mobile phone, so that the mobile phone can receive the migration completion message, and then can know that the smart device 1 has completed the migration according to the migration completion message. Migration of video applications within mobile phones.
本发明实施例提供了一种智能设备间任务迁移的方法,包括:源智能设备获取用户指令,并根据用户指令确定迁移应用,迁移应用是源智能设备中待迁移至其他智能设备中的迁移应用;源智能设备加入迁移网络;在迁移网络中包含有至少一个可能接收迁移的智能设备时,源智能设备获取至少一个可能接收迁移的智能设备的迁移应用的安装信息;源智能设备根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的版本号,确定出目标智能设备;目标智能设备是迁移网络中的安装了迁移应用,且安装的迁移应用兼容源智能设备中的迁移应用的智能设备;源智能设备将源智能设备内的迁移应用的运行信息发送至目标智能设备;在目标智能设备根据运行信息完成源智能设备内的迁移应用的迁移时,源智能设备接收目标智能设备返回的迁移完成消息。这样,用户在需要将源智能设备中的应用迁移至其他智能设备时,源智能设备可以将待迁移至其他智能设备的应用确定为迁移应用,并在确定出迁移应用后,可以加入迁移网络。在迁移网络中确定出目标智能设备,从而使源智能设备将其内的迁移应用的运行信息发送至目标智能设备,以便目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用,完成源智能设备的迁移应用的迁移,即为本发明可以将迁移应用由源智能设备迁移至目标智能设备,实现了在智能设备间实现方便、快捷地进行网络应用的迁移,提高了用户体验。An embodiment of the present invention provides a method for task migration between smart devices, including: the source smart device obtains user instructions, and determines a migration application according to the user instructions, and the migration application is a migration application to be migrated from the source smart device to other smart devices ; The source smart device joins the migration network; when there is at least one smart device that may receive migration in the migration network, the source smart device obtains the installation information of the migration application of at least one smart device that may receive migration; the source smart device according to at least one possible Receive the installation information of the migration application of the migrated smart device, and the version number of the migration application of the source smart device, and determine the target smart device; the target smart device is the migration application installed in the migration network, and the installed migration application is compatible with the source smart device The smart device of the migration application in the device; the source smart device sends the operation information of the migration application in the source smart device to the target smart device; when the target smart device completes the migration of the migration application in the source smart device according to the operation information, the source smart device The device receives the migration completion message returned by the target smart device. In this way, when the user needs to migrate the application in the source smart device to other smart devices, the source smart device can determine the application to be migrated to other smart devices as the migration application, and after the migration application is determined, it can join the migration network. The target smart device is determined in the migration network, so that the source smart device sends the operation information of the migration application in it to the target smart device, so that the target smart device runs the target smart device according to the operation information of the migration application in the source smart device. The migration application of the source smart device is completed, which means that the present invention can migrate the migration application from the source smart device to the target smart device, realizing the convenient and fast migration of network applications between smart devices, improving the user experience.
本发明实施例提供了一种智能设备间任务迁移的方法,如图2所示,包括:An embodiment of the present invention provides a method for task migration between smart devices, as shown in Figure 2, including:
步骤201、目标智能设备接收源智能设备发送的源智能设备内的迁移应用的运行信息。Step 201, the target smart device receives the running information of the migrated application in the source smart device sent by the source smart device.
其中,运行信息是记录源智能设备内的迁移应用在源智能设备中的运行数据及状态的相关信息。Wherein, the running information is information related to recording the running data and status of the migration application in the source smart device in the source smart device.
具体的,源智能设备在需要将迁移应用迁移至目标智能设备时,可以向目标智能设备发送源智能设备内的迁移应用的运行信息。目标智能设备接收此迁移应用的运行信息。Specifically, when the source smart device needs to migrate the migration application to the target smart device, it may send the running information of the migration application in the source smart device to the target smart device. The target smart device receives the running information of the migrated application.
步骤202、目标智能设备开启目标智能设备内的迁移应用,并根据接收的源智能设备内的迁移应用的运行信息,设置目标智能设备内的迁移应用的相关参数。Step 202, the target smart device starts the migration application in the target smart device, and sets relevant parameters of the migration application in the target smart device according to the received running information of the migration application in the source smart device.
具体的,目标智能设备在接收到源智能设备内的迁移应用的运行信息后,可以解析此运行信息,获知运行信息中的迁移应用的标识信息,运行数据及状态的相关信息。根据此迁移应用的标识信息在自身安装的应用中,找到与迁移应用的标识信息相对应的应用,即为找到自身安装的迁移应用,开启此自身安装的迁移应用。在开启目标智能设备自身安装的迁移应用后,可以根据运行信息中的运行数据及状态的相关信息设置自身安装的迁移应用的各个运行参数,使得迁移应用的运行状态与源智能设备的迁移应用的运行状态相同。Specifically, after receiving the running information of the migrated application in the source smart device, the target smart device can analyze the running information, and obtain the identification information of the migrated application in the running information, the running data and related status information. According to the identification information of the migration application, the application corresponding to the identification information of the migration application is found among the applications installed by itself, that is, the migration application installed by itself is found, and the migration application installed by itself is opened. After starting the migration application installed on the target smart device itself, you can set various operating parameters of the migration application installed by itself according to the operation data and status information in the operation information, so that the operation status of the migration application is the same as that of the migration application on the source smart device. The operating status is the same.
步骤203、在目标智能设备内的迁移应用根据设置的迁移应用的相关参数运行时,目标智能设备向源智能设备发送迁移完成消息。Step 203, when the migration application in the target smart device is running according to the set relevant parameters of the migration application, the target smart device sends a migration completion message to the source smart device.
具体的,目标智能设备在根据源智能设备内的迁移应用的运行信息设置完自身的迁移应用的各个运行参数后,若自身的迁移应用可以正常的运行,则说明迁移应用的迁移成功,此时目标智能设备可以向源智能设备发送迁移完成消息。Specifically, after the target smart device has set various operating parameters of its own migration application according to the operation information of the migration application in the source smart device, if its own migration application can run normally, it means that the migration of the migration application is successful. The target smart device may send a migration completion message to the source smart device.
本发明实施例提供了一种智能设备间任务迁移的方法,包括:目标智能设备接收源智能设备发送的源智能设备内的迁移应用的运行信息;目标智能设备开启目标智能设备内的迁移应用,并根据接收的源智能设备内的迁移应用的运行信息,设置目标智能设备内的迁移应用的相关参数;在目标智能设备内的迁移应用根据设置的迁移应用的相关参数运行时,目标智能设备向源智能设备发送迁移完成消息。这样,在需要进行应用的迁移时,源智能设备可以将自身的迁移应用的运行信息发送至目标智能设备,使目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用,完成源智能设备内的迁移应用的迁移,即为本发明可以将迁移应用由源智能设备迁移至目标智能设备,实现了在智能设备间实现方便、快捷地进行网络应用的迁移,提高了用户体验。An embodiment of the present invention provides a method for task migration between smart devices, including: the target smart device receives the running information of the migration application in the source smart device sent by the source smart device; the target smart device starts the migration application in the target smart device, And set the relevant parameters of the migration application in the target smart device according to the received running information of the migration application in the source smart device; The source smart device sends a migration complete message. In this way, when application migration is required, the source smart device can send the running information of its own migration application to the target smart device, so that the target smart device can run the migration in the target smart device according to the running information of the migration application in the source smart device. Application, to complete the migration of the migration application in the source smart device, that is, the present invention can migrate the migration application from the source smart device to the target smart device, realizing the convenient and fast migration of network applications between smart devices, improving the user experience.
本发明实施例提供了一种智能设备间任务迁移的方法,如图3所示,包括:An embodiment of the present invention provides a method for task migration between smart devices, as shown in FIG. 3 , including:
步骤301、源智能设备获取用户指令,并根据用户指令确定迁移应用。Step 301, the source smart device acquires user instructions, and determines a migration application according to the user instructions.
其中,迁移应用是源智能设备中待迁移至其他智能设备中的应用。Wherein, the migration application is an application in the source smart device to be migrated to other smart devices.
具体的,可参考步骤101,在此不再赘述。For details, reference may be made to step 101, which will not be repeated here.
步骤302、源智能设备加入迁移网络。Step 302, the source smart device joins the migration network.
具体的,可参考步骤102,在此不再赘述。For details, reference may be made to step 102, which will not be repeated here.
步骤303、在迁移网络中包含有至少一个可能接收迁移的智能设备时,源智能设备获取至少一个可能接收迁移的智能设备的迁移应用的安装信息。Step 303: When the migration network contains at least one smart device that may receive migration, the source smart device acquires the installation information of the migration application of the at least one smart device that may receive migration.
其中,可能接收迁移的智能设备是迁移网络中除所述源智能设备之外的智能设备。Wherein, the smart devices that may receive migration are smart devices in the migration network other than the source smart device.
具体的,可参考步骤103,在此不再赘述。For details, reference may be made to step 103, which will not be repeated here.
步骤304、源智能设备根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备。Step 304, the source smart device determines the target smart device according to the installation information of the migration application of at least one smart device that may receive migration and the application information of the migration application of the source smart device.
具体的,可参考步骤104,在此不再赘述。For details, reference may be made to step 104, which will not be repeated here.
步骤305、源智能设备将源智能设备内的迁移应用的运行信息发送至目标智能设备,以便目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用。目标智能设备接收源智能设备发送的源智能设备内的迁移应用的运行信息。Step 305, the source smart device sends the running information of the migrated application in the source smart device to the target smart device, so that the target smart device runs the migrated application in the target smart device according to the running information of the migrated application in the source smart device. The target smart device receives the running information of the migration application in the source smart device sent by the source smart device.
具体的,可参考步骤105及步骤201,在此不再赘述。Specifically, reference may be made to step 105 and step 201, which will not be repeated here.
步骤306、目标智能设备开启目标智能设备内的迁移应用,并根据接收的源智能设备内的迁移应用的运行信息,设置目标智能设备内迁移应用的相关参数。Step 306, the target smart device starts the migration application in the target smart device, and sets relevant parameters of the migration application in the target smart device according to the received running information of the migration application in the source smart device.
具体的,可参考步骤202,在此不再赘述。For details, reference may be made to step 202, which will not be repeated here.
需要说明的是,目标智能设备在根据源智能设备发送的源智能设备内的迁移应用的运行信息,设置其自身安装的迁移应用的相关参数后,目标智能设备中的迁移应用可能根据各个运行参数进行正常的运行,也可能无法正常运行。目标智能设备根据迁移应用运行结果的不同,下面执行的步骤不同。在目标智能设备内的迁移应用根据设置的迁移应用的相关参数正常运行时,执行步骤307a。在目标智能设备内的迁移应用根据设置的迁移应用的相关参数无法正常运行时,执行步骤307b。It should be noted that after the target smart device sets the relevant parameters of the migration application installed on itself according to the running information of the migration application in the source smart device sent by the source smart device, the migration application in the target smart device may It may or may not work properly. The target smart device performs different steps according to the running result of the migration application. When the migration application in the target smart device runs normally according to the set relevant parameters of the migration application, step 307a is executed. When the migration application in the target smart device cannot run normally according to the set relevant parameters of the migration application, step 307b is executed.
步骤307a、在目标智能设备内的迁移应用根据设置的迁移应用的相关参数运行时,目标智能设备向源智能设备发送迁移完成消息。源智能设备接收目标智能设备返回的迁移完成消息。Step 307a, when the migration application in the target smart device is running according to the set relevant parameters of the migration application, the target smart device sends a migration completion message to the source smart device. The source smart device receives the migration completion message returned by the target smart device.
具体的,可参考步骤203及步骤106,在此不再赘述。Specifically, reference may be made to step 203 and step 106, which will not be repeated here.
步骤307b、在目标智能设备内的迁移应用根据设置的迁移应用的相关参数无法运行时,目标智能设备向源智能设备发送迁移失败消息。源智能设备接收目标智能设备返回的迁移失败消息。Step 307b. When the migration application in the target smart device fails to run according to the set relevant parameters of the migration application, the target smart device sends a migration failure message to the source smart device. The source smart device receives the migration failure message returned by the target smart device.
具体的,在目标智能设备内的迁移应用根据设置的迁移应用的相关参数无法运行时,即为迁移应用由源智能设备迁移至目标智能设备时,目标智能设备的迁移应用无法正常运行,此时目标智能设备可以确定迁移应用的迁移失败,此时向源智能设备发送迁移失败消息。源智能设备接收目标智能设备返回的迁移失败消息。Specifically, when the migration application in the target smart device cannot run according to the relevant parameters of the migration application set, that is, when the migration application is migrated from the source smart device to the target smart device, the migration application of the target smart device cannot run normally. The target smart device may determine that the migration of the migration application fails, and at this time, send a migration failure message to the source smart device. The source smart device receives the migration failure message returned by the target smart device.
进一步的,源智能设备接收到迁移失败消息后,可以重新将迁移应用迁移至其他智能设备中。Further, after receiving the migration failure message, the source smart device can re-migrate the migration application to other smart devices.
需要说明的是,在源智能设备中不同的步骤可以由不同的进程执行。在需要与目标智能设备通信时,可以由能够与目标智能设备通信的进程执行。而源智能设备的无需与目标智能设备通信的部分,可以由其他进程执行。而不同进程间的通信可以通过API(Application Programming Interface,应用程序编程接口)进行。It should be noted that different steps in the source smart device may be executed by different processes. When it is necessary to communicate with the target smart device, it can be executed by a process capable of communicating with the target smart device. The parts of the source smart device that do not need to communicate with the target smart device can be executed by other processes. The communication between different processes can be carried out through API (Application Programming Interface, Application Programming Interface).
本发明实施例提供了一种智能设备间任务迁移的方法,包括:源智能设备获取用户指令,并根据用户指令确定迁移应用,迁移应用是源智能设备中待迁移至其他智能设备中的迁移应用;源智能设备加入迁移网络;在迁移网络中包含有至少一个可能接收迁移的智能设备时,源智能设备获取至少一个可能接收迁移的智能设备的迁移应用的安装信息;源智能设备根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的版本号,确定出目标智能设备;目标智能设备是迁移网络中的安装了迁移应用,且安装的迁移应用兼容源智能设备中的迁移应用的智能设备;源智能设备将源智能设备内的迁移应用的运行信息发送至目标智能设备;在目标智能设备根据运行信息完成源智能设备内的迁移应用的迁移时,源智能设备接收目标智能设备返回的迁移完成消息。这样,用户在需要将源智能设备中的应用迁移至其他智能设备时,源智能设备可以将待迁移至其他智能设备的应用确定为迁移应用,并在确定出迁移应用后,可以加入迁移网络。在迁移网络中确定出目标智能设备,从而使源智能设备将其内的迁移应用的运行信息发送至目标智能设备,以便目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用,完成源智能设备的迁移应用的迁移,即为本发明可以将迁移应用由源智能设备迁移至目标智能设备,实现了在智能设备间实现方便、快捷地进行网络应用的迁移,提高了用户体验。An embodiment of the present invention provides a method for task migration between smart devices, including: the source smart device obtains user instructions, and determines a migration application according to the user instructions, and the migration application is a migration application to be migrated from the source smart device to other smart devices ; The source smart device joins the migration network; when there is at least one smart device that may receive migration in the migration network, the source smart device obtains the installation information of the migration application of at least one smart device that may receive migration; the source smart device according to at least one possible Receive the installation information of the migration application of the migrated smart device, and the version number of the migration application of the source smart device, and determine the target smart device; the target smart device is the migration application installed in the migration network, and the installed migration application is compatible with the source smart device The smart device of the migration application in the device; the source smart device sends the operation information of the migration application in the source smart device to the target smart device; when the target smart device completes the migration of the migration application in the source smart device according to the operation information, the source smart device The device receives the migration completion message returned by the target smart device. In this way, when the user needs to migrate the application in the source smart device to other smart devices, the source smart device can determine the application to be migrated to other smart devices as the migration application, and after the migration application is determined, it can join the migration network. The target smart device is determined in the migration network, so that the source smart device sends the operation information of the migration application in it to the target smart device, so that the target smart device runs the target smart device according to the operation information of the migration application in the source smart device. The migration application of the source smart device is completed, which means that the present invention can migrate the migration application from the source smart device to the target smart device, realizing the convenient and fast migration of network applications between smart devices, improving the user experience.
本发明实施例提供了一种智能设备间任务迁移的装置,应用于源智能设备,如图4所示,包括:An embodiment of the present invention provides a device for task migration between smart devices, which is applied to the source smart device, as shown in Figure 4, including:
处理单元401,用于获取用户指令,并根据用户指令确定迁移应用。The processing unit 401 is configured to acquire a user instruction, and determine a migration application according to the user instruction.
其中,迁移应用是源智能设备中待迁移至其他智能设备中的迁移应用。Wherein, the migration application is a migration application in the source smart device to be migrated to other smart devices.
处理单元401,还用于加入迁移网络。The processing unit 401 is also configured to join the migration network.
具体的,处理单元401,具体用于广播报文。在接收到可能接收迁移的智能设备的响应消息时,确定可能接收迁移的智能设备的响应消息中携带的网络名与源智能设备的网络名是否相同。若相同,则根据网络名及预设密码,加入可能接收迁移的智能设备所在的网络。若不相同,则检测历史网络列表,确定历史网络列表中是否有与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项。若在历史网络列表中有与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项,则根据历史网络列表中的与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项,加入可能接收迁移的智能设备所在的网络;并更新网络名。Specifically, the processing unit 401 is specifically configured to broadcast packets. When receiving the response message of the smart device that may receive migration, it is determined whether the network name carried in the response message of the smart device that may receive migration is the same as the network name of the source smart device. If they are the same, according to the network name and preset password, join the network where the smart device that may receive migration is located. If not, check the historical network list to determine whether there is a matching item in the historical network list that matches the network name carried in the response message of the smart device that may receive migration. If there is a matching item in the historical network list that matches the network name carried in the response message of the smart device that may receive migration, then according to the network name carried in the response message of the smart device that may receive migration in the historical network list For matching items, join the network where the smart device that may receive the migration is located; and update the network name.
其中,报文中携带有源智能设备的设备标识和源智能设备的网络名。源智能设备的网络名是源智能设备默认加入的网络名称。Wherein, the message carries the device identifier of the active smart device and the network name of the source smart device. The network name of the source smart device is the network name that the source smart device joins by default.
进一步的,处理单元401处理在确定可能接收迁移的智能设备的响应消息中携带的网络名与源智能设备的网络名不相同,则检测历史网络列表,确定所述历史网络列表中是否有与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项具体为:若不相同,则根据预设网络优先级顺序,检测历史网络列表,确定历史网络列表中是否有与可能接收迁移的智能设备的响应消息中携带的网络名相匹配的匹配项。Further, the processing unit 401 processes that the network name carried in the response message of the smart device that may receive the migration is not the same as the network name of the source smart device, then detects the historical network list, and determines whether there is a possible network name in the historical network list. The matching item that matches the network name carried in the response message of the smart device that received the migration is specifically: if not the same, check the historical network list according to the preset network priority order, and determine whether there is a network name in the historical network list that is likely to receive migration. matches the network name carried in the response message of the smart device.
获取单元402,用于在迁移网络中包含有至少一个可能接收迁移的智能设备时,获取至少一个可能接收迁移的智能设备的迁移应用的安装信息。The obtaining unit 402 is configured to obtain the installation information of the migration application of at least one smart device that may receive migration when the migration network includes at least one smart device that may receive migration.
其中,可能接收迁移的智能设备是迁移网络中除源智能设备之外的智能设备。Wherein, the smart devices that may receive migration are smart devices in the migration network except the source smart device.
确定单元403,用于根据获取单元402获取的至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备。The determining unit 403 is configured to determine the target smart device according to the installation information of the migration application of at least one smart device that may receive migration and the application information of the migration application of the source smart device obtained by the obtaining unit 402 .
其中,目标智能设备是迁移网络中的安装了迁移应用,且安装的迁移应用兼容源智能设备中的迁移应用的智能设备。Wherein, the target smart device is a smart device installed with a migration application in the migration network, and the installed migration application is compatible with the migration application in the source smart device.
具体的,确定单元403,具体用于根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的应用信息,确定出目标智能设备列表;根据目标智能设备列表,确定目标智能设备。Specifically, the determining unit 403 is specifically configured to determine the target smart device list according to the installation information of the migration application of at least one smart device that may receive migration and the application information of the migration application of the source smart device; according to the target smart device list, Determine the target smart device.
其中,目标智能设备列表中记录了迁移网络中安装了迁移应用,且安装的迁移应用兼容源智能设备中的迁移应用的智能设备的设备标识。设备标识用于唯一标示出智能设备。Wherein, the target smart device list records the device identification of the smart device that has the migration application installed in the migration network, and the installed migration application is compatible with the migration application in the source smart device. The device identifier is used to uniquely identify the smart device.
发送单元404,用于将源智能设备内的迁移应用的运行信息发送至目标智能设备,以便目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用。The sending unit 404 is configured to send the running information of the migration application in the source smart device to the target smart device, so that the target smart device runs the migration application in the target smart device according to the running information of the migration application in the source smart device.
其中,运行信息是记录源智能设备内的迁移应用在源智能设备中的运行数据及状态的相关信息。Wherein, the running information is information related to recording the running data and status of the migration application in the source smart device in the source smart device.
接收单元405,用于在目标智能设备根据运行信息完成源智能设备内的迁移应用的迁移时,接收目标智能设备返回的迁移完成消息。The receiving unit 405 is configured to receive a migration completion message returned by the target smart device when the target smart device completes the migration of the migration application in the source smart device according to the running information.
本发明实施例提供了一种智能设备间任务迁移的装置,应用于源智能设备,此时源智能设备获取用户指令,并根据用户指令确定迁移应用,迁移应用是源智能设备中待迁移至其他智能设备中的迁移应用;源智能设备加入迁移网络;在迁移网络中包含有至少一个可能接收迁移的智能设备时,源智能设备获取至少一个可能接收迁移的智能设备的迁移应用的安装信息;源智能设备根据至少一个可能接收迁移的智能设备的迁移应用的安装信息,及源智能设备的迁移应用的版本号,确定出目标智能设备;目标智能设备是迁移网络中的安装了迁移应用,且安装的迁移应用兼容源智能设备中的迁移应用的智能设备;源智能设备将源智能设备内的迁移应用的运行信息发送至目标智能设备;在目标智能设备根据运行信息完成源智能设备内的迁移应用的迁移时,源智能设备接收目标智能设备返回的迁移完成消息。这样,用户在需要将源智能设备中的应用迁移至其他智能设备时,源智能设备可以将待迁移至其他智能设备的应用确定为迁移应用,并在确定出迁移应用后,可以加入迁移网络。在迁移网络中确定出目标智能设备,从而使源智能设备将其内的迁移应用的运行信息发送至目标智能设备,以便目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用,完成源智能设备的迁移应用的迁移,即为本发明可以将迁移应用由源智能设备迁移至目标智能设备,实现了在智能设备间实现方便、快捷地进行网络应用的迁移,提高了用户体验。The embodiment of the present invention provides a device for task migration between smart devices, which is applied to the source smart device. At this time, the source smart device obtains user instructions and determines the migration application according to the user instructions. The migration application is the source smart device to be migrated to other The migration application in the smart device; the source smart device joins the migration network; when there is at least one smart device that may receive migration in the migration network, the source smart device obtains the installation information of the migration application of at least one smart device that may receive migration; the source The smart device determines the target smart device based on the installation information of the migration application of at least one smart device that may receive the migration and the version number of the migration application of the source smart device; the target smart device is the migration application installed in the migration network, and the installation The migration application in the source smart device is compatible with the migration application smart device in the source smart device; the source smart device sends the running information of the migration application in the source smart device to the target smart device; the target smart device completes the migration application in the source smart device according to the running information During migration, the source smart device receives the migration completion message returned by the target smart device. In this way, when the user needs to migrate the application in the source smart device to other smart devices, the source smart device can determine the application to be migrated to other smart devices as the migration application, and after the migration application is determined, it can join the migration network. The target smart device is determined in the migration network, so that the source smart device sends the operation information of the migration application in it to the target smart device, so that the target smart device runs the target smart device according to the operation information of the migration application in the source smart device. The migration application of the source smart device is completed, which means that the present invention can migrate the migration application from the source smart device to the target smart device, realizing the convenient and fast migration of network applications between smart devices, improving the user experience.
本发明实施例提供了一种智能设备间任务迁移的装置,应用于目标智能设备,如图5所示,包括:An embodiment of the present invention provides an apparatus for task migration between smart devices, which is applied to a target smart device, as shown in FIG. 5 , including:
接收单元501,用于接收源智能设备发送的源智能设备内的迁移应用的运行信息。The receiving unit 501 is configured to receive the running information of the migrated application in the source smart device sent by the source smart device.
其中,运行信息是记录源智能设备内的迁移应用在源智能设备中的运行数据及状态的相关信息。Wherein, the running information is information related to recording the running data and status of the migration application in the source smart device in the source smart device.
处理单元502,用于开启目标智能设备内的迁移应用,并根据接收的源智能设备内的迁移应用的运行信息,设置目标智能设备内的迁移应用的相关参数。The processing unit 502 is configured to start the migration application in the target smart device, and set relevant parameters of the migration application in the target smart device according to the received running information of the migration application in the source smart device.
发送单元503,用于在目标智能设备内的迁移应用根据设置的所述迁移应用的相关参数运行时,向源智能设备发送迁移完成消息。The sending unit 503 is configured to send a migration completion message to the source smart device when the migration application in the target smart device is running according to the set relevant parameters of the migration application.
本发明实施例提供了一种智能设备间任务迁移的装置,应用于目标智能设备,此时,目标智能设备接收源智能设备发送的源智能设备内的迁移应用的运行信息;目标智能设备开启目标智能设备内的迁移应用,并根据接收的源智能设备内的迁移应用的运行信息,设置目标智能设备内的迁移应用的相关参数;在目标智能设备内的迁移应用根据设置的迁移应用的相关参数运行时,目标智能设备向源智能设备发送迁移完成消息。这样,在需要进行应用的迁移时,源智能设备可以将自身的迁移应用的运行信息发送至目标智能设备,使目标智能设备根据源智能设备内的迁移应用的运行信息运行目标智能设备内的迁移应用,完成源智能设备内的迁移应用的迁移,即为本发明可以将迁移应用由源智能设备迁移至目标智能设备,实现了在智能设备间实现方便、快捷地进行网络应用的迁移,提高了用户体验。The embodiment of the present invention provides a device for task migration between smart devices, which is applied to the target smart device. At this time, the target smart device receives the running information of the migration application in the source smart device sent by the source smart device; the target smart device starts the target The migration application in the smart device, and according to the received running information of the migration application in the source smart device, set the relevant parameters of the migration application in the target smart device; the migration application in the target smart device is based on the relevant parameters of the migration application set When running, the target smart device sends a migration completion message to the source smart device. In this way, when application migration is required, the source smart device can send the running information of its own migration application to the target smart device, so that the target smart device can run the migration in the target smart device according to the running information of the migration application in the source smart device. Application, to complete the migration of the migration application in the source smart device, that is, the present invention can migrate the migration application from the source smart device to the target smart device, realizing the convenient and fast migration of network applications between smart devices, improving the user experience.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610040818.5A CN105491165B (en) | 2016-01-21 | 2016-01-21 | The method and device of task immigration between a kind of smart machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610040818.5A CN105491165B (en) | 2016-01-21 | 2016-01-21 | The method and device of task immigration between a kind of smart machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105491165A CN105491165A (en) | 2016-04-13 |
CN105491165B true CN105491165B (en) | 2018-10-09 |
Family
ID=55677875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610040818.5A Active CN105491165B (en) | 2016-01-21 | 2016-01-21 | The method and device of task immigration between a kind of smart machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105491165B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106484563B (en) * | 2016-09-14 | 2020-01-14 | Oppo广东移动通信有限公司 | Data migration method and terminal equipment |
CN106775815B (en) * | 2016-11-16 | 2020-02-18 | Oppo广东移动通信有限公司 | Method and device for application data migration |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102202355A (en) * | 2011-05-24 | 2011-09-28 | 上海聚力传媒技术有限公司 | Method and equipment for switching current network application between user equipment |
CN102546649A (en) * | 2012-01-19 | 2012-07-04 | 华为技术有限公司 | Application transfer method, device and system |
CN103034533A (en) * | 2011-09-30 | 2013-04-10 | 深圳市龙视传媒有限公司 | Method, device and terminal of switching games between different terminals |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130173696A1 (en) * | 2011-12-29 | 2013-07-04 | Electronics And Telecommunications Research Institute | Information providing service system and method based on inter-device information exchange protocol |
-
2016
- 2016-01-21 CN CN201610040818.5A patent/CN105491165B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102202355A (en) * | 2011-05-24 | 2011-09-28 | 上海聚力传媒技术有限公司 | Method and equipment for switching current network application between user equipment |
CN103034533A (en) * | 2011-09-30 | 2013-04-10 | 深圳市龙视传媒有限公司 | Method, device and terminal of switching games between different terminals |
CN102546649A (en) * | 2012-01-19 | 2012-07-04 | 华为技术有限公司 | Application transfer method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN105491165A (en) | 2016-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3206362B1 (en) | Account login method and apparatus | |
CN107483715B (en) | Method and system for communication between terminal and equipment, terminal and storage medium | |
EP3484196B1 (en) | Method and apparatus for registering wireless device in wireless communication system | |
US10187474B2 (en) | Method and device for resource sharing between devices | |
US20130065521A1 (en) | Near field communication (nfc) terminal and method for data synchronization | |
KR101687521B1 (en) | Multi-screen interaction method, devices, and system | |
CN104936304A (en) | Intelligent equipment binding method, intelligent equipment, and server | |
CN108781473B (en) | Method and equipment for sharing files among different terminals | |
KR20200143487A (en) | Data synchronization across multiple devices | |
EP2924954B1 (en) | Device controlling methods, client and server | |
CN107750466A (en) | Use equipment near synchronized cue pairing | |
JP2018501676A (en) | Method, apparatus and system for accessing a wireless network | |
US9602868B2 (en) | Method and apparatus for controlling a media device | |
CN105554588B (en) | Content receiving device and display device supporting closed captioning | |
JP2017509282A (en) | Method and apparatus for connecting to wireless network of terminal device, program, and recording medium | |
WO2021169907A1 (en) | Screen projection method, receiving end device, and sending end device | |
US11163827B2 (en) | Video processing method, device, terminal and storage medium | |
EP3833153B1 (en) | Network connection methods and devices | |
WO2016026108A1 (en) | Application program switch method, apparatus and electronic terminal | |
CN103561063B (en) | A kind of method of Register top box and terminal | |
CN105491165B (en) | The method and device of task immigration between a kind of smart machine | |
US10382607B2 (en) | Switching TV channels using a mobile device and a set-top box | |
CN106899882B (en) | Video progress update method and terminal | |
KR101401526B1 (en) | Method for sharing service profile between heterogeneous devices, mobile terminal, and recording medium thereof | |
WO2016188315A1 (en) | Method for pushing multimedia information and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220628 Address after: 201100 room 13, floor 2, building 4, No. 728, Guanghua Road, Minhang District, Shanghai Patentee after: SHANGHAI DI'AN TECHNOLOGY Co.,Ltd. Address before: 710129 computer college, Chang'an campus, northwest Polytechnic University, Xi'an, Shaanxi 886 Patentee before: Northwestern Polytechnical University |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method and device for task migration between intelligent devices Granted publication date: 20181009 Pledgee: China Minsheng Banking Corp Shanghai branch Pledgor: SHANGHAI DI'AN TECHNOLOGY Co.,Ltd. Registration number: Y2024310001040 |