Movatterモバイル変換


[0]ホーム

URL:


CN106992882B - Router file migration method and device - Google Patents

Router file migration method and device
Download PDF

Info

Publication number
CN106992882B
CN106992882BCN201710183065.8ACN201710183065ACN106992882BCN 106992882 BCN106992882 BCN 106992882BCN 201710183065 ACN201710183065 ACN 201710183065ACN 106992882 BCN106992882 BCN 106992882B
Authority
CN
China
Prior art keywords
router
migrated
file
target
virtual address
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
Application number
CN201710183065.8A
Other languages
Chinese (zh)
Other versions
CN106992882A (en
Inventor
钱庄
毕晓东
胡先东
王云鹏
马元媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201710183065.8ApriorityCriticalpatent/CN106992882B/en
Publication of CN106992882ApublicationCriticalpatent/CN106992882A/en
Application grantedgrantedCritical
Publication of CN106992882BpublicationCriticalpatent/CN106992882B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本公开是关于一种路由器文件迁移方法和装置,该方法包括:获取待迁移路由器的虚拟地址;获取待迁移路由器的待迁移文件的信息;向目标路由器发送文件迁移指令;文件迁移指令包括:待迁移文件的信息和待迁移路由器的虚拟地址,迁移指令用于指示目标路由器根据待迁移文件的信息,通过目标路由器的虚拟地址、待迁移路由器的虚拟地址,将待迁移文件从待迁移路由器迁移至目标路由器。本公开提供的路由器文件迁移方法和装置,简化了迁移路由器的文件的步骤,提高了迁移路由器的文件的效率,提高了迁移路由器的文件的可靠性,提高了用户体验。

Figure 201710183065

The present disclosure relates to a router file migration method and device. The method includes: obtaining a virtual address of a router to be migrated; obtaining information of a file to be migrated of the router to be migrated; sending a file migration instruction to a target router; the file migration instruction includes: The information of the migration file and the virtual address of the router to be migrated. The migration instruction is used to instruct the target router to migrate the file to be migrated from the router to be migrated to the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated. target router. The router file migration method and device provided by the present disclosure simplifies the steps of migrating router files, improves the efficiency of migrating router files, improves the reliability of migrating router files, and improves user experience.

Figure 201710183065

Description

Router file migration method and device
Technical Field
The present disclosure relates to router technologies, and in particular, to a method and an apparatus for migrating a router file.
Background
With the continuous improvement of living standard, intelligent devices such as intelligent terminals and intelligent household appliances are more and more popularized in families. Currently, in the process of using these smart devices, these smart devices need to access the public network through a Wireless-Fidelity (WiFi) network provided by a Wireless router, so as to provide diversified services for users. Thus, users often set up wireless routers in homes.
In the related art, most wireless routers are provided with a hard disk for storing files downloaded offline, configuration files, backup files, and the like. However, when a user replaces the wireless router with a new wireless router, the user needs to first migrate the file in the wireless router to the terminal. And then, the file is migrated from the terminal to a new wireless router, so that the reliability of the file migration operation of the wireless router is poor, the efficiency is low, and the user experience is low.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a router file migration method and apparatus. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for migrating a router file is provided, including:
acquiring a virtual address of a router to be migrated;
acquiring information of a file to be migrated of a router to be migrated;
sending a file migration instruction to a target router; the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the terminal acquires the virtual address of the router to be migrated and the information of the file to be migrated of the router to be migrated, the terminal can send a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the file migration instruction, the steps of file migration of the router are simplified, and the efficiency of file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, obtaining the virtual address of the router to be migrated includes:
sending a router to be migrated configuration request to the router to be migrated, wherein the router to be migrated configuration request is used for indicating the router to be migrated to configure a virtual address communicated with a target router;
receiving a router to be migrated configuration response sent by the router to be migrated based on the router to be migrated configuration request; the router to be migrated configuration response includes: the virtual address of the router to be migrated.
Optionally, before obtaining the information of the file to be migrated of the router to be migrated, the method further includes:
sending a target router configuration request to a target router; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
and receiving a target router configuration response sent by the target router based on the target router configuration request.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps that a terminal obtains a virtual address of a router to be migrated, when the terminal can determine that a file can be migrated between the router to be migrated and a target router after receiving a target router configuration response sent by the target router based on a target router configuration request, the terminal can further obtain information of the file to be migrated of the router to be migrated, and send a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, before sending the file migration instruction to the target router, the method further includes:
sending a connection request to a target router; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
and receiving a connection response sent by the target router based on the connection request.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the terminal acquires the virtual address of the router to be migrated and the information of the file to be migrated of the router to be migrated, before the terminal sends a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, the target router can be indicated to access the wireless network of the router to be migrated, so that a communication channel can exist between the target router and the router to be migrated, and the target router can migrate the file to be migrated from the router to be migrated by using the communication channel through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the obtaining information of the file to be migrated of the router to be migrated includes:
reading information of a file stored by a router to be migrated, and generating a file list;
pushing a file list;
acquiring a selection instruction input by a user based on the file list;
and determining the information of the file to be migrated in the file list according to the selection instruction.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the terminal acquires the virtual address of the router to be migrated, the terminal can read the information of the file stored in the router to be migrated, generate a file list and further push the file list to the user. In this way, after a selection instruction input by the user based on the file list is obtained, the terminal can determine the information of the file to be migrated in the file list according to the selection instruction of the user, and then can send a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, the steps of file migration of the router are simplified, and the efficiency of file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, before reading the information of the file stored in the router to be migrated, the method further includes:
and determining that the router to be migrated has the management authority.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: before reading the information of the file in the router to be migrated, the terminal can also determine that the router to be migrated has the management authority, so that an illegal terminal can be prevented from accessing the router to be migrated, and the safety of the router to be migrated is ensured.
Optionally, before sending the file migration instruction to the target router, the method further includes:
acquiring an identifier of a router to be migrated;
and sending the identifier of the router to be migrated to the target router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the terminal can acquire the identifier of the router to be migrated before sending the migration instruction to the target router, and further can send the identifier of the router to be migrated to the target router, so that in the process of migrating the file to be migrated from the router to be migrated by the target router, if the connection mode between the target router and the router to be migrated changes, the target router can acquire the virtual address of the router to be migrated in the second connection mode through the identifier of the router to be migrated stored in the target router, and further the target router can continue to transmit the file to be migrated through the virtual address of the router to be migrated in the second connection mode, thereby ensuring the continuity of file migration of the router and improving the efficiency of file migration of the router.
Optionally, the identifier of the router to be migrated is a serial number SN of the router to be migrated.
According to a second aspect of the embodiments of the present disclosure, there is provided a router file migration method, including:
receiving a file migration instruction sent by a terminal; the file migration instruction comprises: the information of the file to be migrated and the virtual address of the router to be migrated are stored in the router to be migrated;
acquiring a virtual address of a target router;
and migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and through the virtual address of the router to be migrated and the virtual address of the target router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after receiving the file migration instruction sent by the terminal, the target router can acquire the virtual address of the target router, and then the file to be migrated can be migrated from the router to be migrated through the virtual address of the router to be migrated and the virtual address of the target router according to the information of the file to be migrated, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, before receiving the file migration instruction sent by the terminal, the method further includes:
receiving a target router configuration request sent by a terminal; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
configuring a virtual address communicated with a router to be migrated according to the configuration request of the target router;
and sending a target router configuration response responding to the target router configuration request to the terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the target router can receive a target router configuration request sent by the terminal before receiving the file migration instruction sent by the terminal, so that the target router can configure a virtual address communicated with the router to be migrated according to the request, and send a target router configuration response responding to the target router configuration request to the terminal. Therefore, the terminal acquires the virtual address of the router to be migrated, and when the terminal can determine that the file can be migrated between the router to be migrated and the target router after receiving the target router configuration response sent by the target router based on the target router configuration request, the terminal can further acquire the information of the file to be migrated of the router to be migrated, and send a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, before receiving the file migration instruction sent by the terminal, the method further includes:
receiving a connection request sent by a terminal; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
accessing a wireless network of the router to be migrated according to the connection request;
and sending a connection response responding to the connection request to the terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: before receiving a file migration instruction sent by a terminal, a target router can access a wireless network of a router to be migrated according to an instruction of the terminal, so that a communication channel can exist between the target router and the router to be migrated, and after receiving the file migration instruction, the target router can migrate a file to be migrated from the router to be migrated by using the communication channel through a virtual address of the target router and a virtual address of the router to be migrated, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the connection request includes: the identifier of the wireless network of the router to be migrated;
accessing a wireless network of a router to be migrated according to the connection request, comprising:
scanning a wireless network covering a target router to obtain an identifier of the wireless network covering the target router;
searching an identifier matched with the identifier of the wireless network of the router to be migrated in the identifier of the wireless network covering the target router;
and accessing the wireless network corresponding to the identifier matched with the identifier of the wireless network of the router to be migrated.
Optionally, before receiving the file migration instruction sent by the terminal, the method further includes:
and receiving the identifier of the router to be migrated, which is sent by the terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the target router can receive the identifier of the router to be migrated sent by the terminal before receiving the migration instruction sent by the terminal, so that in the process of migrating the file to be migrated from the router to be migrated by the target router, if the connection mode between the target router and the router to be migrated is changed, the target router can continue to migrate the file to be migrated from the router to be migrated through the identifier of the router to be migrated stored in the target router, the continuity of file migration of the router is ensured, and the efficiency of file migration of the router is improved.
Optionally, in the process of migrating the file to be migrated from the router to be migrated to the target router, the target router and the router to be migrated are switched from the first connection mode to the second connection mode;
then, according to the information of the file to be migrated, migrating the file to be migrated from the router to be migrated to the target router through the virtual address of the router to be migrated and the virtual address of the target router, including:
after the first connection mode is converted into the second connection mode, acquiring a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated;
and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the target router and the router to be migrated are switched from the first connection mode to the second connection mode in the process of migrating the file to be migrated from the router to be migrated by the target router, the target router acquires the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated, so that the target router can continue to migrate the file to be migrated from the router to be migrated according to the virtual address of the router to be migrated in the second connection mode, the continuity of file migration of the router is ensured, and the efficiency of file migration of the router is improved.
Optionally, obtaining the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated includes:
sending an address query request message to a server; the address query request message includes: an identifier of the router to be migrated; the server stores the virtual address of the router to be migrated under the second connection mode, wherein the virtual address is reported by the router to be migrated;
receiving an address query response message sent by a server; the address query response message includes: and the virtual address of the router to be migrated in the second connection mode.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in the process that the target router migrates the file to be migrated from the router to be migrated, if the connection mode between the target router and the router to be migrated changes, the target router may send an address query request message carrying the identifier of the router to be migrated to the server, so that the target router may receive an address query response message carrying the virtual address of the router to be migrated in the second connection mode sent by the server, and thus the target router may continue to transmit the file to be migrated through the virtual address of the router to be migrated in the second connection mode, thereby ensuring the continuity of file migration of the router and improving the file migration efficiency of the router.
Optionally, obtaining the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated includes:
carrying out identity verification on the router to be migrated;
and after the identity verification of the router to be migrated passes, acquiring the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the target router can acquire the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated when the identity of the router to be migrated passes the verification, that is, when the router connected with the target router in the second connection mode is determined to be the router to be migrated, so that the correctness of the router file migration is ensured.
Optionally, after the identity of the router to be migrated is checked, the method further includes:
and after the identity verification of the router to be migrated fails, sending a prompt message to the terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the target router can send a prompt message to the terminal when the identity verification of the router to be migrated fails, namely the router connected with the target router in the second connection mode is determined not to be the router to be migrated, so that the terminal reminds a user that the router connected with the target router is replaced, and the correctness of router file migration is ensured.
Optionally, the identifier of the router to be migrated is a serial number SN of the router to be migrated.
According to a third aspect of the embodiments of the present disclosure, there is provided a router file migration apparatus, including:
the first acquisition module is configured to acquire a virtual address of the router to be migrated;
the second acquisition module is configured to acquire information of the file to be migrated of the router to be migrated;
the first sending module is configured to send a file migration instruction to the target router; the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the first obtaining module obtains the virtual address of the router to be migrated and the second obtaining module obtains the information of the file to be migrated of the router to be migrated, the first sending module may send a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the file migration instruction, the steps of file migration of the router are simplified, and the efficiency of file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the first obtaining module is configured to send a router to be migrated configuration request to the router to be migrated, and receive a router to be migrated configuration response sent by the router to be migrated based on the router to be migrated configuration request;
the router to be migrated is configured with a virtual address which is used for indicating the router to be migrated to configure the communication with the target router; the router to be migrated configuration response includes: the virtual address of the router to be migrated.
Optionally, the apparatus further comprises:
the second sending module is configured to send a target router configuration request to the target router before the second obtaining module obtains the information of the file to be migrated of the router to be migrated; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
and the first receiving module is configured to receive a target router configuration response sent by the target router based on the target router configuration request.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the second sending module may send a target router configuration request to the target router, such that the first receiving module may receive the target router configuration response, so that the second obtaining module can determine that the migration of the file can be performed between the router to be migrated and the target router based on the obtained virtual address of the router to be migrated and the received configuration response of the target router, further acquiring the information of the file to be migrated of the router to be migrated, and enabling the first sending module to send a file migration instruction to the target router, so that after the target router receives the migration instruction, and migrating the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the apparatus further comprises:
the third sending module is configured to send a connection request to the target router before the sending module sends the file migration instruction to the target router; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
and the second receiving module is configured to receive a connection response sent by the target router based on the connection request.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the third sending module may send a connection request to the target router to indicate the target router to access the wireless network of the router to be migrated before the first sending module sends the file migration instruction to the target router, so that the second receiving module may receive a connection response for indicating that the target router has accessed the wireless network of the router to be migrated, so that thefirst sending module 13 may determine, based on the connection response, that a communication path exists between the target router and the router to be migrated, and then send the file migration instruction to the target router, so that the target router may migrate the file to be migrated from the router to be migrated by using the communication path through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, thereby simplifying the file migration step of the router, the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the second obtaining module is configured to read information of a file stored in the router to be migrated, and generate a file list; pushing a file list; acquiring a selection instruction input by a user based on the file list; and determining the information of the file to be migrated in the file list according to the selection instruction.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the first obtaining module obtains the virtual address of the router to be migrated, the second obtaining module may read information of a file stored in the router to be migrated, generate a file list, and then may push the file list to a user. In this way, after a selection instruction input by the user based on the file list is acquired, the second acquisition module may determine information of the file to be migrated in the file list according to the selection instruction of the user, and then the first sending module may send the file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the second obtaining module is configured to determine that the router to be migrated has the management authority before reading the information of the file stored in the router to be migrated.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: before reading the information of the file in the router to be migrated, the second obtaining module may also determine that the router to be migrated has the management authority, so as to prevent an illegal terminal from accessing the router to be migrated, and ensure the security of the router to be migrated.
Optionally, the apparatus further comprises:
the third acquisition module is configured to acquire the identifier of the router to be migrated before the sending module sends the file migration instruction to the target router;
and the fourth sending module is configured to send the identifier of the router to be migrated to the target router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the third obtaining module may obtain an identifier of the router to be migrated before the first sending module sends the file migration instruction to the target router, and then the fourth sending module may send the identifier of the router to be migrated to the target router, so that in a process of migrating the file to be migrated from the router to be migrated, if a connection manner between the target router and the router to be migrated changes, the target router may obtain a virtual address of the router to be migrated in the second connection manner through the identifier of the router to be migrated stored in the target router, and further, the target router may continue to transmit the file to be migrated through the virtual address of the router to be migrated in the second connection manner, thereby ensuring continuity of file migration of the router, and improving efficiency of file migration of the router.
Optionally, the identifier of the router to be migrated is a serial number SN of the router to be migrated.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a router file migration apparatus, including:
the first receiving module is configured to receive a file migration instruction sent by a terminal; the file migration instruction comprises: the information of the file to be migrated and the virtual address of the router to be migrated are stored in the router to be migrated;
an acquisition module configured to acquire a virtual address of a target router;
and the migration module is configured to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the router to be migrated and the virtual address of the target router according to the information of the file to be migrated.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the first receiving module receives a file migration instruction sent by the terminal, the obtaining module can obtain the virtual address of the target router, so that the migration module can migrate the file to be migrated from the router to be migrated through the virtual address of the router to be migrated and the virtual address of the target router according to the information of the file to be migrated, the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the apparatus further comprises:
the second receiving module is configured to receive a target router configuration request sent by the terminal before the first receiving module receives the file migration instruction sent by the terminal; the target router configuration request is used for indicating the target router to configure a virtual address communicated with the router to be migrated;
the configuration module is configured to configure a virtual address communicated with the router to be migrated according to the configuration request of the target router;
a first sending module configured to send a target router configuration response to the terminal in response to the target router configuration request.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the second receiving module may receive a target router configuration request sent by the terminal, so that the configuration module may configure a virtual address for communicating with the router to be migrated according to the target router configuration request, so that the first sending module may send a target router configuration response responding to the target router configuration request to the terminal after the configuration is completed, so that the terminal may determine that file migration may be performed between the router to be migrated and the target router based on the obtained virtual address of the router to be migrated and the received target router configuration response, further obtain information of the file to be migrated of the router to be migrated, and send a file migration instruction to the migration module, so that the migration module, after receiving the migration instruction, passes through the virtual address of the target router and the virtual address of the router to be migrated, and the file to be migrated is migrated from the router to be migrated, so that the file migration step of the router is simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the apparatus further comprises:
the third receiving module is configured to receive the connection request sent by the terminal before the first receiving module receives the file migration instruction sent by the terminal; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
the connection module is configured to access a wireless network of the router to be migrated according to the connection request;
and a second transmitting module configured to transmit a connection response responding to the connection request to the terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the third receiving module may receive a connection request sent by the terminal before the first receiving module receives a file migration instruction sent by the terminal, and then the connection module may access the wireless network of the router to be migrated according to the connection request, so that, after the second sending module sends a connection response to the terminal, the terminal may determine, based on the connection response, that a communication path may exist between the target router and the router to be migrated, and thus the target router may receive the file migration instruction sent by the terminal, and may migrate the file to be migrated from the router to be migrated by using the communication path through the virtual address of the target router and the virtual address of the router to be migrated, thereby simplifying the file migration step of the router and improving the file migration efficiency of the router. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, the connection request includes: the identifier of the wireless network of the router to be migrated;
and the connection module is configured to scan the wireless network covering the target router, acquire the identifier of the wireless network covering the target router, search for the identifier matched with the identifier of the wireless network of the router to be migrated in the identifier of the wireless network covering the target router, and access the wireless network corresponding to the identifier matched with the identifier of the wireless network of the router to be migrated.
Optionally, the apparatus further comprises:
and the fourth receiving module is configured to receive the identifier of the router to be migrated, which is sent by the terminal, before the first receiving module receives the file migration instruction sent by the terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the fourth receiving module may receive the identifier of the router to be migrated, which is sent by the terminal, before the first receiving module receives the file migration instruction sent by the terminal, so that in the process of migrating the file to be migrated from the router to be migrated by the migration module, if the connection mode between the target router and the router to be migrated changes, the migration module may obtain the virtual address of the router to be migrated in the second connection mode through the identifier of the router to be migrated, and further, the migration module may continue to transmit the file to be migrated through the virtual address of the router to be migrated in the second connection mode, thereby ensuring the continuity of file migration of the router and improving the efficiency of file migration of the router.
Optionally, in the process of migrating the file to be migrated from the router to be migrated to the target router, the target router and the router to be migrated are switched from the first connection mode to the second connection mode;
the migration module is configured to acquire a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated after the first connection mode is converted into the second connection mode; and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the target router and the router to be migrated are switched from the first connection mode to the second connection mode in the process of migrating the file to be migrated from the router to be migrated, the migration module acquires the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated, so that the migration module can continue to migrate the file to be migrated from the router to be migrated according to the virtual address of the router to be migrated in the second connection mode, the file migration continuity of the router is ensured, and the file migration efficiency of the router is improved. .
Optionally, the migration module is configured to send an address query request message to the server; receiving an address query response message sent by the server;
wherein, the address inquiry request message includes: an identifier of the router to be migrated; the server stores the virtual address of the router to be migrated under the second connection mode, wherein the virtual address is reported by the router to be migrated; the address query response message includes: and the virtual address of the router to be migrated in the second connection mode.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in the process of migrating the file to be migrated from the router to be migrated, if the connection mode between the target router and the router to be migrated changes, the migration module may send an address query request message carrying the identifier of the router to be migrated to the server, so that the migration module may receive an address query response message carrying the virtual address of the router to be migrated in the second connection mode sent by the server, and thus the migration module may continue to transmit the file to be migrated through the virtual address of the router to be migrated in the second connection mode, thereby ensuring the continuity of file migration of the router and improving the efficiency of file migration of the router.
Optionally, the migration module is configured to perform identity verification on the router to be migrated, and obtain the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated after the identity verification of the router to be migrated passes.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the migration module may obtain the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated when the identity check of the router to be migrated passes, that is, when it is determined that the router connected to the target router in the second connection mode is the router to be migrated, so as to ensure the correctness of the router file migration.
Optionally, the migration module is configured to send a prompt message to the terminal after the identity verification of the router to be migrated fails.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the migration module may send a prompt message to the terminal when the identity verification of the router to be migrated fails, that is, when it is determined that the router connected to the target router in the second connection manner is not the router to be migrated, so as to remind the user through the terminal that the router connected to the target router is replaced, thereby ensuring the correctness of the router file migration.
Optionally, the identifier of the router to be migrated is a serial number SN of the router to be migrated.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a router file migration apparatus, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring a virtual address of a router to be migrated;
acquiring information of a file to be migrated of a router to be migrated;
sending a file migration instruction to a target router; the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after the router file migration device acquires the virtual address of the router to be migrated and the information of the file to be migrated of the router to be migrated, a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated can be sent to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the file migration instruction, the steps of file migration of the router are simplified, and the efficiency of file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a router file migration apparatus, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
receiving a file migration instruction sent by a terminal; the file migration instruction comprises: the information of the file to be migrated and the virtual address of the router to be migrated are stored in the router to be migrated;
acquiring a virtual address of a target router;
and migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and through the virtual address of the router to be migrated and the virtual address of the target router.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: after receiving a file migration instruction sent by a terminal, a router file migration device can acquire a virtual address of a target router, and then can migrate a file to be migrated from the router to be migrated according to information of the file to be migrated, the virtual address of the router to be migrated and the virtual address of the target router, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a diagram illustrating an application scenario for a method of router file migration in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating a method of router file migration in accordance with an illustrative embodiment;
FIG. 3 is a flow chart illustrating a method of router file migration in accordance with another illustrative embodiment;
FIG. 4 is a flowchart illustrating a method of router file migration in accordance with yet another illustrative embodiment;
FIG. 5 is a flowchart illustrating a method of router file migration in accordance with yet another illustrative embodiment;
FIG. 6 is a flowchart illustrating a method of router file migration in accordance with yet another illustrative embodiment;
FIG. 7 is a flowchart illustrating a method of router file migration in accordance with yet another illustrative embodiment;
FIG. 8 is a flowchart illustrating a method of router file migration in accordance with yet another illustrative embodiment;
FIG. 9 is a flowchart illustrating a method of router file migration in accordance with yet another illustrative embodiment;
FIG. 10 is a flowchart illustrating a method of router file migration in accordance with yet another illustrative embodiment;
FIG. 11 is a block diagram illustrating a router file migration apparatus in accordance with an illustrative embodiment;
FIG. 12 is a block diagram illustrating a router file migration apparatus in accordance with another illustrative embodiment;
FIG. 13 is a block diagram illustrating a router file migration apparatus in accordance with yet another illustrative embodiment;
FIG. 14 is a block diagram illustrating a router file migration apparatus in accordance with yet another illustrative embodiment;
FIG. 15 is a block diagram illustrating a router file migration apparatus in accordance with yet another illustrative embodiment;
FIG. 16 is a block diagram illustrating a router file migration apparatus in accordance with yet another illustrative embodiment;
FIG. 17 is a block diagram illustrating a router file migration apparatus in accordance with yet another illustrative embodiment;
FIG. 18 is a block diagram illustrating a router file migration apparatus in accordance with yet another illustrative embodiment;
FIG. 19 is a block diagram illustrating a routerfile migration apparatus 1900 in accordance with an illustrative embodiment;
fig. 20 is a block diagram illustrating a routerfile migration apparatus 2000, according to an example embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a diagram illustrating an application scenario of a router file migration method according to an exemplary embodiment. As shown in fig. 1, the application scenario may include, for example: the router comprises a terminal, a target router and a router to be migrated. The terminal referred to herein may be any terminal having a wireless communication function, for example: mobile phones, tablet computers, personal digital assistants, computers, and the like. The target router and the router to be migrated as described herein may be any router providing a WiFi network.
The terminal can control the target router to directly transfer the file to be transferred in the router to be transferred, and the file to be transferred in the router to be transferred is not required to be transferred to the terminal from the terminal to the target router after being manually transferred to the terminal, so that the file transfer step of the router is simplified, and the file transfer efficiency of the router is improved. Meanwhile, the file to be migrated does not need to be transferred through the terminal, so that the situation of file migration failure caused by the terminal is avoided, and the reliability of the file migration of the router is improved. Because the router file migration process does not need the participation of the terminal any more, the power consumption of the terminal caused by the migration of the router file is avoided, the power consumption of the terminal in the file migration process of the router is reduced, and the user experience is further improved.
The technical solution of the present disclosure is explained in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flow diagram illustrating a method of router file migration in accordance with an example embodiment. The execution main body of the method can be a terminal (short for: terminal) integrated with the router file migration device. As shown in fig. 2, the method may include the steps of:
in step S101, a virtual address of a router to be migrated is acquired.
Specifically, when the target router needs to migrate a file in the router to be migrated, the terminal may obtain the virtual address of the router to be migrated. The present embodiment does not limit the manner in which the terminal obtains the virtual address of the router to be migrated, for example: the terminal can acquire a preset virtual address of the router to be migrated, and can also acquire the virtual address of the router to be migrated, which is allocated by the terminal for the router to be migrated. The terminal can also send an address request message of the router to be migrated to the address server to instruct the address server to send the virtual address reported by the router to be migrated to the terminal, and then the virtual address of the router to be migrated is obtained through the virtual address of the router to be migrated returned by the server.
Optionally, as an implementable manner, the terminal may further send a router to be migrated configuration request to the router to be migrated, so as to indicate the router to be migrated to configure a virtual address for communicating with the target router. After receiving the router to be migrated configuration request, the router to be migrated may perform configuration of the virtual address, and after the configuration is completed, send a router to be migrated configuration response to the terminal, so as to indicate to the terminal that the configuration of the virtual address of the router to be migrated is completed. In this way, the terminal can acquire the virtual address of the router to be migrated carried in the configuration response of the router to be migrated by receiving the configuration response of the router to be migrated, which is sent by the router to be migrated based on the configuration request of the router to be migrated. Of course, the terminal may also acquire the virtual address of the router to be migrated by using a related technology, which is not described in detail in this disclosure.
In step S102, information of the file to be migrated of the router to be migrated is acquired.
Specifically, after the terminal acquires the virtual address of the router to be migrated, the terminal may further acquire information of the file to be migrated in the router to be migrated. The information of the file to be migrated may include, for example, one or more of the following: the name of the file to be migrated, the storage address of the file to be migrated, the size of the file to be migrated and the like. The file to be migrated may be all files stored in the router to be migrated, or may be a part of files stored in the router to be migrated, and may be determined according to a requirement of a user.
The embodiment does not limit how the terminal acquires the information of the file to be migrated in the router to be migrated. For example: the terminal can access the router to be migrated according to the identifier of the migrated file input by the user, so as to acquire the information of the files, namely the information of the files to be migrated, from the router to be migrated. The terminal can also acquire information of files to be migrated in a preset router to be migrated, and the like.
In step S103, sending a file migration instruction to the target router; wherein the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated.
Specifically, after acquiring information of the file to be migrated of the router to be migrated, the terminal may send a file migration instruction to the target router. The file migration instruction may include: the information of the file to be migrated in the router to be migrated and the virtual address of the router to be migrated. The migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated.
In this way, after receiving the file migration instruction, the target router may access the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated, and then migrate the file to be migrated from the router to be migrated through the information of the file to be migrated. By the method, the target router can directly transfer the file to be transferred of the router to be transferred from the router to be transferred under the control of the terminal, and the user does not need to transfer the file to be transferred in the router to be transferred from the terminal to the target router after manually transferring the file to be transferred to the terminal, so that the file transfer step of the router is simplified, and the file transfer efficiency of the router is improved. Meanwhile, the file to be migrated does not need to be transferred through the terminal, so that the situation that the file migration fails due to the terminal (such as terminal dormancy, shutdown, power failure and the like) is avoided, and the reliability of the file migration of the router is improved. Because the router file migration process does not need the participation of the terminal any more, the power consumption of the terminal caused by the migration of the router file is avoided, the power consumption of the terminal in the file migration process of the router is reduced, and the user experience is further improved.
It should be noted that the virtual address of the target router and the virtual address of the router to be migrated may be the same address segment. By the method, the situation that the target router and the router to be migrated cannot communicate due to the fact that the address of the target router is the same as the address of the router to be migrated can be avoided.
The virtual address of the target router may be a virtual address preset in the target router, or may be a virtual address sent by the terminal to the target router through the file migration instruction, and in this case, the virtual address of the target router may be a virtual address allocated by the terminal to the target router.
According to the router file migration method, after the terminal acquires the virtual address of the router to be migrated and the information of the file to be migrated of the router to be migrated, the terminal can send the file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the file migration instruction, the steps of file migration of the router are simplified, and the efficiency of file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 3 is a flowchart illustrating a method of router file migration in accordance with another example embodiment. As shown in fig. 3, this embodiment relates to a process in which the terminal instructs the target router to perform virtual address configuration before acquiring information of a file to be migrated of the router to be migrated, and before the step S102, the method may further include the following steps:
in step S201, a target router configuration request is sent to a target router; and the target router configuration request is used for indicating the target router to configure the virtual address communicated with the router to be migrated.
Specifically, in this embodiment, before acquiring the information of the file to be migrated of the router to be migrated, the terminal may send a target router configuration request to the target router, so as to instruct the target router to configure a virtual address for communicating with the target router. The target router may perform the configuration of the virtual address after receiving the target router configuration request. For the implementation manner of the target router for performing virtual address configuration, reference may be made to related technologies, which are not described herein again.
In step S202, a target router configuration response sent by the target router based on the target router configuration request is received.
Specifically, after completing the configuration of the virtual address, the target router may send a target router configuration response to the terminal, so as to indicate to the terminal that the virtual address configuration of the target router is completed. Therefore, after the terminal sends the target router configuration request to the target router, the terminal may receive a target router configuration response sent by the target router based on the target router configuration request, and may further determine that the target router has completed the configuration of the virtual address based on the target router configuration response. In this way, after the terminal acquires the virtual address of the router to be migrated and the configuration response of the target router, it can be determined that the router to be migrated and the target router can communicate through the virtual address, that is, the file migration can be performed. The terminal can further obtain information of the to-be-migrated file of the to-be-migrated router, and send the information carrying the to-be-migrated file and a file migration instruction of the virtual address of the to-be-migrated router to the target router, so that the target router automatically migrates the to-be-migrated file from the to-be-migrated router to the target router through the virtual address of the target router and the virtual address of the to-be-migrated router according to the file migration instruction.
According to the router file migration method provided by the disclosure, the terminal acquires the virtual address of the router to be migrated, and after receiving a target router configuration response sent by the target router based on the target router configuration request, when determining that the file can be migrated between the router to be migrated and the target router, the terminal can further acquire the information of the file to be migrated of the router to be migrated, and send a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, the steps of file migration of the router are simplified, and the efficiency of file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 4 is a flowchart illustrating a method of router file migration in accordance with yet another exemplary embodiment. In the present disclosure, when the target router migrates the file to be migrated of the router to be migrated, a communication path exists between the target router and the router to be migrated, and the communication path may be a wired communication path (i.e., a communication path formed by the target router and the router to be migrated being directly connected through a network cable) or a wireless communication path (e.g., a communication path formed by a wireless network in which one router is connected to another router, etc.). When a wireless communication path exists between the target router and the router to be migrated, the wireless communication path may be a path formed by the target router accessing a wireless network of the router to be migrated, or a path formed by the router to be migrated accessing a wireless network of the target router. The following embodiments take the target router accessing the wireless network of the router to be migrated as an example, and describe how the terminal instructs the target router to access the wireless network of the router to be migrated. As shown in fig. 4, before the step S103, the method may further include:
in step S301, a connection request is sent to the target router; the connection request is used for indicating the target router to access the wireless network of the router to be migrated.
In step S302, a connection response sent by the target router based on the connection request is received.
Specifically, in this embodiment, before sending the file migration instruction to the target router, the terminal may first access the wireless network of the target router to establish a connection with the target router. After establishing connection with the target router, the terminal may send a connection request to the target router to instruct the target router to access the wireless network of the router to be migrated. After receiving the connection request, the target router may access the wireless network of the router to be migrated according to the connection request, and return a connection response to the terminal, so as to indicate, through the connection response, that the terminal target router has accessed the wireless network of the router to be migrated.
The present embodiment does not limit the manner in which the target router accesses the wireless network of the router to be migrated. For example: the terminal may carry the identifier of the wireless network of the router to be migrated in the connection request. In this way, after receiving the connection request, the target router may first scan the wireless network covering the target router according to the connection request, and obtain the identifier of the wireless network covering the target router. Then, the target router may search for an identifier matching the identifier of the wireless network of the router to be migrated from the identifiers of the wireless networks covering the target router. And finally, the target router accesses the wireless network corresponding to the identifier matched with the identifier of the wireless network of the router to be migrated, and the purpose of accessing the wireless network of the router to be migrated is fulfilled. By the method, a wireless communication path can exist between the target router and the router to be migrated, so that the target router can migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated by using the communication path after receiving the file migration instruction sent by the terminal. Of course, the target router may also access the wireless network of the router to be migrated by using a related technology, which is not described herein again.
According to the router file migration method, after a terminal acquires a virtual address of a router to be migrated and information of a file to be migrated of the router to be migrated, before a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated is sent to a target router, the target router can be indicated to access a wireless network of the router to be migrated, so that a communication channel can exist between the target router and the router to be migrated, and the target router can migrate the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated by using the communication channel after receiving the migration instruction, so that the steps of file migration of the router are simplified, and the efficiency of file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 5 is a flowchart illustrating a method of router file migration in accordance with yet another exemplary embodiment. As shown in fig. 5, this embodiment relates to a specific process of the terminal acquiring information of a file to be migrated of a router to be migrated, and the step S102 may include the following steps:
in step S401, information of the file stored by the router to be migrated is read, and a file list is generated.
Specifically, after acquiring the virtual address of the router to be migrated, the terminal may access the router to be migrated according to the address of the router to be migrated, so as to read information of all files stored in the router to be migrated through an interface, which is preset on the router to be migrated and used for reading information of the files, and generate a file list. The address of the router to be migrated may be a virtual address of the router to be migrated, or may be a physical address of the router to be migrated, and the like, which is not limited herein.
Optionally, in an implementation manner of the present disclosure, in order to avoid an illegal terminal from accessing the router to be migrated, the terminal may further determine that the terminal has the management authority of the router to be migrated before reading information of the file stored in the router to be migrated. During specific implementation, the terminal can determine whether the management authority of the router to be migrated exists or not in a mode of logging in the router to be migrated through the management password of the router to be migrated. When the terminal logs in the router to be migrated through the management password of the router to be migrated and determines that the router to be migrated has the management authority, the terminal can further access the router to be migrated to read the information of the file stored in the router to be migrated. When the terminal cannot successfully log in the router to be migrated through the management password of the router to be migrated and determines that the router to be migrated does not have the management authority, at the moment, the terminal cannot read information of the file in the router to be migrated from the router to be migrated, and the safety of the router to be migrated is ensured.
In step S402, a file list is pushed.
Specifically, after the terminal generates the file list, the file list may be pushed to the user, so that the user can know which files are stored in the router to be migrated through the file list. In specific implementation, the terminal may push the file list in a floating window manner, may push the file list in a user interface, may push the file list in a communication message field, and the like.
In step S403, a selection instruction input by the user based on the file list is acquired.
Specifically, after the user knows which files are stored in the router to be migrated through the terminal, the user can select which files need to be migrated from the files, and input a selection instruction to the terminal based on information of the files to be migrated. In the specific implementation, a user can input a selection instruction to the terminal by selecting information of a file which the user desires to migrate from a file list pushed by the terminal, and at this time, the selected information of the file is information of the file to be migrated.
In step S404, information of the file to be migrated is determined in the file list according to the selection instruction.
Specifically, after receiving a selection instruction input by a user, the terminal may determine which files in the file list are to be migrated according to the selection instruction. In this way, the terminal can send a migration instruction carrying the information of the file to be migrated to the target router based on the information of the file to be migrated. Furthermore, after receiving the migration instruction, the target router may migrate the file to be migrated from the router to be migrated by using the virtual address of the target router and the virtual address of the router to be migrated based on the information of the file to be migrated.
According to the router file migration method provided by the disclosure, after the terminal acquires the virtual address of the router to be migrated, the terminal can read the information of the file stored in the router to be migrated and generate the file list, so that the file list can be pushed to a user. In this way, after a selection instruction input by the user based on the file list is obtained, the terminal can determine the information of the file to be migrated in the file list according to the selection instruction of the user, and then can send a file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, the steps of file migration of the router are simplified, and the efficiency of file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, in an implementation manner of the present disclosure, in order to avoid that the target router migrates the file to be migrated from the router to be migrated, the user changes a connection manner between the target router and the router to be migrated, that is, switches from the first connection manner to the second connection manner, for example: change from a wired connection to a wireless connection, or from a wireless connection to a wired connection. The wireless connection here may be any connection method of short-range wireless communication, for example: a WiFi connection, a bluetooth connection, etc. Therefore, before sending the migration instruction to the target router, the terminal may obtain the identifier of the router to be migrated, and send the identifier of the router to be migrated to the target router. The identifier of the router to be migrated may be any identifier that can uniquely reflect the identity of the router to be migrated, for example: serial Number (SN) of the router to be migrated, an identity of a central processing unit of the router to be migrated, and the like. In this way, when the target router migrates the file to be migrated from the router to be migrated, if the connection mode between the target router and the router to be migrated changes, that is, the connection mode is switched from the first connection mode to the second connection mode, the router to be migrated may send the virtual address of the router to be migrated in the second connection mode to the server. In this way, the target router can acquire the virtual address of the router to be migrated in the second connection mode from the server through the identifier of the router to be migrated stored in the target router, so that the target router can access the router to be migrated through the virtual address of the router to be migrated in the second connection mode to continue transmission of the file to be migrated, thereby ensuring the continuity of file migration of the router and improving the efficiency of file migration of the router.
It should be noted that the method provided in the foregoing embodiment may be implemented by a system function of the terminal itself, may also be implemented by an Application program (APP) for managing the router, which is set in the terminal, may also be implemented by a Web management background for managing the router, which is registered by the terminal, and may also be implemented by a PC client for managing the router, which is registered by the terminal, and the like, which is not limited in this disclosure.
Fig. 6 is a flowchart illustrating a method of router file migration in accordance with yet another exemplary embodiment. The execution subject of the method may be a target router (abbreviated as: target router) integrated with a router file migration apparatus, as shown in fig. 6, the method may include the following steps:
in step S501, a file migration instruction sent by a terminal is received; wherein the file migration instruction comprises: the information of the file to be migrated and the virtual address of the router to be migrated are stored in the router to be migrated.
Specifically, when the target router needs to migrate a file in the router to be migrated, the target router may receive a file migration instruction sent by the terminal, where the file migration instruction may include: the information of the file to be migrated in the router to be migrated and the virtual address of the router to be migrated. The information of the file to be migrated may include, for example, one or more of the following: the name of the file to be migrated, the storage address of the file to be migrated, the size of the file to be migrated and the like. The file to be migrated may be all files stored in the router to be migrated, or may be a part of files stored in the router to be migrated, and may be determined according to a requirement of a user.
The information of the file to be migrated may be acquired by the terminal. The embodiment does not limit how the terminal acquires the information of the file to be migrated in the router to be migrated. For example: the terminal can access the router to be migrated according to the identifier of the migrated file input by the user, so as to acquire the information of the files, namely the information of the files to be migrated, from the router to be migrated. The terminal can also acquire information of files to be migrated in a preset router to be migrated, and the like. Optionally, the terminal may access the router to be migrated, read information of a file stored in the router to be migrated, generate a file list, and then push the file list to the user. After the terminal acquires a selection instruction input by a user based on the file list, the terminal determines information of the file to be migrated in the file list according to the selection instruction.
In step S502, the virtual address of the target router is acquired.
Specifically, in this embodiment, the target router may further obtain a virtual address of the target router. The present embodiment does not limit the implementation manner of the target router acquiring the virtual address of the target router, for example: the target router may obtain a virtual address preset in the target router, and may also obtain a virtual address configured for the target router by the target router. The target router can also obtain the virtual address of the target router, which is sent to the target router by the terminal through the file migration instruction, by receiving the file migration instruction. In this case, the virtual address of the target router may be the virtual address allocated by the terminal to the target router.
Optionally, in an implementation manner of the present disclosure, if the target router acquires a virtual address configured by the target router, before the step S501, the target router may further receive a target router configuration request sent by the terminal; wherein the target router configuration request is used for indicating the target router to configure a virtual address for communicating with the router to be migrated. Further, the target router may configure a virtual address in communication with the router to be migrated according to the target router configuration request, and send a target router configuration response to the target router configuration request to the terminal, so as to indicate to the terminal that the virtual address configuration of the target router is completed. Therefore, the terminal may determine that the target router has completed the configuration of the virtual address based on the target router configuration response, that is, determine that the router to be migrated and the target router may communicate through the virtual address, and may migrate the file. The terminal can further obtain information of the to-be-migrated file of the to-be-migrated router, and send the information carrying the to-be-migrated file and a file migration instruction of the virtual address of the to-be-migrated router to the target router, so that the target router automatically migrates the to-be-migrated file from the to-be-migrated router to the target router through the virtual address of the target router and the virtual address of the to-be-migrated router according to the file migration instruction. The target router configures the implementation manner of the virtual address communicating with the router to be migrated according to the target router configuration request, which may refer to related technologies and is not described herein again.
In step S503, according to the information of the file to be migrated, the file to be migrated is migrated from the router to be migrated to the target router via the virtual address of the router to be migrated and the virtual address of the target router.
Specifically, after acquiring the virtual address of the target router, the target router may access the router to be migrated through the acquired virtual address file of the target router and the virtual address of the router to be migrated carried in the migration instruction. Furthermore, the target router can migrate the file to be migrated from the router to be migrated according to the information of the file to be migrated of the router to be migrated, which is carried in the file migration instruction. By the method, the target router can directly transfer the file to be transferred of the router to be transferred from the router to be transferred under the control of the terminal, and the user does not need to transfer the file to be transferred in the router to be transferred from the terminal to the target router after manually transferring the file to be transferred to the terminal, so that the file transfer step of the router is simplified, and the file transfer efficiency of the router is improved. Meanwhile, the file to be migrated does not need to be transferred through the terminal, so that the situation that the file migration fails due to the terminal (such as terminal dormancy, shutdown, power failure and the like) is avoided, and the reliability of the file migration of the router is improved. Because the router file migration process does not need the participation of the terminal any more, the power consumption of the terminal caused by the migration of the router file is avoided, the power consumption of the terminal in the file migration process of the router is reduced, and the user experience is further improved.
According to the router file migration method provided by the disclosure, the target router can acquire the virtual address of the target router after receiving the file migration instruction sent by the terminal, and then the file to be migrated can be migrated from the router to be migrated through the virtual address of the router to be migrated and the virtual address of the target router according to the information of the file to be migrated, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 7 is a flowchart illustrating a method of router file migration in accordance with yet another exemplary embodiment. In the present disclosure, when the target router migrates the file to be migrated of the router to be migrated, a communication path exists between the target router and the router to be migrated, and the communication path may be a wired communication path (i.e., a communication path formed by the target router and the router to be migrated being directly connected through a network cable) or a wireless communication path (e.g., a communication path formed by a wireless network in which one router is connected to another router, etc.). When a wireless communication path exists between the target router and the router to be migrated, the wireless communication path may be a path formed by the target router accessing a wireless network of the router to be migrated, or a path formed by the router to be migrated accessing a wireless network of the target router. The following embodiments take the target router accessing the wireless network of the router to be migrated as an example, and describe how the terminal instructs the target router to access the wireless network of the router to be migrated. As shown in fig. 7, before the above S501, the method may further include:
in step S601, a connection request sent by a terminal is received; the connection request is used for indicating the target router to access the wireless network of the router to be migrated.
In step S602, the wireless network of the router to be migrated is accessed according to the connection request.
In step S603, a connection response responding to the connection request is transmitted to the terminal.
Specifically, in this embodiment, before sending the file migration instruction to the target router, the terminal may first access the wireless network of the target router to establish a connection with the target router. After establishing connection with the target router, the terminal may send a connection request to the target router to instruct the target router to access the wireless network of the router to be migrated. After receiving the connection request, the target router may access the wireless network of the router to be migrated according to the connection request, and return a connection response to the terminal, so as to indicate, through the connection response, that the terminal target router has accessed the wireless network of the router to be migrated.
The present embodiment does not limit the manner in which the target router accesses the wireless network of the router to be migrated. For example: the terminal may carry the identifier of the wireless network of the router to be migrated in the connection request. In this way, after receiving the connection request, the target router may first scan the wireless network covering the target router according to the connection request, and obtain the identifier of the wireless network covering the target router. Then, the target router may search for an identifier matching the identifier of the wireless network of the router to be migrated from the identifiers of the wireless networks covering the target router. And finally, the target router accesses the wireless network corresponding to the identifier matched with the identifier of the wireless network of the router to be migrated, and the purpose of accessing the wireless network of the router to be migrated is fulfilled. By the method, a wireless communication path can exist between the target router and the router to be migrated, so that the target router can migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated by using the communication path after receiving the file migration instruction sent by the terminal. Of course, the target router may also access the wireless network of the router to be migrated by using a related technology, which is not described herein again.
According to the router file migration method provided by the disclosure, before a file migration instruction sent by a terminal is received, a target router can be accessed to a wireless network of a router to be migrated according to an instruction of the terminal, so that a communication path can exist between the target router and the router to be migrated, and after the target router receives the file migration instruction, the target router can migrate a file to be migrated from the router to be migrated by using the communication path through a virtual address of the target router and a virtual address of the router to be migrated, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Optionally, in an implementation manner of the present disclosure, in order to avoid that the target router migrates the file to be migrated from the router to be migrated, the user changes a connection manner between the target router and the router to be migrated, that is, switches from the first connection manner to the second connection manner, for example: change from a wired connection to a wireless connection, or from a wireless connection to a wired connection. The wireless connection here may be any connection method of short-range wireless communication, for example: a WiFi connection, a bluetooth connection, etc. Therefore, before receiving the file migration instruction sent by the terminal, the target router may also receive an identifier of the router to be migrated, which is sent by the terminal. The identifier of the router to be migrated may be any identifier that can uniquely reflect the identity of the router to be migrated, for example: serial Number (SN) of the router to be migrated, an identity of a central processing unit of the router to be migrated, and the like.
In this implementation, fig. 8 is a flowchart illustrating a method of router file migration in accordance with yet another example embodiment. As shown in fig. 8, when the target router and the to-be-migrated router are switched from the first connection mode to the second connection mode in the process of migrating the to-be-migrated file from the to-be-migrated router, the step S503 may include the following steps:
in step S701, after the first connection mode is converted into the second connection mode, the virtual address of the router to be migrated in the second connection mode is obtained according to the identifier of the router to be migrated.
Specifically, in the process that the target router migrates the file to be migrated from the router to be migrated, if the connection mode between the target router and the router to be migrated is switched from the first connection mode to the second connection mode, the target router may obtain the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated. For example: if the router to be migrated reports the virtual address of the router to be migrated in the second connection mode to the terminal, the target router may receive a new migration instruction sent by the terminal, where the new migration instruction may carry the virtual address of the router to be migrated in the second connection mode.
Optionally, if the router to be migrated reports the virtual address of the router to be migrated in the second connection manner to the server, the target router may send an address query request message carrying an identifier of the router to be migrated to the server, so that after the server queries the virtual address of the router to be migrated in the second connection manner based on the identifier of the router to be migrated, the server may send an address query response message carrying the virtual address of the router to be migrated in the second connection manner to the target router.
Further, in order to ensure the correctness of the file migration of the router, after the target router and the router to be migrated are switched from the first connection mode to the second connection mode, before the target router obtains the virtual address of the router to be migrated in the second connection mode, the target router may also perform identity verification on the router to be migrated, which is connected with the target router in the second connection mode, and then after the identity verification of the router to be migrated passes, the virtual address of the router to be migrated in the second connection mode is obtained according to the identifier of the router to be migrated.
In specific implementation, after the target router and the router to be migrated are switched from the first connection mode to the second connection mode, the target router may acquire the identifier of the router to be migrated through a specific interface, and compare the acquired identifier of the router to be migrated with the identifier of the router to be migrated sent by the terminal before, when the two identifiers are the same, the target router may determine that the router to be migrated still is connected with the target router in the second connection mode, that is, the identity of the router to be migrated passes authentication. Therefore, the target router can further acquire the virtual address of the router to be migrated to continue to perform file migration. When the two identifiers are different, the target router can determine that the router connected with the target router in the second connection mode is not the router to be migrated, namely the authentication of the router to be migrated fails, so that the target router can send a prompt message to the terminal to remind a user that the router connected with the target router is replaced through the terminal, and the correctness of router file migration is ensured.
In step S702, according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, the file to be migrated is migrated from the router to be migrated continuously.
Specifically, after the target router acquires the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated, the file to be migrated can be continuously migrated from the router to be migrated according to the information of the file to be migrated and the virtual address of the target router, so that the continuity of file migration of the router is ensured, and the file migration efficiency of the router is improved.
According to the router file migration method provided by the disclosure, when the target router and the router to be migrated are switched from the first connection mode to the second connection mode in the process of migrating the file to be migrated from the router to be migrated by the target router, the target router acquires the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated, so that the target router can continue to migrate the file to be migrated from the router to be migrated according to the virtual address of the router to be migrated in the second connection mode, the continuity of file migration of the router is ensured, and the file migration efficiency of the router is improved.
The router file migration method provided by the present disclosure is described below with reference to two examples.
First, fig. 9 is a flowchart illustrating a router file migration method according to yet another exemplary embodiment. The present example shows a specific process in which the target router directly migrates the file to be migrated from the router to be migrated according to the migration instruction of the terminal. As shown in fig. 9, the method may include:
in step S801, the terminal transmits a connection request to the target router.
In step S802, the target router accesses the wireless network of the router to be migrated according to the connection request.
In step S803, the target router transmits a connection response to the connection request to the terminal.
In step S804, the terminal sends a router-to-be-migrated configuration request to the router to be migrated.
In step S805, the router to be migrated configures a virtual address for communicating with the target router according to the router to be migrated configuration request.
In step S806, the router to be migrated sends a router to be migrated configuration response to the router to be migrated configuration request to the terminal.
The router configuration response to be migrated includes: the virtual address of the router to be migrated.
In step S807, the terminal transmits a target router configuration request to the target router.
In step S808, the target router configures a virtual address for communicating with the router to be migrated according to the target router configuration request.
In step S809, the target router transmits a target router configuration response in response to the target router configuration request to the terminal.
It should be noted that the present embodiment does not limit the execution sequence of steps S804-806 and steps S807-809.
In step S810, the terminal determines that it has the management authority of the router to be migrated.
In step S811, the terminal reads information of the file stored by the router to be migrated.
In step S812, the terminal generates and pushes a file list.
In step S813, the terminal acquires a selection instruction input by the user based on the file list.
In step S814, the terminal determines information of the file to be migrated in the file list according to the selection instruction.
In step S815, the terminal transmits a file migration instruction to the target router.
Wherein the file migration instruction comprises: the information of the file to be migrated of the router to be migrated and the virtual address of the router to be migrated.
Optionally, before the step S815, the method may further include: and the terminal acquires the identifier of the router to be migrated and sends the identifier of the router to be migrated to the target router.
In step S816, the target router migrates the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and through the virtual address of the router to be migrated and the virtual address of the target router.
For implementation and technical effects of the steps in the first example, reference may be made to the above embodiments, which are not described again.
Example two, fig. 10 is a flowchart illustrating a router file migration method according to yet another exemplary embodiment. In this example, in the process of migrating the file to be migrated from the router to be migrated by the target router, the target router and the router to be migrated are switched from the first connection mode to the second connection mode. As shown in fig. 10, the step S816 may include:
in step S901, the target router performs identity verification on the router to be migrated.
In step S902, the target router sends an address query request message to the server after the identity authentication of the router to be migrated passes.
Wherein, the address inquiry request message includes: identification of the router to be migrated.
In step S903, the server transmits an address query response message to the target router.
Wherein the address query response message includes: and the virtual address of the router to be migrated under the second connection mode corresponding to the identifier of the router to be migrated.
In step S904, the target router continues to migrate the file to be migrated from the router to be migrated according to the virtual address of the router to be migrated in the second connection manner.
For implementation and technical effects of the steps in the second example, reference may be made to the above embodiments, which are not described again.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 11 is a block diagram illustrating a router file migration apparatus in accordance with an example embodiment. As shown in fig. 11, the router file migration apparatus may implement part or all of the terminal by software, hardware, or a combination of both. The router file migration apparatus may include:
a first obtainingmodule 11 configured to obtain a virtual address of a router to be migrated; optionally, in an implementation manner of the present disclosure, the first obtainingmodule 11 may send a router to be migrated configuration request to the router to be migrated, and receive a router to be migrated configuration response sent by the router to be migrated based on the router to be migrated configuration request; the router to be migrated is configured with a virtual address which is used for indicating the router to be migrated to configure the communication with the target router; the router to be migrated configuration response includes: the virtual address of the router to be migrated.
A second obtainingmodule 12, configured to obtain information of a file to be migrated of the router to be migrated; optionally, in an implementation manner of the present disclosure, the second obtainingmodule 12 is configured to read information of a file stored in the router to be migrated, and generate a file list; pushing a file list; acquiring a selection instruction input by a user based on the file list; and determining the information of the file to be migrated in the file list according to the selection instruction. Optionally, in an implementation manner of the present disclosure, the second obtaining module is configured to determine that the router to be migrated has the management authority before reading information of the file stored in the router to be migrated.
Afirst sending module 13 configured to send a file migration instruction to the target router; the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated.
According to the router file migration device provided by the disclosure, after the first acquisition module acquires the virtual address of the router to be migrated and the second acquisition module acquires the information of the file to be migrated of the router to be migrated, the first sending module can send the file migration instruction carrying the information of the file to be migrated and the virtual address of the router to be migrated to the target router, so that after the target router receives the file migration instruction, the file to be migrated is migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated, the file migration step of the router is simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 12 is a block diagram illustrating a router file migration apparatus according to another example embodiment. As shown in fig. 12, based on the block diagram shown in fig. 11, the router file migration apparatus may further include:
asecond sending module 14, configured to send a target router configuration request to the target router before the second obtainingmodule 12 obtains the information of the file to be migrated of the router to be migrated; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
thefirst receiving module 15 is configured to receive a target router configuration response sent by the target router based on the target router configuration request.
In the router file migration apparatus provided by the present disclosure, the second sending module may send a target router configuration request to the target router, so that the first receiving module may receive a target router configuration response, so that the second obtaining module may determine, based on obtaining the virtual address of the router to be migrated and the received target router configuration response, that the file can be migrated between the router to be migrated and the target router, further obtain information of the file to be migrated of the router to be migrated, and enable the first sending module to send a file migration instruction to the target router, so that the target router migrates the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, thereby simplifying the file migration step of the router, the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 13 is a block diagram illustrating a router file migration apparatus according to yet another example embodiment. As shown in fig. 13, based on the block diagram shown in fig. 11, the router file migration apparatus may further include:
athird sending module 16 configured to send a connection request to the target router before thefirst sending module 13 sends the file migration instruction to the target router; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
and asecond receiving module 17 configured to receive a connection response sent by the target router based on the connection request.
In the router file migration apparatus provided by the present disclosure, the third sending module may send a connection request to the target router before the first sending module sends the file migration instruction to the target router, so as to instruct the target router to access the wireless network of the router to be migrated, so that the second receiving module may receive a connection response for instructing the target router to have access to the wireless network of the router to be migrated, and further, based on the connection response, thefirst sending module 13 may determine that a communication path exists between the target router and the router to be migrated, and further send the file migration instruction to the target router, so that the target router may migrate the file to be migrated from the router to be migrated by using the communication path through the virtual address of the target router and the virtual address of the router to be migrated after receiving the migration instruction, the steps of the file migration of the router are simplified, and the efficiency of the file migration of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 14 is a block diagram illustrating a router file migration apparatus according to yet another example embodiment. As shown in fig. 14, in addition to the block diagram shown in fig. 11, the router file migration apparatus may further include:
the third obtainingmodule 18 is configured to obtain an identifier of the router to be migrated before thefirst sending module 13 sends the file migration instruction to the target router; optionally, the identifier of the router to be migrated is a serial number SN of the router to be migrated.
Afourth sending module 19 configured to send the identifier of the router to be migrated to the target router.
In the router file migration apparatus provided by the present disclosure, the third obtaining module may obtain the identifier of the router to be migrated before the first sending module sends the file migration instruction to the target router, and further enables the fourth sending module to send the identification of the router to be migrated to the target router, therefore, in the process of migrating the file to be migrated from the router to be migrated by the target router, if the connection mode between the target router and the router to be migrated is changed, the target router can acquire the virtual address of the router to be migrated in the second connection mode through the identifier of the router to be migrated stored in the target router, and the target router can continue to transmit the file to be migrated through the virtual address of the router to be migrated in the second connection mode, so that the continuity of file migration of the router is ensured, and the efficiency of file migration of the router is improved.
Fig. 15 is a block diagram illustrating a router file migration apparatus according to yet another example embodiment. As shown in fig. 15, the router file migration apparatus may implement part or all of the router by software, hardware, or a combination of both. In this embodiment, the router file migration apparatus may be a target router, and the router file migration apparatus may include:
afirst receiving module 21 configured to receive a file migration instruction sent by a terminal; the file migration instruction comprises: the information of the file to be migrated and the virtual address of the router to be migrated are stored in the router to be migrated;
an obtainingmodule 22 configured to obtain a virtual address of a target router;
and themigration module 23 is configured to migrate the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and through the virtual address of the router to be migrated and the virtual address of the target router.
According to the router file migration device provided by the disclosure, after the first receiving module receives the file migration instruction sent by the terminal, the obtaining module can obtain the virtual address of the target router, so that the migration module can migrate the file to be migrated from the router to be migrated through the virtual address of the router to be migrated and the virtual address of the target router according to the information of the file to be migrated, the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 16 is a block diagram illustrating a router file migration apparatus according to yet another example embodiment. As shown in fig. 16, in addition to the block diagram shown in fig. 15, the router file migration apparatus may further include:
asecond receiving module 24, configured to receive a target router configuration request sent by the terminal before thefirst receiving module 21 receives the file migration instruction sent by the terminal; the target router configuration request is used for indicating the target router to configure a virtual address communicated with the router to be migrated;
aconfiguration module 25 configured to configure a virtual address for communicating with the router to be migrated according to the target router configuration request;
afirst sending module 26 configured to send a target router configuration response to the terminal in response to the target router configuration request.
According to the router file migration apparatus provided by the present disclosure, the second receiving module may receive a target router configuration request sent by a terminal, so that the configuration module may configure a virtual address for communicating with a router to be migrated according to the target router configuration request, so that the first sending module may send a target router configuration response responding to the target router configuration request to the terminal after the configuration is completed, so that the terminal may determine that a file migration between the router to be migrated and the target router may be performed based on the obtained virtual address of the router to be migrated and the received target router configuration response, further obtain information of the file to be migrated of the router to be migrated, and send a file migration instruction to the migration module, so that the migration module, after receiving the migration instruction, sends a file migration instruction through the virtual address of the target router, The virtual address of the router to be migrated migrates the file to be migrated from the router to be migrated, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 17 is a block diagram illustrating a router file migration apparatus according to yet another example embodiment. As shown in fig. 17, in addition to the block diagram shown in fig. 15, the router file migration apparatus may further include:
athird receiving module 27 configured to receive the connection request sent by the terminal before thefirst receiving module 21 receives the file migration instruction sent by the terminal; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
aconnection module 28 configured to access a wireless network of the router to be migrated according to the connection request; optionally, in an implementation manner of the present disclosure, the connection request includes: the identifier of the wireless network of the router to be migrated; theconnection module 28 may scan the wireless network covering the target router, obtain the identifier of the wireless network covering the target router, search for the identifier matching with the identifier of the wireless network of the router to be migrated from the identifiers of the wireless network covering the target router, and access the wireless network corresponding to the identifier matching with the identifier of the wireless network of the router to be migrated.
And asecond transmitting module 29 configured to transmit a connection response responding to the connection request to the terminal.
In the router file migration apparatus provided by the present disclosure, the third receiving module may receive the connection request sent by the terminal before the first receiving module receives the file migration instruction sent by the terminal, thereby enabling the connection module to access the wireless network of the router to be migrated according to the connection request, therefore, after sending the connection response to the terminal, the second sending module enables the terminal to determine that a communication path can exist between the target router and the router to be migrated based on the connection response, so that the target router can receive the file migration instruction sent by the terminal, and then the communication channel can be used for migrating the file to be migrated from the router to be migrated through the virtual address of the target router and the virtual address of the router to be migrated, so that the file migration steps of the router are simplified, and the file migration efficiency of the router is improved. Meanwhile, the reliability of file migration of the router is improved, and further user experience is improved.
Fig. 18 is a block diagram illustrating a router file migration apparatus according to yet another example embodiment. As shown in fig. 18, in addition to the block diagram shown in fig. 15, the router file migration apparatus may further include:
thefourth receiving module 20 is configured to receive the identifier of the router to be migrated, which is sent by the terminal, before thefirst receiving module 21 receives the file migration instruction sent by the terminal. Optionally, the identifier of the router to be migrated is a serial number SN of the router to be migrated.
In this way, in the process of migrating the file to be migrated from the router to be migrated by themigration module 23, if the target router and the router to be migrated are converted from the first connection mode to the second connection mode, themigration module 23 may be configured to obtain the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated after the target router and the router to be migrated are converted from the first connection mode to the second connection mode; and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
Optionally, themigration module 23 is configured to send an address query request message to the server; receiving an address query response message sent by the server; wherein, the address inquiry request message includes: an identifier of the router to be migrated; the server stores the virtual address of the router to be migrated under the second connection mode, wherein the virtual address is reported by the router to be migrated; the address query response message includes: and the virtual address of the router to be migrated in the second connection mode.
Optionally, in the process of migrating the file to be migrated from the router to be migrated by themigration module 23, if the target router and the router to be migrated are switched from the first connection mode to the second connection mode, themigration module 23 may obtain the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated after the identity check of the router to be migrated passes. Themigration module 23 may also send a prompt message to the terminal after the identity verification of the router to be migrated fails, so as to remind the user through the terminal that the router connected to the target router is replaced, thereby ensuring the correctness of the router file migration.
According to the router file migration apparatus provided by the present disclosure, the fourth receiving module may receive the identifier of the router to be migrated, which is sent by the terminal, before the first receiving module receives the file migration instruction sent by the terminal, so that in the process of migrating the file to be migrated from the router to be migrated by the migration module, if the connection manner between the target router and the router to be migrated changes, the migration module may obtain the virtual address of the router to be migrated in the second connection manner through the identifier of the router to be migrated, and further, the migration module may continue to transmit the file to be migrated through the virtual address of the router to be migrated in the second connection manner, thereby ensuring continuity of file migration of the router, and improving efficiency of file migration of the router.
Fig. 19 is a block diagram illustrating a routerfile migration apparatus 1900 in accordance with an example embodiment. For example, theapparatus 1900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 19,apparatus 1900 may include one or more of the following components: aprocessing component 1902, amemory 1904, apower component 1906, amultimedia component 1908, anaudio component 1910, an input/output (I/O)interface 1912, asensor component 1914, and acommunications component 1916.
Theprocessing component 1902 generally controls overall operation of thedevice 1900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing assembly 1902 may include one ormore processors 1920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocess component 1902 can include one or more modules that facilitate interaction between theprocess component 1902 and other components. For example, theprocessing component 1902 can include a multimedia module to facilitate interaction between themultimedia component 1908 and theprocessing component 1902.
Thememory 1904 is configured to store various types of data to support operations at thedevice 1900. Examples of such data include instructions for any application or method operating ondevice 1900, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 1904 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 1906 provide power to the various components ofdevice 1900.Power components 1906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power fordevice 1900.
Themultimedia component 1908 includes a touch-sensitive display screen that provides an output interface between thedevice 1900 and a user. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 1908 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the back-facing camera may receive external multimedia data when thedevice 1900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1910 is configured to output and/or input audio signals. For example,audio component 1910 includes a Microphone (MIC) configured to receive external audio signals whendevice 1900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in thememory 1904 or transmitted via thecommunication component 1916. In some embodiments,audio component 1910 further includes a speaker for outputting audio signals.
The I/O interface 1912 provides an interface between theprocessing component 1902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a main bar button, a volume button, a start button, and a lock button.
Thesensor component 1914 includes one or more sensors to provide various aspects of state assessment for theapparatus 1900. For example, thesensor component 1914 may detect an open/closed state of thedevice 1900, the relative positioning of components, such as a display and keypad of thedevice 1900, thesensor component 1914 may also detect a change in position of thedevice 1900 or a component of thedevice 1900, the presence or absence of user contact with thedevice 1900, orientation or acceleration/deceleration of thedevice 1900, and a change in temperature of thedevice 1900. Thesensor component 1914 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor component 1914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor component 1914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 1916 is configured to facilitate wired or wireless communication between theapparatus 1900 and other devices. Thedevice 1900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, thecommunication component 1916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 1916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, theapparatus 1900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as thememory 1904 comprising instructions, executable by theprocessor 1920 of theapparatus 1900, to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein that, when executed by a processor of anapparatus 1900, enable theapparatus 1900 to perform a router file migration method.
The method comprises the following steps:
acquiring a virtual address of a router to be migrated;
acquiring information of a file to be migrated of a router to be migrated;
sending a file migration instruction to a target router; the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated.
Optionally, the obtaining the virtual address of the router to be migrated includes:
sending a router to be migrated configuration request to the router to be migrated, wherein the router to be migrated configuration request is used for indicating the router to be migrated to configure a virtual address communicated with a target router;
receiving a router to be migrated configuration response sent by the router to be migrated based on the router to be migrated configuration request; the router to be migrated configuration response includes: the virtual address of the router to be migrated.
Optionally, before the obtaining of the information of the file to be migrated of the router to be migrated, the method further includes:
sending a target router configuration request to a target router; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
and receiving a target router configuration response sent by the target router based on the target router configuration request.
Optionally, before sending the file migration instruction to the target router, the method further includes:
sending a connection request to a target router; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
and receiving a connection response sent by the target router based on the connection request.
Optionally, the obtaining information of the file to be migrated of the router to be migrated includes:
reading information of a file stored by a router to be migrated, and generating a file list;
pushing a file list;
acquiring a selection instruction input by a user based on the file list;
and determining the information of the file to be migrated in the file list according to the selection instruction.
Optionally, before the reading the information of the file stored in the router to be migrated, the method further includes:
and determining that the router to be migrated has the management authority.
Optionally, before sending the file migration instruction to the target router, the method further includes:
acquiring an identifier of a router to be migrated;
and sending the identifier of the router to be migrated to the target router.
Optionally, the identifier of the router to be migrated is a serial number SN of the router to be migrated.
Fig. 20 is a block diagram illustrating a routerfile migration apparatus 2000, according to an example embodiment. The routerfile migration apparatus 2000 may be provided as a target router. Referring to fig. 20, theserver 2000 includes aprocessing component 2022, which further includes one or more processors, and memory resources, represented bymemory 2032, for storing instructions, e.g., applications, executable by theprocessing component 2022. The application programs stored in thememory 2032 may include one or more modules each corresponding to a set of instructions. Further, theprocessing component 2022 is configured to execute instructions to perform the router file migration method described above.
The method comprises the following steps:
receiving a file migration instruction sent by a terminal; the file migration instruction comprises: the information of the file to be migrated and the virtual address of the router to be migrated are stored in the router to be migrated;
acquiring a virtual address of a target router;
and migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and through the virtual address of the router to be migrated and the virtual address of the target router.
Optionally, before receiving the file migration instruction sent by the terminal, the method further includes:
receiving a target router configuration request sent by a terminal; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
configuring a virtual address communicated with a router to be migrated according to the configuration request of the target router;
and sending a target router configuration response responding to the target router configuration request to the terminal.
Optionally, before receiving the file migration instruction sent by the terminal, the method further includes:
receiving a connection request sent by a terminal; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
accessing a wireless network of the router to be migrated according to the connection request;
and sending a connection response responding to the connection request to the terminal.
Optionally, the connection request includes: the identifier of the wireless network of the router to be migrated;
the above accessing the wireless network of the router to be migrated according to the connection request includes:
scanning a wireless network covering a target router to obtain an identifier of the wireless network covering the target router;
searching an identifier matched with the identifier of the wireless network of the router to be migrated in the identifier of the wireless network covering the target router;
and accessing the wireless network corresponding to the identifier matched with the identifier of the wireless network of the router to be migrated.
Optionally, before receiving the file migration instruction sent by the terminal, the method further includes:
and receiving the identifier of the router to be migrated, which is sent by the terminal.
Optionally, in the process of migrating the file to be migrated from the router to be migrated to the target router, the target router and the router to be migrated are switched from the first connection mode to the second connection mode;
the migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and the virtual address of the router to be migrated and the virtual address of the target router includes:
after the first connection mode is converted into the second connection mode, acquiring a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated;
and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
Optionally, the obtaining the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated includes:
sending an address query request message to a server; the address query request message includes: an identifier of the router to be migrated; the server stores the virtual address of the router to be migrated under the second connection mode, wherein the virtual address is reported by the router to be migrated;
receiving an address query response message sent by a server; the address query response message includes: and the virtual address of the router to be migrated in the second connection mode.
Optionally, the obtaining the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated includes:
carrying out identity verification on the router to be migrated;
and after the identity verification of the router to be migrated passes, acquiring the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated.
Optionally, after the identity verification is performed on the router to be migrated, the method further includes:
and after the identity verification of the router to be migrated fails, sending a prompt message to the terminal.
Optionally, the identifier of the router to be migrated is a serial number SN of the router to be migrated.
Theserver 2000 may also include apower component 2026 configured to perform power management of theserver 2000, a wired orwireless network interface 2050 configured to connect theserver 2000 to a network, and an input/output (I/O)interface 2058.Server 2000 may operate based on an operating system stored inmemory 2032, such as a Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (32)

1. A method for migrating a router file is characterized by comprising the following steps:
acquiring a virtual address of a router to be migrated;
acquiring information of a file to be migrated of the router to be migrated;
sending a file migration instruction to a target router; the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated;
before the sending the file migration instruction to the target router, the method further includes:
acquiring the identifier of the router to be migrated;
sending the identifier of the router to be migrated to the target router; so that the target router and the router to be migrated are converted from a first connection mode to a second connection mode in the process of migrating the file to be migrated from the router to be migrated to the target router;
then, the migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and the virtual address of the router to be migrated and the virtual address of the target router includes:
after the first connection mode is converted into the second connection mode, acquiring a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated;
and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
2. The method of claim 1, wherein the obtaining the virtual address of the router to be migrated comprises:
sending a router to be migrated configuration request to the router to be migrated, wherein the router to be migrated configuration request is used for indicating the router to be migrated to configure a virtual address communicated with the target router;
receiving a router to be migrated configuration response sent by the router to be migrated based on the router to be migrated configuration request; the router to be migrated configuration response includes: and the virtual address of the router to be migrated.
3. The method according to claim 1, wherein before the obtaining the information of the file to be migrated of the router to be migrated, the method further comprises:
sending a target router configuration request to the target router; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
and receiving a target router configuration response sent by the target router based on the target router configuration request.
4. The method of claim 1, wherein prior to sending the file migration instruction to the target router, the method further comprises:
sending a connection request to the target router; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
and receiving a connection response sent by the target router based on the connection request.
5. The method according to any one of claims 1 to 4, wherein the obtaining information of the file to be migrated of the router to be migrated includes:
reading information of the file stored in the router to be migrated, and generating a file list;
pushing the file list;
acquiring a selection instruction input by a user based on the file list;
and determining the information of the file to be migrated in the file list according to the selection instruction.
6. The method according to claim 5, wherein before reading the information of the file stored by the router to be migrated, further comprising:
and determining the management authority of the router to be migrated.
7. The method according to claim 1, wherein the identifier of the router to be migrated is a serial number SN of the router to be migrated.
8. A method for migrating a router file, the method comprising:
receiving a file migration instruction sent by a terminal; the file migration instruction comprises: the method comprises the steps that information of a file to be migrated and a virtual address of a router to be migrated are stored in the router to be migrated;
acquiring a virtual address of a target router;
according to the information of the file to be migrated, migrating the file to be migrated from the router to be migrated to the target router through the virtual address of the router to be migrated and the virtual address of the target router;
before the receiving the file migration instruction sent by the terminal, the method further includes:
receiving the identifier of the router to be migrated, which is sent by the terminal;
in the process of migrating the file to be migrated from the router to be migrated to the target router, the target router and the router to be migrated are converted from a first connection mode to a second connection mode;
then, the migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and the virtual address of the router to be migrated and the virtual address of the target router includes:
after the first connection mode is converted into the second connection mode, acquiring a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated;
and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
9. The method according to claim 8, wherein before the receiving the file migration instruction sent by the terminal, the method further comprises:
receiving a target router configuration request sent by the terminal; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
configuring a virtual address communicated with the router to be migrated according to the target router configuration request;
and sending a target router configuration response responding to the target router configuration request to the terminal.
10. The method according to claim 8, wherein before receiving the file migration instruction sent by the terminal, the method further comprises:
receiving a connection request sent by the terminal; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
accessing the wireless network of the router to be migrated according to the connection request;
and sending a connection response responding to the connection request to the terminal.
11. The method of claim 10, wherein the connection request comprises: an identifier of a wireless network of the router to be migrated;
the accessing the wireless network of the router to be migrated according to the connection request comprises:
scanning a wireless network covering the target router to acquire an identifier of the wireless network covering the target router;
searching an identifier matched with the identifier of the wireless network of the router to be migrated in the identifier of the wireless network covering the target router;
and accessing the wireless network corresponding to the identifier matched with the identifier of the wireless network of the router to be migrated.
12. The method according to claim 8, wherein the obtaining the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated includes:
sending an address query request message to a server; the address query request message includes: an identity of the router to be migrated; the server stores the virtual address of the router to be migrated under the second connection mode, which is reported by the router to be migrated;
receiving an address query response message sent by the server; the address query response message includes: and the virtual address of the router to be migrated in the second connection mode.
13. The method according to claim 8, wherein the obtaining the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated includes:
carrying out identity verification on the router to be migrated;
and after the identity verification of the router to be migrated passes, acquiring the virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated.
14. The method according to claim 13, further comprising, after the identity checking of the router to be migrated:
and sending a prompt message to the terminal after the identity verification of the router to be migrated fails.
15. The method according to claim 8, wherein the identifier of the router to be migrated is a serial number SN of the router to be migrated.
16. A router file migration apparatus, comprising:
the first acquisition module is configured to acquire a virtual address of the router to be migrated;
the second acquisition module is configured to acquire information of the file to be migrated of the router to be migrated;
the first sending module is configured to send a file migration instruction to the target router; the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated;
the device further comprises:
the third obtaining module is configured to obtain the identifier of the router to be migrated before the first sending module sends the file migration instruction to the target router;
a fourth sending module configured to send the identifier of the router to be migrated to the target router; so that the target router and the router to be migrated are converted from a first connection mode to a second connection mode in the process of migrating the file to be migrated from the router to be migrated to the target router;
then, the migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and the virtual address of the router to be migrated and the virtual address of the target router includes:
after the first connection mode is converted into the second connection mode, acquiring a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated;
and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
17. The apparatus according to claim 16, wherein the first obtaining module is configured to send a router to be migrated configuration request to the router to be migrated, and receive a router to be migrated configuration response sent by the router to be migrated based on the router to be migrated configuration request;
wherein the router to be migrated configuration request is used for indicating the router to be migrated to configure a virtual address for communicating with the target router; the router to be migrated configuration response includes: and the virtual address of the router to be migrated.
18. The apparatus of claim 16, further comprising:
a second sending module, configured to send a target router configuration request to the target router before the second obtaining module obtains the information of the file to be migrated of the router to be migrated; the target router configuration request is used for indicating the target router to configure a virtual address communicating with the router to be migrated;
a first receiving module configured to receive a target router configuration response sent by the target router based on the target router configuration request.
19. The apparatus of claim 18, further comprising:
a third sending module configured to send a connection request to a target router before the sending module sends a file migration instruction to the target router; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
a second receiving module configured to receive a connection response sent by the target router based on the connection request.
20. The apparatus according to any one of claims 16 to 19, wherein the second obtaining module is configured to read information of the file stored in the router to be migrated, and generate a file list; pushing the file list; acquiring a selection instruction input by a user based on the file list; and determining the information of the file to be migrated in the file list according to the selection instruction.
21. The apparatus according to claim 20, wherein the second obtaining module is configured to determine that the management authority of the router to be migrated is possessed before reading information of the file stored in the router to be migrated.
22. The apparatus of claim 16, wherein the identifier of the router to be migrated is a Sequence Number (SN) of the router to be migrated.
23. A router file migration apparatus, the apparatus comprising:
the first receiving module is configured to receive a file migration instruction sent by a terminal; the file migration instruction comprises: the method comprises the steps that information of a file to be migrated and a virtual address of a router to be migrated are stored in the router to be migrated;
an acquisition module configured to acquire a virtual address of a target router;
the migration module is configured to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the router to be migrated and the virtual address of the target router according to the information of the file to be migrated;
the device further comprises:
a fourth receiving module, configured to receive, before the first receiving module receives a file migration instruction sent by a terminal, an identifier of the router to be migrated sent by the terminal;
in the process of migrating the file to be migrated from the router to be migrated to the target router, the target router and the router to be migrated are converted from a first connection mode to a second connection mode;
the migration module is configured to, after the first connection mode is converted into the second connection mode, obtain a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated; and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
24. The apparatus of claim 23, further comprising:
the second receiving module is configured to receive a target router configuration request sent by a terminal before the first receiving module receives a file migration instruction sent by the terminal; wherein the target router configuration request is used for indicating the target router to configure a virtual address for communicating with the router to be migrated;
a configuration module configured to configure a virtual address in communication with the router to be migrated according to the target router configuration request;
a first sending module configured to send a target router configuration response to the terminal in response to the target router configuration request.
25. The apparatus of claim 23, further comprising:
the third receiving module is configured to receive a connection request sent by a terminal before the first receiving module receives a file migration instruction sent by the terminal; the connection request is used for indicating the target router to access the wireless network of the router to be migrated;
the connection module is configured to access the wireless network of the router to be migrated according to the connection request;
a second sending module configured to send a connection response to the connection request to the terminal.
26. The apparatus of claim 25, wherein the connection request comprises: an identifier of a wireless network of the router to be migrated;
the connection module is configured to scan the wireless network covering the target router, acquire the identifier of the wireless network covering the target router, search for the identifier matched with the identifier of the wireless network of the router to be migrated from the identifier of the wireless network covering the target router, and access the wireless network corresponding to the identifier matched with the identifier of the wireless network of the router to be migrated.
27. The apparatus of claim 23, wherein the migration module is configured to send an address query request message to a server; receiving an address query response message sent by the server;
wherein the address query request message includes: an identity of the router to be migrated; the server stores the virtual address of the router to be migrated under the second connection mode, which is reported by the router to be migrated; the address query response message includes: and the virtual address of the router to be migrated in the second connection mode.
28. The apparatus according to claim 23, wherein the migration module is configured to perform identity verification on the router to be migrated, and after the identity verification of the router to be migrated passes, obtain the virtual address of the router to be migrated in the second connection manner according to the identifier of the router to be migrated.
29. The apparatus of claim 28, wherein the migration module is configured to send a prompt message to the terminal after the identity check of the router to be migrated fails.
30. The apparatus of claim 23, wherein the identifier of the router to be migrated is a Sequence Number (SN) of the router to be migrated.
31. A router file migration apparatus, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring a virtual address of a router to be migrated;
acquiring information of a file to be migrated of the router to be migrated;
sending a file migration instruction to a target router; the file migration instruction comprises: the migration instruction is used for indicating the target router to migrate the file to be migrated from the router to be migrated to the target router through the virtual address of the target router and the virtual address of the router to be migrated according to the information of the file to be migrated;
prior to the sending the file migration instruction to the target router, the processor is further configured to:
acquiring the identifier of the router to be migrated;
sending the identifier of the router to be migrated to the target router; so that the target router and the router to be migrated are converted from a first connection mode to a second connection mode in the process of migrating the file to be migrated from the router to be migrated to the target router;
then, the migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and the virtual address of the router to be migrated and the virtual address of the target router includes:
after the first connection mode is converted into the second connection mode, acquiring a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated;
and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
32. A router file migration apparatus, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
receiving a file migration instruction sent by a terminal; the file migration instruction comprises: the method comprises the steps that information of a file to be migrated and a virtual address of a router to be migrated are stored in the router to be migrated;
acquiring a virtual address of a target router;
according to the information of the file to be migrated, migrating the file to be migrated from the router to be migrated to the target router through the virtual address of the router to be migrated and the virtual address of the target router;
before receiving the file migration instruction sent by the terminal, the processor is further configured to:
receiving the identifier of the router to be migrated, which is sent by the terminal;
in the process of migrating the file to be migrated from the router to be migrated to the target router, the target router and the router to be migrated are converted from a first connection mode to a second connection mode;
then, the migrating the file to be migrated from the router to be migrated to the target router according to the information of the file to be migrated and the virtual address of the router to be migrated and the virtual address of the target router includes:
after the first connection mode is converted into the second connection mode, acquiring a virtual address of the router to be migrated in the second connection mode according to the identifier of the router to be migrated;
and according to the virtual address of the router to be migrated in the second connection mode, and according to the information of the file to be migrated and the virtual address of the target router, continuing migrating the file to be migrated from the router to be migrated.
CN201710183065.8A2017-03-242017-03-24 Router file migration method and deviceActiveCN106992882B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710183065.8ACN106992882B (en)2017-03-242017-03-24 Router file migration method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710183065.8ACN106992882B (en)2017-03-242017-03-24 Router file migration method and device

Publications (2)

Publication NumberPublication Date
CN106992882A CN106992882A (en)2017-07-28
CN106992882Btrue CN106992882B (en)2020-06-02

Family

ID=59411878

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710183065.8AActiveCN106992882B (en)2017-03-242017-03-24 Router file migration method and device

Country Status (1)

CountryLink
CN (1)CN106992882B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111917886B (en)*2020-08-142023-05-30深圳市欧瑞博科技股份有限公司Intelligent device data migration method and device and intelligent device

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101364232A (en)*2008-10-062009-02-11深圳华为通信技术有限公司Method, terminal and system fro backing-up non-volatile data
CN101499942A (en)*2008-02-012009-08-05华为技术有限公司Method, system and apparatus for seamless switching
CN104144175A (en)*2013-05-062014-11-12腾讯科技(深圳)有限公司Method, device and system for data migration
CN105630587A (en)*2014-10-312016-06-01腾讯科技(深圳)有限公司Method, device and system for migrating application program data between terminals
CN105871423A (en)*2016-03-282016-08-17乐视控股(北京)有限公司Data processing method and device
CN106332058A (en)*2016-10-192017-01-11广东欧珀移动通信有限公司 A data transmission method and terminal equipment
CN106452917A (en)*2016-11-242017-02-22上海斐讯数据通信技术有限公司Method and system for automatically configuring PPPOE internet surfing account and password
CN106527980A (en)*2016-10-192017-03-22广东欧珀移动通信有限公司Data migration method and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101499942A (en)*2008-02-012009-08-05华为技术有限公司Method, system and apparatus for seamless switching
CN101364232A (en)*2008-10-062009-02-11深圳华为通信技术有限公司Method, terminal and system fro backing-up non-volatile data
CN104144175A (en)*2013-05-062014-11-12腾讯科技(深圳)有限公司Method, device and system for data migration
CN105630587A (en)*2014-10-312016-06-01腾讯科技(深圳)有限公司Method, device and system for migrating application program data between terminals
CN105871423A (en)*2016-03-282016-08-17乐视控股(北京)有限公司Data processing method and device
CN106332058A (en)*2016-10-192017-01-11广东欧珀移动通信有限公司 A data transmission method and terminal equipment
CN106527980A (en)*2016-10-192017-03-22广东欧珀移动通信有限公司Data migration method and terminal
CN106452917A (en)*2016-11-242017-02-22上海斐讯数据通信技术有限公司Method and system for automatically configuring PPPOE internet surfing account and password

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
小米社区官方论坛..迁移数据竟如此简单?教你使用小米路由器一键换机..《http://bbs.xiaomi.cn/t-13414534-3-o1#comment_top》.2017,第1-7页.*
迁移数据竟如此简单?教你使用小米路由器一键换机.;小米社区官方论坛.;《http://bbs.xiaomi.cn/t-13414534-3-o1#comment_top》;20170322;正文第1-7页,图2、4-8、11-12*

Also Published As

Publication numberPublication date
CN106992882A (en)2017-07-28

Similar Documents

PublicationPublication DateTitle
US10608988B2 (en)Method and apparatus for bluetooth-based identity recognition
RU2619073C2 (en)Method and device for implementation of adjustment
RU2637466C2 (en)Method, device and system for obtaining access to network
JP6374517B2 (en) Authority verification method and apparatus
JP6228676B2 (en) Connection state prompting method and apparatus
KR101759419B1 (en)Method and apparatus for detecting smart device, program and recording medium
EP3163803B1 (en)Method and device for establishing connection
RU2644511C2 (en)Method and device for displaying router configuration interface
US20220014938A1 (en)Method and device for using network slice
US9723486B2 (en)Method and apparatus for accessing network
WO2016058334A1 (en)Upgrade method, apparatus and device
CN106713127B (en)Method and device for acquiring and processing instant chat records
CN105848287A (en)Method, device and system for processing terminal positioning and router
CN110311961B (en)Information sharing method and system, client and server
CN114489856B (en) Method, device and equipment for obtaining application configuration file
CN104618987B (en)Access the method and device of network
RU2632396C2 (en)Method and device to control router plug-in module
CN107070707B (en) Method and device for determining router initialization mode
CN106992882B (en) Router file migration method and device
CN110221813B (en)Application data connection establishment method and device, storage medium and electronic equipment
CN112769677A (en)Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN103905546B (en)A kind of method and apparatus of terminal logs in remote server
US20170187824A1 (en)Method, device, and computer-readable medium for acquiring user information
RU2651231C2 (en)Method and device for acquiring relay router information
CN119893742A (en)Data transmission method, device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp