CN114827199A - Device migration method and device, computer device and storage medium - Google Patents
Device migration method and device, computer device and storage medium Download PDFInfo
- Publication number
- CN114827199A CN114827199A CN202210368188.XA CN202210368188A CN114827199A CN 114827199 A CN114827199 A CN 114827199A CN 202210368188 A CN202210368188 A CN 202210368188A CN 114827199 A CN114827199 A CN 114827199A
- Authority
- CN
- China
- Prior art keywords
- gateway
- migrated
- equipment
- devices
- determining
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 208000036829 Device dislocation Diseases 0.000 title claims abstract description 29
- 230000004044 response Effects 0.000 claims abstract description 137
- 238000012545 processing Methods 0.000 claims abstract description 84
- 238000004590 computer program Methods 0.000 claims description 39
- 238000004364 calculation method Methods 0.000 claims description 8
- 230000005012 migration Effects 0.000 abstract description 12
- 238000013508 migration Methods 0.000 abstract description 12
- 238000004891 communication Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 235000008694 Humulus lupulus Nutrition 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2807—Exchanging configuration information on appliance services in a home automation network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/148—Migration or transfer of sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Automation & Control Theory (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to a device migration method, a device migration apparatus, a computer device and a storage medium. The technical field of wireless communication is related to, the method comprises: sending a control instruction to the corresponding drop devices through the gateways to indicate the drop devices to perform response processing based on the control instruction; receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results; acquiring load information of each gateway and signal strength of equipment to be migrated corresponding to each gateway; and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway. By adopting the method, the equipment migration efficiency under the multi-cascade level gateway scene can be greatly improved.
Description
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a device migration method, apparatus, computer device, storage medium, and computer program product.
Background
With the continuous popularization of wireless networks, more and more people like to use wireless internet, and more devices support wireless internet. Under one gateway, a plurality of off-hook devices, such as mobile phones, tablets, smart home devices, robots, etc., are usually connected simultaneously. Because people's needs of working and living, some hang down the equipment and often need the shift position, will need the user to adjust the gateway of connection for the hang down equipment that removes this moment, perhaps when a gateway goes wrong, the user need switch over the hang down equipment that this wireless network connects under another gateway, it is too many that the intelligent house equipment quantity still can be, and all concentrate on same spatial zone, also need to do dynamic adjustment, switch over the some intelligent house equipment that hang down under a gateway under another gateway. However, after the current drop-off device is added to the gateway during networking, the current drop-off device is fixed to the current gateway, and the drop-off device cannot select an optimal gateway or automatically migrate to the optimal gateway.
However, with the increase of intelligent devices capable of being networked, when a large number of devices need to switch gateways, currently, each device can only be manually operated, an optimal gateway is selected for each device one by one, under the condition of multiple devices, an optimal network is manually selected one by one, and associated information of the gateway and the devices needs to be updated on a platform of the internet of things, so that the operation is complex, and the problem of low device migration efficiency exists.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a device migration method, apparatus, computer device, computer readable storage medium, and computer program product capable of controlling an off-hook device to perform automatic migration between gateways.
In a first aspect, the present application provides a device migration method. The method comprises the following steps:
sending a control instruction to the corresponding drop devices through the gateways to indicate the drop devices to perform response processing based on the control instruction;
receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results;
acquiring load information of each gateway and signal strength of equipment to be migrated corresponding to each gateway;
and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
In one embodiment, the control instruction is used for instructing each off-hook device to acquire issuing time information corresponding to the control instruction and acquiring receiving time information corresponding to a local receiving control instruction, and calculating to obtain a response delay corresponding to each off-hook device according to the issuing time information and the receiving time information, and taking the response delay corresponding to each off-hook device as a response processing result of each off-hook device;
determining a device to be migrated from a plurality of devices hanging down, comprising:
acquiring response delay corresponding to each lower hanging device;
and if the response delay corresponding to the equipment to be hung is greater than the time length threshold, determining the equipment to be hung with the response delay greater than the time length threshold as the equipment to be migrated.
In one embodiment, the control instruction is used for instructing each drop device to acquire hop count information corresponding to each drop device, the hop count information is used for representing the number of devices through which the control instruction passes, a cascade level corresponding to each drop device is obtained through calculation according to the hop count information corresponding to each drop device, and the cascade level corresponding to each drop device is used as a response processing result of each drop device;
determining a device to be migrated from a plurality of devices hanging down, comprising:
acquiring a cascade level corresponding to each hanging-down device;
and if the cascade level corresponding to the lower-hanging device is larger than the cascade level threshold, determining the lower-hanging device with the cascade level larger than the cascade level threshold as the device to be migrated.
In one embodiment, the obtaining load information of each gateway and the signal strength of the device to be migrated corresponding to each gateway includes:
acquiring the number of the lower hanging devices corresponding to each gateway as load information of each gateway;
controlling each gateway to respectively send wireless beacons to the equipment to be migrated;
the method comprises the steps of obtaining multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength when the equipment to be migrated receives the wireless beacon of one gateway.
In one embodiment, determining a target gateway corresponding to a device to be migrated according to the signal strength of the device to be migrated corresponding to each gateway and load information of each gateway includes:
acquiring first signal relative information with the maximum signal intensity from the multiple groups of signal relative information, and determining a first gateway according to a gateway address in the first signal relative information;
and if the number of the lower hanging devices of the first gateway is less than the threshold value of the number of the devices, determining the first gateway as a target gateway.
In one embodiment, the method further comprises:
if the number of the lower-hanging devices of the first gateway is larger than the device number threshold, first signal relative information corresponding to the first gateway is eliminated, second signal relative information with the maximum signal intensity is obtained from the remaining multiple groups of signal relative information, and the second gateway is determined according to a gateway address in the second signal relative information;
and if the number of the lower hanging devices of the second gateway is less than the device number threshold value, determining the second gateway as the target gateway.
In a second aspect, the present application further provides an apparatus for device migration. The device comprises:
the device to be migrated searching module is used for sending a control instruction to the corresponding lower-mounted device through each gateway so as to instruct each lower-mounted device to perform response processing based on the control instruction;
the device to be migrated determining module is used for receiving response processing results fed back by the off-hook devices and determining the device to be migrated from the off-hook devices based on the response processing results;
the target gateway searching module is used for acquiring the load information of each gateway and the signal intensity of the equipment to be migrated corresponding to each gateway;
and the target gateway determining module is used for determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to the target gateway.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
sending a control instruction to the corresponding drop devices through the gateways to indicate the drop devices to perform response processing based on the control instruction;
receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results;
acquiring load information of each gateway and signal strength of equipment to be migrated corresponding to each gateway;
and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
sending a control instruction to the corresponding drop devices through the gateways to indicate the drop devices to perform response processing based on the control instruction;
receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results;
acquiring load information of each gateway and signal strength of equipment to be migrated corresponding to each gateway;
and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
sending a control instruction to the corresponding drop devices through the gateways to indicate the drop devices to perform response processing based on the control instruction;
receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results;
acquiring load information of each gateway and signal strength of equipment to be migrated corresponding to each gateway;
and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
According to the device migration method, the device migration apparatus, the computer device, the storage medium and the computer program product, the control instruction can be sent to the corresponding drop devices through the gateways to instruct the drop devices to perform response processing based on the control instruction, so that devices to be migrated with poor networks are found from the drop devices based on response processing results, then the signal strength of the gateways is obtained for the devices to be migrated, the target gateway of the devices to be migrated is selected by combining the load information of the gateways, and the devices to be migrated are controlled to be migrated to the target gateway. Therefore, the optimal gateway can be automatically found for each lower-hanging device, each lower-hanging device can be automatically transferred to the corresponding optimal gateway, the network condition of the lower-hanging device is not required to be manually detected one by one manually, the optimal gateway is manually screened and the optimal gateway is manually transferred, and the device transfer efficiency in a multi-cascade hierarchical gateway scene is greatly improved.
Drawings
FIG. 1 is a diagram of an application environment for a device migration method in one embodiment;
FIG. 2 is a flow diagram that illustrates a method for device migration in one embodiment;
FIG. 3 is a diagram illustrating an effect of a device migration method according to an embodiment;
FIG. 4 is a block diagram showing the structure of a device migration apparatus according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The device migration method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the drop device 102 communicates with the control device 104 over a network. The data storage system may store data that the control device 104 needs to process. The data storage system may be integrated on the control device 104, or may be placed on the cloud or other network control device. The down-hanging device 102 can be but is not limited to various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices can be smart home devices such as smart speakers, smart televisions, smart air conditioners and smart lamps. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The control device 104 may be any gateway or a designated gateway in the scene of the internet of things, or a device having a gateway function in the scene of the internet of things, such as an intelligent control panel, or a certain computer device that communicates with each gateway, where the computer device may be a terminal or a server, and the server may be implemented by an independent server or a server cluster formed by multiple servers.
In one embodiment, as shown in fig. 2, a device migration method is provided, which is described by taking the method as an example applied to the control device 104 in fig. 1, and includes the following steps:
The gateway refers to an internet of things gateway, one gateway is a network node in the internet of things, and the gateway can be but is not limited to a Zigbee gateway, a bluetooth Mesh gateway, or other types of private gateways.
Optionally, the control device may directly send the control instruction to each drop-on device, or may send the control instruction to each drop-on device through the internet of things platform. For a lower-hanging device, a control instruction is transmitted to a default initial gateway by the control device or the internet of things platform, then is transmitted to the lower-hanging device from the initial gateway, and is forwarded to other gateways according to corresponding cascade levels from the initial gateway, each gateway forwards the control instruction to the corresponding lower-hanging device and the next-level gateway when acquiring the control instruction, and the control instruction may pass through multiple levels of gateways in the transmission process. And the drop-in device responds after receiving the control instruction, generates a response processing result based on the data content of the control instruction and returns the response processing result to the control device. For example, the control instruction may include a timestamp when the control instruction is issued, and after receiving the control instruction, the drop-in device records the timestamp when the control instruction is received, and generates a response processing result based on the timestamp when the control instruction is received; the control instruction can also count network nodes passing through in the transmission process, and when the drop-in device receives the control instruction, the control instruction carries one network node number, and the drop-in device generates a response processing result based on the network node number.
And 204, receiving response processing results fed back by the drop devices, and determining the device to be migrated from the multiple drop devices based on the response processing results.
Optionally, the control device receives response processing results fed back by the drop-on devices, selects corresponding response parameter thresholds according to data types of the response processing results, and compares the response processing results with the response parameter thresholds to obtain the drop-on devices meeting the migration requirements as the devices to be migrated.
And the response parameter threshold is used for representing and judging the migration condition of the equipment hung down.
And step 206, acquiring load information of each gateway and signal strength of the equipment to be migrated corresponding to each gateway.
The load information may be, but is not limited to, the number of devices under the gateway, the CPU utilization of the gateway, and the load balancing status of the gateway.
Optionally, the control device directly obtains load information of each gateway, and simultaneously sends a signal strength detection instruction to the device to be migrated. And the equipment to be migrated responds after receiving the signal strength detection instruction, network detection is carried out on each gateway to obtain the signal strength of the equipment to be migrated corresponding to each gateway, or the signal strength of the equipment to be migrated corresponding to each gateway is obtained through data communication with each gateway, and then the signal strength of the equipment to be migrated corresponding to each gateway is transmitted to the control equipment.
And 208, determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
Optionally, the control device comprehensively judges the load information of each gateway and the signal strength of the device to be migrated corresponding to each gateway, determines a gateway whose load information and signal strength both meet the requirements, and uses the gateway as a target gateway corresponding to the device to be migrated, and finally controls the device to be migrated to be connected to the corresponding target gateway.
Further, after the device to be migrated is controlled to be connected to the corresponding target gateway, the device to be migrated may be regarded as a migrated device, association information between the migrated device and the target gateway is generated and stored, and the association information is updated to the internet of things platform, so that data is directly transmitted to the migrated device through the target gateway when data is transmitted to the migrated device through the internet of things platform next time.
In the device migration method, the control instruction can be sent to the corresponding drop devices through the gateways to instruct the drop devices to perform response processing based on the control instruction, so that devices to be migrated with poor networks are found from the multiple drop devices based on response processing results, then the signal strength of the gateways is obtained for the devices to be migrated, the target gateway of the devices to be migrated is selected according to the load information of the gateways, and the devices to be migrated are controlled to be migrated to the target gateway. Therefore, the optimal gateway can be automatically found for each lower-hanging device, each lower-hanging device can be automatically transferred to the corresponding optimal gateway, the network condition of the lower-hanging device is not required to be manually detected one by one manually, the optimal gateway is manually screened and the optimal gateway is manually transferred, and the device transfer efficiency in a multi-cascade hierarchical gateway scene is greatly improved.
In one embodiment, the control instruction is used to instruct each of the off-hook devices to acquire issue time information corresponding to the control instruction and acquire receive time information corresponding to the local receive control instruction, and calculate a response delay corresponding to each of the off-hook devices according to the issue time information and the receive time information, and use the response delay corresponding to each of the off-hook devices as a response processing result of each of the off-hook devices. Determining a device to be migrated from a plurality of devices hanging down, comprising: acquiring response delay corresponding to each lower hanging device; and if the response delay corresponding to the equipment to be hung is greater than the time length threshold, determining the equipment to be hung with the response delay greater than the time length threshold as the equipment to be migrated.
Optionally, the control instruction may include delivery time information when the control instruction is sent from the control device, when the drop-in device receives the control instruction, the drop-in device identifies and obtains the delivery time information in the control instruction, then obtains receiving time information when the control instruction is locally received, calculates a time length according to the delivery time information and the receiving time information, takes the time length as a response delay corresponding to the drop-in device, and the drop-in device generates a response processing result based on the response delay and returns the response processing result to the control device. After the control device receives the response processing results returned by the drop-on devices, the response delay corresponding to each drop-on device is identified from each response processing result, and if the response delay corresponding to the drop-on device is larger than a preset time threshold, the corresponding drop-on device is determined to be the device to be migrated. Wherein the duration threshold may be set to 500ms (milliseconds).
In this embodiment, after receiving the control instruction, each drop-off device obtains the issue time information corresponding to the control instruction, obtains the receive time information corresponding to the local receive control instruction, calculates the response delay corresponding to each drop-off device according to the issue time information and the receive time information, and returns the response delay to the control device as a response processing result. And the control equipment acquires the response delay corresponding to each hanging-down equipment from each returned response processing result, and if the response delay corresponding to the hanging-down equipment is greater than the time length threshold, the hanging-down equipment with the response delay greater than the time length threshold is determined as the equipment to be migrated. Therefore, the device to be migrated can be automatically searched according to the response delay of each device to be migrated, and the device migration efficiency in the multi-cascade level gateway scene is improved.
In one embodiment, the control instruction is used for instructing each drop device to acquire hop count information corresponding to each drop device, the hop count information is used for representing the number of devices through which the control instruction passes, a cascade level corresponding to each drop device is obtained through calculation according to the hop count information corresponding to each drop device, and the cascade level corresponding to each drop device is used as a response processing result of each drop device. Determining a device to be migrated from a plurality of devices hanging down, comprising: acquiring a cascade level corresponding to each hanging-down device; and if the cascade level corresponding to the lower-hanging device is larger than the cascade level threshold, determining the lower-hanging device with the cascade level larger than the cascade level threshold as the device to be migrated.
Optionally, the control instruction may include hop count information and a hop count calculation algorithm, where the hop count calculation algorithm can count the number of devices through which the control instruction passes, and the devices may be, but are not limited to, gateway devices and smart home devices. In the process of transmitting the control instruction from the control device to the drop-on device, the hop count calculation algorithm updates the hop count information (the hop count is increased by one) every time the drop-on device passes through one device until the drop-on device receives the control instruction. And after receiving the control instruction, the drop-off device identifies and acquires hop count information in the control instruction, takes the hop count information as the cascade hierarchy of the drop-off device, and generates a response processing result based on the cascade hierarchy and returns the response processing result to the control device. It should be noted that the more the number of hops that the control command is issued to the drop device, the higher the possibility of network delay, and therefore, the drop device with the larger number of hops needs to be migrated. After the control device receives the response processing results returned by the lower-hanging devices, the cascade level corresponding to each lower-hanging device is identified from each response processing result, and if the cascade level corresponding to the lower-hanging device is larger than a preset cascade level threshold, the corresponding lower-hanging device is determined to be the device to be migrated. Wherein the cascade level threshold may be set to 2.
In this embodiment, the control instruction updates the hop count information during transmission, and after receiving the control instruction, each drop device obtains the hop count information in the control instruction, obtains the cascade level of each drop device according to the hop count information, and returns a response delay to the control device as a response processing result. And the control equipment acquires the cascade level corresponding to each lower hanging device from each returned response processing result, and if the cascade level corresponding to the lower hanging device is greater than the cascade level threshold, the lower hanging device with the cascade level greater than the cascade level threshold is determined as the device to be migrated. Therefore, the lower-hanging device to be migrated can be automatically searched according to the cascade level of each lower-hanging device, and the device migration efficiency in a multi-cascade level gateway scene is improved.
In one embodiment, the obtaining load information of each gateway and the signal strength of the device to be migrated corresponding to each gateway includes: acquiring the number of the lower hanging devices corresponding to each gateway as load information of each gateway; controlling each gateway to respectively send wireless beacons to the equipment to be migrated; the method comprises the steps of obtaining multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength when the equipment to be migrated receives the wireless beacon of one gateway.
Optionally, the control device obtains the number of drop devices corresponding to each gateway, may directly use the number of drop devices under one gateway as the load information of the gateway, and may also comprehensively determine the load information of the gateway according to the number of drop devices under one gateway, the performance parameter of each drop device, and the load capability parameter of the gateway.
Further, each gateway is controlled to send a bluetooth Beacon (Beacon) to the device to be migrated. And the equipment to be migrated starts a Bluetooth function, receives each Bluetooth Beacon, integrates a gateway address and signal intensity generated by each Bluetooth Beacon according to a gateway address and signal intensity generated by each Bluetooth Beacon to obtain a signal intensity data packet, and sends the signal intensity data packet to the control equipment.
In this embodiment, the number of the drop devices corresponding to each gateway is obtained and used as the load information of each gateway; controlling each gateway to respectively send wireless beacons to the equipment to be migrated; the method comprises the steps of obtaining multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength when the equipment to be migrated receives the wireless beacon of one gateway. The method and the system can accurately determine the load information of each gateway and the signal strength of the equipment to be migrated relative to each other, automatically select the optimal migration target gateway of the network to be migrated, and improve the equipment migration efficiency in a multi-cascade level gateway scene.
In one embodiment, determining a target gateway corresponding to a device to be migrated according to a signal strength of the device to be migrated corresponding to each gateway and load information of each gateway includes: acquiring first signal relative information with the maximum signal intensity from the multiple groups of signal relative information, and determining a first gateway according to a gateway address in the first signal relative information; and if the number of the lower hanging devices of the first gateway is less than the threshold value of the number of the devices, determining the first gateway as a target gateway.
Further, if the number of the devices hanging down from the first gateway is greater than the threshold value of the number of the devices, first signal relative information corresponding to the first gateway is excluded, second signal relative information with the maximum signal intensity is obtained from the remaining multiple sets of signal relative information, and the second gateway is determined according to the gateway address in the second signal relative information; and if the number of the lower hanging devices of the second gateway is less than the device number threshold value, determining the second gateway as the target gateway.
Optionally, the control device first selects the first signal relative information with the largest signal strength from the multiple sets of signal relative information returned by the device to be migrated, determines the first gateway according to the gateway address in the first signal relative information, further detects the number of the drop devices under the first gateway, and determines the first gateway as the target gateway if the number of the drop devices under the first gateway is smaller than the device number threshold. The device number threshold is configured based on the load capacity of the first gateway, and the device number thresholds configured by different first gateways may be different.
Further, if the number of the lower-hanging devices of the first gateway is greater than the device number threshold, excluding the first signal relative information corresponding to the first gateway, obtaining the second signal relative information with the maximum signal strength from the remaining other sets of signal relative information, determining the second gateway according to the gateway address in the second signal relative information, detecting the number of the lower-hanging devices of the second gateway again, and if the number of the lower-hanging devices of the second gateway is less than the device number threshold, determining the second gateway as the target gateway. And if the number of the lower hanging devices of the second gateway is larger than the threshold value of the number of the devices, excluding the second signal relative information corresponding to the second gateway, acquiring a third group of signal relative information with the maximum signal intensity from the remaining other groups of signal relative information, and repeating the steps until the gateway with the maximum signal intensity and the number of the lower hanging devices meeting the requirement is acquired and is used as the target gateway.
In one possible embodiment, a set of signal-relative information with the highest signal strength is obtained from the sets of signal-relative information, and the target gateway is determined according to the gateway address in the set of signal-relative information. Or acquiring a group of signal relative information with the minimum number of the hanging-down devices from the group of signal relative information, and determining the target gateway according to the gateway address in the group of signal relative information.
In another feasible implementation manner, the number of the lower-hanging devices and the signal strength corresponding to the multiple sets of signal relative information are comprehensively evaluated, an evaluation score corresponding to each set of signal relative information can be obtained in a weighted summation manner, a set of optimal signal relative information is determined according to the evaluation score, and a target gateway is determined according to the gateway address in the optimal signal relative information.
In this embodiment, first signal relative information with the maximum signal strength is obtained from multiple sets of signal relative information, and a first gateway is determined according to a gateway address in the first signal relative information; if the number of the lower hanging devices of the first gateway is smaller than the device number threshold value, determining the first gateway as a target gateway; if the number of the lower-hanging devices of the first gateway is larger than the device number threshold, first signal relative information corresponding to the first gateway is eliminated, second signal relative information with the maximum signal intensity is obtained from the remaining multiple groups of signal relative information, and the second gateway is determined according to a gateway address in the second signal relative information; and if the number of the lower hanging devices of the second gateway is less than the device number threshold value, determining the second gateway as the target gateway. The optimal gateway of the equipment to be migrated can be automatically determined according to the load information and the signal strength of each gateway, and the equipment migration efficiency and accuracy under the multi-cascade level gateway scene are improved.
In an embodiment, the device to be migrated after migration may also be verified, and whether the current migration is valid or not is determined, if yes, the current migration is completed, and if not, the device to be migrated is migrated back to the original gateway. In a possible implementation manner, the step of determining whether the transition is valid may be determined by whether the message response delay is shortened from the original response delay, or may be determined by whether the signal strength is enhanced from the original signal strength, which is not limited herein.
In one embodiment, a device migration method comprehensively considers four aspects shown in fig. 4 to perform device migration, including:
and sending a control instruction to the corresponding lower-mounted equipment through each gateway, wherein the control instruction is used for instructing each lower-mounted equipment to acquire issuing time information corresponding to the control instruction and acquiring receiving time information corresponding to a local receiving control instruction, calculating response delay corresponding to each lower-mounted equipment according to the issuing time information and the receiving time information, and taking the response delay corresponding to each lower-mounted equipment as a response processing result of each lower-mounted equipment. Acquiring response delay corresponding to each lower hanging device; and if the response delay corresponding to the equipment to be hung is greater than the time length threshold, determining the equipment to be hung with the response delay greater than the time length threshold as the equipment to be migrated.
Or sending another control instruction to the corresponding drop devices through the gateways, wherein the control instruction is used for instructing the drop devices to acquire the hop count information corresponding to the drop devices, the hop count information is used for representing the number of devices through which the control instruction passes, the cascade levels corresponding to the drop devices are obtained through calculation according to the hop count information corresponding to the drop devices, and the cascade levels corresponding to the drop devices are used as response processing results of the drop devices. Acquiring a cascade level corresponding to each hanging-down device; and if the cascade level corresponding to the lower-hanging device is larger than the cascade level threshold, determining the lower-hanging device with the cascade level larger than the cascade level threshold as the device to be migrated.
And receiving response processing results fed back by the drop devices, and determining the device to be migrated from the multiple drop devices based on the response processing results.
Acquiring the number of the lower hanging devices corresponding to each gateway as load information of each gateway; controlling each gateway to respectively send wireless beacons to the equipment to be migrated; the method comprises the steps of obtaining multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength when the equipment to be migrated receives the wireless beacon of one gateway.
Acquiring first signal relative information with the maximum signal intensity from the multiple groups of signal relative information, and determining a first gateway according to a gateway address in the first signal relative information; and if the number of the lower hanging devices of the first gateway is less than the threshold value of the number of the devices, determining the first gateway as a target gateway. If the number of the lower-hanging devices of the first gateway is larger than the device number threshold, first signal relative information corresponding to the first gateway is eliminated, second signal relative information with the maximum signal intensity is obtained from the remaining multiple groups of signal relative information, and the second gateway is determined according to a gateway address in the second signal relative information; and if the number of the lower hanging devices of the second gateway is less than the device number threshold value, determining the second gateway as the target gateway.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides an apparatus migration device for implementing the apparatus migration method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so specific limitations in one or more device migration apparatus embodiments provided below may refer to the limitations on the device migration method in the foregoing, and details are not described herein again.
In one embodiment, as shown in fig. 4, there is provided a device migration apparatus 400, comprising: a device to be migrated searching module 401, a device to be migrated determining module 402, a target gateway searching module 403, and a target gateway determining module 404, where:
the device to be migrated searching module 401 is configured to send a control instruction to each corresponding drop device through each gateway, so as to instruct each drop device to perform response processing based on the control instruction.
A to-be-migrated device determining module 402, configured to receive response processing results fed back by the drop-off devices, and determine, based on the response processing results, a to-be-migrated device from the multiple drop-off devices.
The target gateway searching module 403 is configured to obtain load information of each gateway and signal strength of the device to be migrated corresponding to each gateway.
And a target gateway determining module 404, configured to determine a target gateway corresponding to the device to be migrated according to the signal strength of the device to be migrated corresponding to each gateway and the load information of each gateway, and control the device to be migrated to migrate to the target gateway.
In one embodiment, the control instruction is used to instruct each off-hook device to acquire issuing time information corresponding to the control instruction and acquire receiving time information corresponding to a local receiving control instruction, and calculate a response delay corresponding to each off-hook device according to the issuing time information and the receiving time information, and take the response delay corresponding to each off-hook device as a response processing result of each off-hook device;
the to-be-migrated device determining module 402 is further configured to obtain response delays corresponding to the drop-in devices; and if the response delay corresponding to the equipment to be hung is greater than the time length threshold, determining the equipment to be hung with the response delay greater than the time length threshold as the equipment to be migrated.
In one embodiment, the control instruction is used for instructing each drop device to acquire hop count information corresponding to each drop device, the hop count information is used for representing the number of devices through which the control instruction passes, a cascade level corresponding to each drop device is obtained through calculation according to the hop count information corresponding to each drop device, and the cascade level corresponding to each drop device is used as a response processing result of each drop device;
the to-be-migrated device determining module 402 is further configured to obtain a cascade level corresponding to each of the drop-in devices; and if the cascade level corresponding to the lower-hanging device is larger than the cascade level threshold, determining the lower-hanging device with the cascade level larger than the cascade level threshold as the device to be migrated.
In an embodiment, the target gateway searching module 403 is further configured to obtain the number of drop devices corresponding to each gateway as load information of each gateway; controlling each gateway to respectively send wireless beacons to the equipment to be migrated; and acquiring multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength of the equipment to be migrated when the equipment to be migrated receives the wireless beacon of one gateway.
In one embodiment, the target gateway determining module 404 is further configured to obtain first signal relative information with the largest signal strength from the multiple sets of signal relative information, and determine the first gateway according to a gateway address in the first signal relative information; if the number of the lower hanging devices of the first gateway is smaller than the device number threshold value, determining the first gateway as a target gateway; if the number of the lower-hanging devices of the first gateway is larger than the device number threshold, first signal relative information corresponding to the first gateway is eliminated, second signal relative information with the maximum signal intensity is obtained from the remaining multiple groups of signal relative information, and the second gateway is determined according to a gateway address in the second signal relative information; and if the number of the lower hanging devices of the second gateway is less than the device number threshold value, determining the second gateway as the target gateway.
The modules in the device migration apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, the computer device is the control device in the above embodiments, the control device may be a gateway, a terminal or a server, and the internal structure diagram thereof may be as shown in fig. 5. The computer device includes a processor, a memory, an Input/Output interface (I/O for short), and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as response processing results, load information of each gateway, signal intensity of equipment to be migrated corresponding to each gateway and the like. The input/output interface of the computer device is used for exchanging information between the processor and an external device. The communication interface of the computer device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a device migration method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
sending a control instruction to the corresponding drop devices through the gateways to indicate the drop devices to perform response processing based on the control instruction;
receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results;
acquiring load information of each gateway and signal strength of equipment to be migrated corresponding to each gateway;
and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
In one embodiment, the control instruction is used to instruct each off-hook device to acquire issuing time information corresponding to the control instruction and acquire receiving time information corresponding to a local receiving control instruction, and calculate a response delay corresponding to each off-hook device according to the issuing time information and the receiving time information, and take the response delay corresponding to each off-hook device as a response processing result of each off-hook device; the processor, when executing the computer program, further performs the steps of:
acquiring response delay corresponding to each lower hanging device;
and if the response delay corresponding to the equipment to be hung is greater than the time length threshold, determining the equipment to be hung with the response delay greater than the time length threshold as the equipment to be migrated.
In one embodiment, the control instruction is used for instructing each drop device to acquire hop count information corresponding to each drop device, the hop count information is used for representing the number of devices through which the control instruction passes, a cascade level corresponding to each drop device is obtained through calculation according to the hop count information corresponding to each drop device, and the cascade level corresponding to each drop device is used as a response processing result of each drop device; the processor, when executing the computer program, further performs the steps of:
acquiring a cascade level corresponding to each hanging-down device;
and if the cascade level corresponding to the lower-hanging device is larger than the cascade level threshold, determining the lower-hanging device with the cascade level larger than the cascade level threshold as the device to be migrated.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring the number of the lower hanging devices corresponding to each gateway as load information of each gateway;
controlling each gateway to respectively send wireless beacons to the equipment to be migrated;
the method comprises the steps of obtaining multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength when the equipment to be migrated receives the wireless beacon of one gateway.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring first signal relative information with the maximum signal intensity from the multiple groups of signal relative information, and determining a first gateway according to a gateway address in the first signal relative information;
and if the number of the lower hanging devices of the first gateway is less than the threshold value of the number of the devices, determining the first gateway as a target gateway.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the number of the lower-hanging devices of the first gateway is larger than the device number threshold, first signal relative information corresponding to the first gateway is eliminated, second signal relative information with the maximum signal intensity is obtained from the remaining multiple groups of signal relative information, and the second gateway is determined according to a gateway address in the second signal relative information;
and if the number of the lower hanging devices of the second gateway is less than the device number threshold value, determining the second gateway as the target gateway.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
sending a control instruction to the corresponding drop devices through the gateways to indicate the drop devices to perform response processing based on the control instruction;
receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results;
acquiring load information of each gateway and signal strength of equipment to be migrated corresponding to each gateway;
and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
In one embodiment, the control instruction is used to instruct each off-hook device to acquire issuing time information corresponding to the control instruction and acquire receiving time information corresponding to a local receiving control instruction, and calculate a response delay corresponding to each off-hook device according to the issuing time information and the receiving time information, and take the response delay corresponding to each off-hook device as a response processing result of each off-hook device; the computer program when executed by the processor further realizes the steps of:
acquiring response delay corresponding to each lower hanging device;
and if the response delay corresponding to the equipment to be hung is greater than the time length threshold, determining the equipment to be hung with the response delay greater than the time length threshold as the equipment to be migrated.
In one embodiment, the control instruction is used for instructing each drop device to acquire hop count information corresponding to each drop device, the hop count information is used for representing the number of devices through which the control instruction passes, a cascade level corresponding to each drop device is obtained through calculation according to the hop count information corresponding to each drop device, and the cascade level corresponding to each drop device is used as a response processing result of each drop device; the computer program when executed by the processor further realizes the steps of:
acquiring a cascade level corresponding to each hanging-down device;
and if the cascade level corresponding to the lower-hanging device is larger than the cascade level threshold, determining the lower-hanging device with the cascade level larger than the cascade level threshold as the device to be migrated.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the number of the lower hanging devices corresponding to each gateway as load information of each gateway;
controlling each gateway to respectively send wireless beacons to the equipment to be migrated;
the method comprises the steps of obtaining multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength when the equipment to be migrated receives the wireless beacon of one gateway.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring first signal relative information with the maximum signal intensity from the multiple groups of signal relative information, and determining a first gateway according to a gateway address in the first signal relative information;
and if the number of the lower hanging devices of the first gateway is less than the threshold value of the number of the devices, determining the first gateway as a target gateway.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the number of the lower-hanging devices of the first gateway is larger than the device number threshold, first signal relative information corresponding to the first gateway is eliminated, second signal relative information with the maximum signal intensity is obtained from the remaining multiple groups of signal relative information, and the second gateway is determined according to a gateway address in the second signal relative information;
and if the number of the lower hanging devices of the second gateway is less than the device number threshold value, determining the second gateway as the target gateway.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
sending a control instruction to the corresponding drop devices through the gateways to indicate the drop devices to perform response processing based on the control instruction;
receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results;
acquiring load information of each gateway and signal strength of equipment to be migrated corresponding to each gateway;
and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
In one embodiment, the control instruction is used to instruct each off-hook device to acquire issuing time information corresponding to the control instruction and acquire receiving time information corresponding to a local receiving control instruction, and calculate a response delay corresponding to each off-hook device according to the issuing time information and the receiving time information, and take the response delay corresponding to each off-hook device as a response processing result of each off-hook device; the computer program when executed by the processor further realizes the steps of:
acquiring response delay corresponding to each lower hanging device;
and if the response delay corresponding to the equipment to be hung is greater than the time length threshold, determining the equipment to be hung with the response delay greater than the time length threshold as the equipment to be migrated.
In one embodiment, the control instruction is used for instructing each drop device to acquire hop count information corresponding to each drop device, the hop count information is used for representing the number of devices through which the control instruction passes, a cascade level corresponding to each drop device is obtained through calculation according to the hop count information corresponding to each drop device, and the cascade level corresponding to each drop device is used as a response processing result of each drop device; the computer program when executed by the processor further realizes the steps of:
acquiring a cascade level corresponding to each hanging-down device;
and if the cascade level corresponding to the lower-hanging device is larger than the cascade level threshold, determining the lower-hanging device with the cascade level larger than the cascade level threshold as the device to be migrated.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the number of the lower hanging devices corresponding to each gateway as load information of each gateway;
controlling each gateway to respectively send wireless beacons to the equipment to be migrated;
the method comprises the steps of obtaining multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength when the equipment to be migrated receives the wireless beacon of one gateway.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring first signal relative information with the maximum signal intensity from the multiple groups of signal relative information, and determining a first gateway according to a gateway address in the first signal relative information;
and if the number of the lower hanging devices of the first gateway is less than the threshold value of the number of the devices, determining the first gateway as a target gateway.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the number of the lower-hanging devices of the first gateway is larger than the device number threshold, first signal relative information corresponding to the first gateway is eliminated, second signal relative information with the maximum signal intensity is obtained from the remaining multiple groups of signal relative information, and the second gateway is determined according to a gateway address in the second signal relative information;
and if the number of the lower hanging devices of the second gateway is less than the device number threshold value, determining the second gateway as the target gateway.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant country and region.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims (10)
1. A method of device migration, the method comprising:
sending a control instruction to the corresponding drop devices through the gateways to instruct the drop devices to perform response processing based on the control instruction;
receiving response processing results fed back by each hanging-down device, and determining a device to be migrated from the plurality of hanging-down devices based on the response processing results;
acquiring load information of each gateway and signal strength of each gateway corresponding to the equipment to be migrated;
and determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to migrate to the target gateway.
2. The method according to claim 1, wherein the control instruction is used for instructing each drop device to acquire issuing time information corresponding to the control instruction and acquiring receiving time information corresponding to the control instruction received locally, and calculating response delay corresponding to each drop device according to the issuing time information and the receiving time information, and taking the response delay corresponding to each drop device as a response processing result of each drop device;
the determining a device to be migrated from the plurality of devices hanging down comprises:
acquiring response delay corresponding to each lower hanging device;
and if the response delay corresponding to the equipment to be hung is greater than the time length threshold, determining the equipment to be hung with the response delay greater than the time length threshold as the equipment to be migrated.
3. The method according to claim 1, wherein the control instruction is used for instructing each drop device to obtain hop count information corresponding to each drop device, the hop count information is used for representing the number of devices through which the control instruction passes, a cascade level corresponding to each drop device is obtained by calculation according to the hop count information corresponding to each drop device, and the cascade level corresponding to each drop device is used as a response processing result of each drop device;
the determining a device to be migrated from the plurality of devices hanging down comprises:
acquiring a cascade level corresponding to each hanging-down device;
and if the cascade level corresponding to the lower-hanging device is larger than the cascade level threshold, determining the lower-hanging device with the cascade level larger than the cascade level threshold as the device to be migrated.
4. The method according to any one of claims 1 to 3, wherein the obtaining of the load information of each gateway and the signal strength of each gateway corresponding to the device to be migrated includes:
acquiring the number of the lower hanging devices corresponding to each gateway as load information of each gateway;
controlling each gateway to respectively send wireless beacons to the equipment to be migrated;
and acquiring multiple groups of signal relative information generated by the equipment to be migrated according to each wireless beacon, wherein each group of signal relative information corresponds to one gateway, each group of signal relative information comprises a gateway address and signal strength, and the signal strength is used for representing the signal strength of the equipment to be migrated when the equipment to be migrated receives the wireless beacon of one gateway.
5. The method according to claim 4, wherein the determining a target gateway corresponding to the device to be migrated according to the signal strength of the device to be migrated corresponding to each gateway and the load information of each gateway includes:
acquiring first signal relative information with the maximum signal strength from a plurality of groups of signal relative information, and determining a first gateway according to a gateway address in the first signal relative information;
and if the number of the lower-hanging devices of the first gateway is smaller than the threshold value of the number of the devices, determining the first gateway as the target gateway.
6. The method of claim 5, further comprising:
if the number of the lower-hanging devices of the first gateway is larger than the device number threshold, excluding first signal relative information corresponding to the first gateway, acquiring second signal relative information with the maximum signal intensity from the remaining multiple sets of signal relative information, and determining a second gateway according to a gateway address in the second signal relative information;
and if the number of the lower hanging devices of the second gateway is smaller than the threshold value of the number of the devices, determining the second gateway as the target gateway.
7. An apparatus for device migration, the apparatus comprising:
the device to be migrated searching module is used for sending a control instruction to each corresponding lower-mounted device through each gateway so as to instruct each lower-mounted device to perform response processing based on the control instruction;
the device to be migrated determining module is used for receiving response processing results fed back by the off-hook devices and determining the device to be migrated from the off-hook devices based on the response processing results;
the target gateway searching module is used for acquiring the load information of each gateway and the signal intensity of the equipment to be migrated corresponding to each gateway;
and the target gateway determining module is used for determining a target gateway corresponding to the equipment to be migrated according to the signal strength of the equipment to be migrated corresponding to each gateway and the load information of each gateway, and controlling the equipment to be migrated to the target gateway.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210368188.XA CN114827199B (en) | 2022-04-08 | 2022-04-08 | Device migration method, device, computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210368188.XA CN114827199B (en) | 2022-04-08 | 2022-04-08 | Device migration method, device, computer device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114827199A true CN114827199A (en) | 2022-07-29 |
CN114827199B CN114827199B (en) | 2024-06-14 |
Family
ID=82534926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210368188.XA Active CN114827199B (en) | 2022-04-08 | 2022-04-08 | Device migration method, device, computer device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114827199B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130091264A1 (en) * | 2011-10-06 | 2013-04-11 | Varmour Networks, Inc. | Dynamic session migration between network security gateways |
CN110336729A (en) * | 2019-08-13 | 2019-10-15 | 北京百佑科技有限公司 | Star network equilibrium network-building method, device and internet of things equipment |
CN110430587A (en) * | 2019-08-13 | 2019-11-08 | 北京百佑科技有限公司 | Rapid networking method, internet-of-things terminal and computer readable storage medium |
CN110868746A (en) * | 2019-11-18 | 2020-03-06 | RealMe重庆移动通信有限公司 | Network switching method and device, electronic equipment and storage medium |
CN112822735A (en) * | 2020-12-31 | 2021-05-18 | 广州技象科技有限公司 | Gateway switching management method, device, equipment and storage medium based on Internet of things |
CN113411221A (en) * | 2021-06-30 | 2021-09-17 | 中国南方电网有限责任公司 | Power communication network fault simulation verification method, device, equipment and storage medium |
CN113691935A (en) * | 2021-08-23 | 2021-11-23 | 深圳市欧瑞博科技股份有限公司 | Network optimization method and device and electronic equipment |
CN113709839A (en) * | 2021-08-19 | 2021-11-26 | 珠海格力电器股份有限公司 | Multi-gateway network switching method, device and system, electronic equipment and storage medium |
-
2022
- 2022-04-08 CN CN202210368188.XA patent/CN114827199B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130091264A1 (en) * | 2011-10-06 | 2013-04-11 | Varmour Networks, Inc. | Dynamic session migration between network security gateways |
CN110336729A (en) * | 2019-08-13 | 2019-10-15 | 北京百佑科技有限公司 | Star network equilibrium network-building method, device and internet of things equipment |
CN110430587A (en) * | 2019-08-13 | 2019-11-08 | 北京百佑科技有限公司 | Rapid networking method, internet-of-things terminal and computer readable storage medium |
CN110868746A (en) * | 2019-11-18 | 2020-03-06 | RealMe重庆移动通信有限公司 | Network switching method and device, electronic equipment and storage medium |
CN112822735A (en) * | 2020-12-31 | 2021-05-18 | 广州技象科技有限公司 | Gateway switching management method, device, equipment and storage medium based on Internet of things |
CN113411221A (en) * | 2021-06-30 | 2021-09-17 | 中国南方电网有限责任公司 | Power communication network fault simulation verification method, device, equipment and storage medium |
CN113709839A (en) * | 2021-08-19 | 2021-11-26 | 珠海格力电器股份有限公司 | Multi-gateway network switching method, device and system, electronic equipment and storage medium |
CN113691935A (en) * | 2021-08-23 | 2021-11-23 | 深圳市欧瑞博科技股份有限公司 | Network optimization method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114827199B (en) | 2024-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110365748B (en) | Service data processing method and device, storage medium and electronic device | |
CN109104464B (en) | Distributed data updating method for collaborative storage in edge computing environment | |
CN109117429A (en) | Data base query method, device and electronic equipment | |
CN110226159B (en) | Method for performing database functions on a network switch | |
CN110162270A (en) | Date storage method, memory node and medium based on distributed memory system | |
CN110198332A (en) | Dispatching method, device and the storage medium of content delivery network node | |
CN113162888B (en) | Security threat event processing method and device and computer storage medium | |
CN113055457B (en) | Access control and data forwarding method and device, electronic equipment and storage medium | |
CN105430028A (en) | Service calling method, service providing method, and node | |
CN111556090B (en) | Function aggregation self-organization system and method of intelligent Internet of things | |
CN107729421B (en) | The execution method, apparatus and storage medium of storing process | |
CN106254282B (en) | The implementation method and device of link aggregation | |
CN107659982B (en) | Wireless network access point classification method and device | |
CN114827199A (en) | Device migration method and device, computer device and storage medium | |
CN109309858B (en) | Display method, device, equipment and medium of mutually exclusive icon | |
CN107682271B (en) | Method and device for generating routing line | |
EP1652344B1 (en) | Electronic device connection resource management | |
CN107046503B (en) | Message transmission method, system and device | |
CN104579793B (en) | The dispatching method and system of Internet resources | |
Abada et al. | A novel path selection and recovery mechanism for MANETs P2P file sharing applications | |
CN107528782A (en) | A kind of update method, device and the TCAM of TCAM list items | |
CN117041139B (en) | Data packet transmission method, device, computer equipment and storage medium | |
CN116708532B (en) | Local area network connection method, device, computer equipment and readable storage medium | |
CN110008181A (en) | File polling method and device, computer installation and storage medium | |
CN105191259B (en) | The method and the network equipment of data service are provided |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |