Connection method, device, computer equipment and storage medium
When the connection quality of the robot and the LAN is poor, the personal LAN PAN is used to send the available LAN to the robot, which solves the problem of disconnection of the network connection between the robot and the auxiliary equipment, and realizes a stable large-scale data transmission channel.
Patent Information
- Application Number
- CN202410371158.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-03-28
AI Technical Summary
The network connection between the robot and auxiliary equipment may be disconnected due to location movement or increased obstacles, resulting in increased operator workload, reduced user experience, and may cause the robot to lose control, causing potential damage and risks.
By sending a signal to the auxiliary device when the robot has poor connection quality and sending an available LAN to the robot based on the personal LAN PAN, ensuring that the robot is connected to a LAN with good connection quality.
It effectively avoids the disconnection of the LAN connection between the robot and the auxiliary equipment, ensures the availability of large-scale data transmission channels, and takes into account both cost and power consumption.
Smart Images

Figure CN118158835B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network connection technology, and in particular to a connection method, device, computer equipment and storage medium. Background Art
[0002] With the increasing application of robots in special scenarios such as factory operations, they have become an important tool for improving production efficiency and reducing labor costs.
[0003] However, in related technologies, due to the vast working space, the network connection between the robot and auxiliary equipment may often be disconnected due to various uncertain factors such as position movement and increase of obstacles. This not only increases the operator's workload and reduces the user experience, but may even cause the robot to lose control during the operation process, causing potential harm and risks to the working environment and related personnel. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a connection method, an apparatus, a computer device and a storage medium.
[0005] A first aspect of the present disclosure provides a connection method, the method comprising:
[0006] In response to the connection quality between the robot and the local area network (LAN) being less than a first threshold, sending a first signal to an auxiliary device, so that the auxiliary device sends at least one available LAN to the robot based on a personal area network (PAN), wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold;
[0007] An available LAN among the at least one available LAN is connected, wherein a connection quality between the robot and the connected available LAN is greater than or equal to the first threshold.
[0008] Optionally, connecting to a LAN in the at least one available LAN includes:
[0009] Connecting available LANs of the at least one available LAN one by one until the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold;
[0010] Or, connect to the available LAN having the highest connection quality with the robot among the at least one available LAN.
[0011] Optionally, the method further includes:
[0012] A second signal is sent to the auxiliary device to cause the auxiliary device to connect to a LAN consistent with the robot.
[0013] Optionally, the PAN includes a Bluetooth connection;
[0014] And / or, sending the first signal to the auxiliary device includes:
[0015] A first signal is sent to the secondary device based on the PAN.
[0016] Optionally, in response to the current connection quality between the robot and the local area network LAN being less than a first threshold, sending a first signal to the auxiliary device includes:
[0017] In response to the current connection quality between the robot and the local area network (LAN) being less than a first threshold, determining whether there is a LAN in a LAN list whose connection quality with the robot is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN;
[0018] In response to the presence of a LAN in the LAN list whose connection quality with the robot is greater than or equal to the first threshold, connecting the LAN whose connection quality with the robot is greater than or equal to the first threshold;
[0019] In response to the LAN list not having a LAN with a connection quality greater than or equal to the first threshold with the robot, a first signal is sent to an auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the robot.
[0020] Optionally, the method further includes:
[0021] The LAN list is updated according to the at least one available LAN that is not present in the LAN list.
[0022] A second aspect of the present disclosure provides a connection method, the method comprising:
[0023] In response to receiving a first signal, at least one available LAN is sent to the robot based on a personal area network PAN so that the robot connects to an available LAN among the at least one available LAN, wherein the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold, the first signal is sent by the robot in response to the current connection quality between the robot and the local area network LAN being less than the first threshold, and the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold.
[0024] Optionally, the method further includes:
[0025] A second signal is received and connected to a LAN indicated by the second signal, wherein the second signal is used to connect the auxiliary device to the LAN consistent with the robot.
[0026] Optionally, the sending at least one available LAN to the robot based on the personal area network PAN so that the robot connects to an available LAN in the at least one available LAN includes:
[0027] In response to obtaining at least one available LAN that does not exist in the LAN list, the at least one available LAN that does not exist in the LAN list is sent to the robot based on PAN so that the robot connects to the at least one available LAN that does not exist in the LAN list, and updates the LAN list according to the at least one available LAN that does not exist in the LAN list, wherein the LAN list includes at least one LAN.
[0028] Optionally, the method further includes:
[0029] In response to the time interval between the current moment and the last time the available LAN was obtained reaching a time threshold, obtaining the available LAN;
[0030] In response to acquiring at least one available LAN that does not exist in the LAN list, the LAN list is updated according to the at least one available LAN, and a third signal is sent to the robot so that the robot updates the LAN list based on the third signal, wherein the LAN list includes at least one LAN, and the third signal is used to instruct the robot to update the LAN list according to the at least one available LAN that does not exist in the LAN list.
[0031] A third aspect of the present disclosure provides a connection device, the device comprising:
[0032] A first sending module is configured to send a first signal to an auxiliary device in response to the current connection quality between the robot and the local area network (LAN) being less than a first threshold, so that the auxiliary device sends at least one available LAN to the robot based on a personal area network (PAN), wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold;
[0033] The first connection module is configured to connect to an available LAN among the at least one available LAN, wherein a connection quality between the robot and the connected available LAN is greater than or equal to the first threshold.
[0034] Optionally, when the first connection module is used to connect to a LAN in the at least one available LAN, it is used to:
[0035] Connecting available LANs of the at least one available LAN one by one until the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold;
[0036] Or, connect to the available LAN having the highest connection quality with the robot among the at least one available LAN.
[0037] Optionally, the device further comprises:
[0038] A connection synchronization module is used to send a second signal to the auxiliary device so that the auxiliary device is connected to a LAN consistent with the robot.
[0039] Optionally, the PAN includes a Bluetooth connection;
[0040] And / or, when the first sending module is used to send the first signal to the auxiliary device, it is used to:
[0041] A first signal is sent to the secondary device based on the PAN.
[0042] Optionally, the first sending module is used for, in response to the current connection quality between the robot and the local area network LAN being less than a first threshold, sending a first signal to the auxiliary device, to:
[0043] In response to the current connection quality between the robot and the local area network (LAN) being less than a first threshold, determining whether there is a LAN in a LAN list whose connection quality with the robot is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN;
[0044] In response to the presence of a LAN in the LAN list whose connection quality with the robot is greater than or equal to the first threshold, connecting the LAN whose connection quality with the robot is greater than or equal to the first threshold;
[0045] In response to the LAN list not having a LAN with a connection quality greater than or equal to the first threshold with the robot, a first signal is sent to an auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the robot.
[0046] Optionally, the device further comprises:
[0047] A receiving module is configured to update the LAN list according to the at least one available LAN that does not exist in the LAN list.
[0048] A fourth aspect of the present disclosure provides a connection device, the device comprising:
[0049] A second sending module is used to send at least one available LAN to the robot based on a personal area network PAN in response to receiving a first signal, so that the robot connects to an available LAN among the at least one available LAN, wherein the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold, and the first signal is sent by the robot in response to the current connection quality between the robot and the local area network LAN being less than the first threshold, and the connection quality between the available LAN and the auxiliary device is greater than or equal to the second threshold.
[0050] Optionally, the device further comprises:
[0051] The second connection module is used to receive a second signal and connect to a LAN indicated by the second signal, wherein the second signal is used to connect the auxiliary device to the LAN consistent with the robot.
[0052] Optionally, when the second sending module is used to send at least one available LAN to the robot based on the personal area network PAN so that the robot connects to an available LAN in the at least one available LAN, it is used to:
[0053] In response to obtaining at least one available LAN that does not exist in the LAN list, the at least one available LAN that does not exist in the LAN list is sent to the robot based on PAN so that the robot connects to the at least one available LAN that does not exist in the LAN list, and updates the LAN list according to the at least one available LAN that does not exist in the LAN list, wherein the LAN list includes at least one LAN.
[0054] Optionally, the device further includes a third sending module, configured to perform the following steps:
[0055] In response to the time interval between the current moment and the last time the available LAN was obtained reaching a time threshold, obtaining the available LAN;
[0056] In response to acquiring at least one available LAN that does not exist in the LAN list, the LAN list is updated according to the at least one available LAN, and a third signal is sent to the robot so that the robot updates the LAN list based on the third signal, wherein the LAN list includes at least one LAN, and the third signal is used to instruct the robot to update the LAN list according to the at least one available LAN that does not exist in the LAN list.
[0057] A fifth aspect of the present disclosure provides a computer program product, including a computer program / instruction, which implements the method described in the first aspect or the second aspect when executed by a processor.
[0058] A sixth aspect of the present disclosure provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect or the second aspect is implemented.
[0059] A seventh aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in the first aspect or the second aspect.
[0060] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0061] In the disclosed embodiment, in response to the current connection quality between the robot and the local area network LAN being less than the first threshold, the robot sends a first signal to the auxiliary device, so that the auxiliary device sends at least one available LAN with a connection quality greater than or equal to the second threshold to the robot based on the personal local area network PAN; next, the robot can connect to an available LAN in the at least one available LAN, and connect the robot to the LAN with a connection quality greater than or equal to the first threshold. Since the local area network is often provided by a router or switch at a fixed location, and the PAN can usually be directly provided by the auxiliary device or the robot and establish a point-to-point connection (further, the PAN has the characteristics of low power consumption, low bandwidth, and stable connection within a short distance); the above method avoids the disconnection of the local area network connection between the robot and the auxiliary device by notifying the auxiliary device when the robot's local area network connection quality is poor, and causing the auxiliary device to send the LAN connection information to the robot based on the PAN, thereby ensuring the availability of a large-scale data transmission channel between the robot and the auxiliary device while taking into account cost and power consumption.
[0062] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0064] Figure 1 It is an application scenario diagram of a connection method shown in some exemplary embodiments.
[0065] Figure 2 is a flow chart of a connection method shown in some exemplary embodiments.
[0066] Figure 3 is a flow chart of another connection method shown in some exemplary embodiments.
[0067] Figure 4 is an architectural diagram of a connection method shown in some exemplary embodiments.
[0068] Figure 5 Detailed Description of the Invention The figure is a selection branch diagram of a connection method shown in some exemplary embodiments.
[0069] Figure 6 is a block diagram of a connection device shown in some exemplary embodiments.
[0070] Figure 7 is a block diagram of another connection device shown in some exemplary embodiments.
[0071] Figure 8 is a structural diagram of an electronic device shown in some exemplary embodiments. DETAILED DESCRIPTION
[0072] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0073] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0074] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0075] With the increasing application of robots in special scenarios such as factory operations, they have become an important tool for improving production efficiency and reducing labor costs.
[0076] However, at the same time, due to the vast working space, the network connection between the robot and auxiliary equipment may often be disconnected due to uncertain factors such as position movement and increase of obstacles. This not only increases the operator's workload and reduces the user experience, but may even cause the robot to lose control during the operation process, causing potential harm and risks to the working environment and related personnel.
[0077] In view of this, the present disclosure provides a connection method, an apparatus, a computer device and a storage medium.
[0078] Below Figure 1 As an example, exemplary application scenarios of some embodiments of the present disclosure are introduced. Among them, the auxiliary device can be an electronic device such as a mobile phone, a laptop computer, etc. that has a LAN connection capability and a personal LAN connection capability, and the robot can be a robot dog, a cleaning robot, etc. that has a LAN connection capability and a personal LAN connection capability. Generally speaking, robots used for operations do not have specially designed human-computer interaction functions, so for non-pre-stored network information, auxiliary devices such as mobile phones are usually required to assist the robot in connecting.
[0079] Among them, the Local Area Network (LAN) can be initiated by devices such as routers or switches, while the Personal Area Network (PAN) refers to a communication network composed of computing devices (such as computers, phones, robots, digital cameras, etc.) within a personal range (for example, within tens of meters). PAN can be used to exchange data between these devices, and can also be used to connect to high-level networks or the Internet. PAN can be in wired form, such as the Universal Serial Bus USB or Firewire (IEEE1394) bus; it can also be in wireless form, such as infrared (IrDA) or Bluetooth. A personal area network that uses wireless technology is called a wireless personal area network (WPAN). It is worth noting that personal area network and local area network are two different concepts and there is no complete inclusion relationship.
[0080] In special scenarios such as factory operations, robots are often needed to reach areas that are inconvenient for operators to reach (such as areas with special terrain or harsh environments) and perform operations, or to use robots to simplify the difficulty of operators' operations. A common requirement is that the robot and the operator (user) are kept at a close distance (for example, within tens of meters), and the auxiliary equipment held by the operator (or carried with him) needs to collect large-scale data sent back by the robot, such as the robot's real-time field of view, status parameters, and instruction receipts, etc., and also needs to issue new instructions to the robot. These large-scale data are usually not borne by personal LAN media such as Bluetooth. Considering factors such as cost and feasibility, these large-scale data are usually transmitted based on LAN. However, when a user controls a robot with handheld auxiliary equipment, the operation often involves a wider activity area (i.e., the position will change over a larger range), and the local area network is usually provided by a router or switch in a fixed position. This leads to frequent disconnections between the robot and the auxiliary equipment during the operation. This problem is particularly prominent in scenarios such as factories and outdoor test areas. In order to ensure the controllability of the robot and the adaptability of the operation process to the scenario, in actual applications, the distance between the operator and the robot is usually kept close.
[0081] Next, the embodiments of the present disclosure are described in detail from two execution sides: the robot and the auxiliary equipment.
[0082] The first aspect of the present disclosure provides a connection method that can be applied to a robot. Figure 2 , which comprises the following steps:
[0083] Step S201, in response to the current connection quality between the robot and the local area network LAN being less than a first threshold, a first signal is sent to an auxiliary device so that the auxiliary device sends at least one available LAN to the robot based on a personal area network PAN, wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold.
[0084] The first threshold and the second threshold can respectively represent the minimum acceptable limit of the connection quality between the robot and the auxiliary device and the local area network, that is, when the connection quality between the robot and the local area network is less than the first threshold or the connection quality between the auxiliary device and the local area network is less than the second threshold, it can be considered that the data transmission quality of the robot and the auxiliary device based on the local area network will be greatly affected, or even reach an unusable state; in addition, the first threshold and the second threshold can also be set by the user based on personal experience or the performance parameters of the device itself, and this disclosure does not limit this. The connection quality is an indicator or parameter used to quantify and describe the performance and reliability of the communication connection between different terminals. In the embodiments of the present disclosure, the measurement of connection quality can be based on multiple factors, including but not limited to the following aspects: signal strength, usually expressed in the form of a signal received strength indicator (RSSI), a higher signal strength usually indicates a better connection quality; signal-to-noise ratio (SNR), a measure of the ratio between signal and noise, a higher signal-to-noise ratio usually indicates a better connection quality; bit error rate (BER), a measure of the proportion of erroneous bits occurring in data transmission, a lower bit error rate usually indicates a better connection quality; delay, a measure of the time delay required for data to travel from the sender to the receiver, a lower delay usually indicates a better connection quality; bandwidth, a measure of the data transmission rate available in the connection, a higher bandwidth usually indicates a better connection quality.
[0085] It should be understood that in the embodiments of the present disclosure, the larger the value of the connection quality, the better the connection quality (of course, the above relationship can also be reversed, and the judgment condition can be reversed accordingly). In actual application, the connection quality provided by the present disclosure can be reflected by any indicator or parameter, including an indicator or parameter whose larger value indicates a larger connection quality, and an indicator or parameter whose smaller value indicates a larger connection quality. The specific calculation method can also be set according to actual conditions, for example, different weights are set for the above measurement factors to comprehensively calculate the connection quality, and the present disclosure does not limit it.
[0086] Since the first signal sent by the auxiliary device can actually only be used to characterize that the current network condition of the robot is poor, its information volume can be compressed to a lower level, and it may still be sent when the LAN connection is poor (that is, the connection quality is less than the first threshold or the second threshold); in addition, when the connection quality between the robot and the LAN is less than the first threshold, the robot can send the first signal to the auxiliary device based on the PAN to ensure that the first signal can be received by the auxiliary device; or, the robot can first try to send the first signal based on the LAN connection, and if no receipt is received from the auxiliary device within a preset time, the first signal can be sent based on the PAN. The present disclosure does not limit this.
[0087] Step S202: connecting to an available LAN among the at least one available LAN, wherein the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold.
[0088] After the robot receives at least one available LAN, illustratively, it can connect to the available LANs in the at least one available LAN one by one until the connection quality between the robot and the available LAN is greater than or equal to the first threshold. This method can more quickly find a LAN whose connection quality with the robot and the auxiliary device is in an acceptable state, and quickly restore the LAN connection between the robot and the auxiliary device; illustratively, it can connect to the available LAN with the highest connection quality between the robot in the at least one available LAN. In other words, it can obtain the connection quality between at least one available LAN and the robot, and select the available LAN with the best connection quality to connect, so as to obtain the best connection quality. Of course, the above two schemes can also be combined, for example, first traverse the available LANs in the at least one available LAN, and connect to the LAN when the connection quality between the available LAN and the available LAN is greater than or equal to the first threshold, and continue the traversal action, and then switch to the LAN with better connection quality when a LAN with better connection quality is obtained, so as to take into account both connection speed and connection quality.
[0089] It should be understood that the above "one by one" is only a description of the step logic, rather than a limitation on the specific execution actions. For example, when the robot has multiple network adapters or other configurations that can achieve the same function, it can actually obtain the connection quality of multiple LANs at the same time, but logically, it is still a process of traversing the available LANs in at least one available LAN one by one.
[0090] Furthermore, in order to obtain the best network connection quality between the robot and the auxiliary device, the method may further include sending a second signal to the auxiliary device so that the auxiliary device is connected to the LAN consistent with the robot. For example, after connecting to a certain LAN, the robot may send the user name of the certain LAN to the auxiliary device based on the PAN so that the auxiliary device is connected to the certain LAN.
[0091] In the disclosed embodiment, in response to the current connection quality between the robot and the local area network LAN being less than a first threshold, the robot sends a first signal to the auxiliary device, so that the auxiliary device sends at least one available LAN whose connection quality with the auxiliary device is greater than or equal to a second threshold based on the personal local area network PAN to the robot; next, the robot can connect to an available LAN among the at least one available LAN, and connect the robot to the LAN whose connection quality is greater than or equal to the first threshold. Since the local area network (LAN) is often provided by a router or switch at a fixed location, and the PAN can usually be directly provided by the auxiliary device or robot to build a point-to-point connection (furthermore, PAN has the characteristics of low power consumption, low bandwidth, and stable connection within a short distance), generally speaking, when the robot or auxiliary device is displaced, PAN can provide a more stable connection than LAN, and may only be affected by the relative distance between the robot and the auxiliary device. This advantage is particularly evident in the above-mentioned special scenarios (such as factory operations); the above-mentioned method avoids the disconnection of the LAN connection between the robot and the auxiliary device by notifying the auxiliary device when the quality of the robot's LAN connection is poor, and enables the auxiliary device to send the LAN connection information to the robot based on the PAN, thereby ensuring the availability of a large-scale data transmission channel between the robot and the auxiliary device while taking into account cost and power consumption.
[0092] In some embodiments of the present disclosure, the robot may store a LAN list, and the LAN list may store connection information of at least one LAN. In response to the current connection quality between the robot and the local area network LAN being less than a first threshold, sending a first signal to the auxiliary device includes:
[0093] In response to the current connection quality between the robot and the local area network (LAN) being less than a first threshold, determining whether there is a LAN in a LAN list whose connection quality with the robot is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN;
[0094] In response to the presence of a LAN in the LAN list whose connection quality with the robot is greater than or equal to the first threshold, connecting the LAN whose connection quality with the robot is greater than or equal to the first threshold; or,
[0095] In response to the LAN list not having a LAN with a connection quality greater than or equal to the first threshold with the robot, a first signal is sent to an auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the robot.
[0096] In other words, the robot can automatically switch among the LANs stored in the LAN list to ensure that the connection quality between the robot and the LAN is greater than or equal to the first threshold. The LAN list can store LAN connection information (i.e., information used to connect to the corresponding LAN), such as IP (Internet Protocol) address, network name, password, etc. Based on this, the robot can automatically adapt to changes in the network connection status, and minimize data exchange between the robot and auxiliary equipment, thereby reducing network bandwidth pressure.
[0097] Furthermore, the method may also include:
[0098] The LAN list is updated according to the at least one available LAN that is not present in the LAN list.
[0099] Specifically, the auxiliary device may try to obtain an available LAN at a preset frequency, or may obtain an available LAN in response to a first signal sent by the robot, and then send a third signal to the auxiliary device when an available LAN that does not exist in the LAN list is obtained. The third signal may include the available LAN that does not exist in the LAN list, or the complete LAN list may be sent to the auxiliary device, and the present disclosure does not limit this. Based on this, the robot can store the received available LAN and automatically connect to the network when accessing the network next time, further reducing the amount of data transmitted between the robot and the auxiliary device and reducing the pressure on the network bandwidth.
[0100] It should be understood that in order to enable both the auxiliary device and the robot to access the LAN list respectively, the LAN list can be stored on the auxiliary device and the robot respectively, and a synchronization step of the LAN list can be added before or during the execution of the method, that is, the union of the LAN lists stored in the auxiliary device and the robot is taken, or the LAN list stored in one of the auxiliary device and the robot is taken, and the taken content is stored in the auxiliary device and the robot; or the LAN list can also be stored in a device that can be accessed by both the auxiliary device and the robot. Similarly, in the present disclosure, since the LAN list represents the same meaning, the LAN list stored on both sides is not distinguished, but this does not strictly limit the storage location and existence form of the LAN list.
[0101] The second aspect of the present disclosure provides a connection method that can be applied to the auxiliary device side. Figure 3 , the method may include:
[0102] Step S301, in response to receiving a first signal, at least one available LAN is sent to the robot based on a personal area network PAN, so that the robot connects to an available LAN among the at least one available LAN, wherein the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold, the first signal is sent by the robot in response to the current connection quality between the robot and the local area network LAN being less than the first threshold, and the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold.
[0103] For explanations of relevant concepts and details, please refer to the description of the corresponding part in the first aspect, which will not be repeated here. In the above steps, the auxiliary device can search for nearby local area networks, and send the local area networks whose connection quality with the auxiliary device is greater than a second threshold as at least one available local area network to the robot.
[0104] Regarding the conditions and specific details of the auxiliary device acquiring at least one available LAN, exemplarily, the step of (in response to receiving the first signal) sending at least one available LAN to the robot based on the personal area network PAN so that the robot connects to an available LAN in the at least one available LAN may include:
[0105] In response to obtaining at least one available LAN that does not exist in the LAN list, the at least one available LAN that does not exist in the LAN list is sent to the robot based on PAN so that the robot connects to the at least one available LAN that does not exist in the LAN list, and updates the LAN list according to the at least one available LAN that does not exist in the LAN list, wherein the LAN list includes at least one LAN.
[0106] As another example, the method may further include:
[0107] In response to the time interval between the current moment and the last time the available LAN was obtained reaching a time threshold, obtaining the available LAN;
[0108] In response to acquiring at least one available LAN that does not exist in the LAN list, the LAN list is updated according to the at least one available LAN, and a third signal is sent to the robot so that the robot updates the LAN list based on the third signal, wherein the LAN list includes at least one LAN, and the third signal is used to instruct the robot to update the LAN list according to the at least one available LAN that does not exist in the LAN list.
[0109] In other words, the robot can automatically switch among the LANs stored in the LAN list to ensure that the connection quality between the robot and the LAN is greater than or equal to the first threshold. The LAN list can store LAN connection information (i.e., information used to connect to the corresponding LAN), such as IP (Internet Protocol) address, network name, password, etc. Based on this, the robot can automatically adapt to changes in the network connection status, and minimize data exchange between the robot and auxiliary equipment, thereby reducing network bandwidth pressure.
[0110] In the above two exemplary embodiments, the available LAN can also be obtained in response to the first signal sent by the robot, and the auxiliary device can try to obtain the available LAN at a preset frequency, and then send a third signal to the auxiliary device when an available LAN that does not exist in the LAN list is obtained. The third signal can include the available LAN that does not exist in the LAN list, or the complete LAN list can be sent to the auxiliary device, and the present disclosure does not limit this. Based on this, the robot can store the received available LAN and automatically connect to the network when accessing the network next time, further reducing the amount of data transmitted between the robot and the auxiliary device and reducing the pressure on the network bandwidth. It should be understood that in order to enable the auxiliary device and the robot to access the LAN list respectively, the LAN list can be stored on the auxiliary device and the robot respectively, and a synchronization step of the LAN list can be added before or during the execution of the method, that is, the union of the LAN lists stored in the auxiliary device and the robot is taken, or the LAN list stored in one of the auxiliary device and the robot is taken, and the taken content is stored in the auxiliary device and the robot; or the LAN list can also be stored in a device that can be accessed by both the auxiliary device and the robot.
[0111] Furthermore, in order to obtain the best network connection quality between the robot and the auxiliary device, the method may further include receiving a second signal and connecting to a LAN indicated by the second signal, wherein the second signal is used to connect the auxiliary device to a LAN consistent with the robot. For example, after connecting to a certain LAN, the robot may send the user name of the certain LAN to the auxiliary device based on the PAN, so that the auxiliary device is connected to the certain LAN.
[0112] In addition, the auxiliary device may also provide an interactive interface to the user, receive a LAN and a corresponding password selected by the user based on the interactive interface, and save the connection information of this LAN in the LAN list, or send it to the robot. Optionally, when the auxiliary device finds an available LAN that does not exist in the LAN list, it may prompt the user with the available LAN and receive the password entered by the user, thereby saving the connection information of this LAN in the LAN list, or sending it to the robot.
[0113] In the disclosed embodiment, in response to the current connection quality between the robot and the local area network LAN being less than a first threshold, the robot sends a first signal to the auxiliary device, so that the auxiliary device sends at least one available LAN whose connection quality with the auxiliary device is greater than or equal to a second threshold based on the personal local area network PAN to the robot; next, the robot can connect to an available LAN among the at least one available LAN, and connect the robot to the LAN whose connection quality is greater than or equal to the first threshold. Since the local area network (LAN) is often provided by a router or switch at a fixed location, and the PAN can usually be directly provided by the auxiliary device or robot to build a point-to-point connection (furthermore, PAN has the characteristics of low power consumption, low bandwidth, and stable connection within a short distance), generally speaking, when the robot or auxiliary device is displaced, PAN can provide a more stable connection than LAN, and may only be affected by the relative distance between the robot and the auxiliary device. This advantage is particularly evident in the above-mentioned special scenarios (such as factory operations); the above-mentioned method avoids the disconnection of the LAN connection between the robot and the auxiliary device by notifying the auxiliary device when the quality of the robot's LAN connection is poor, and enables the auxiliary device to send the LAN connection information to the robot based on the PAN, thereby ensuring the availability of a large-scale data transmission channel between the robot and the auxiliary device while taking into account cost and power consumption.
[0114] Next, combine Figure 4 The architecture diagram shown and Figure 5 The selection branch diagram shown further illustrates at least one of the above-mentioned embodiments.
[0115] See also Figure 4 The auxiliary device may have a Bluetooth master module, a LAN search module, and a LAN list storage module; the robot may have a network anomaly detection module, a Bluetooth slave module, a network switching module, and a LAN list storage module. Among them, the Bluetooth slave refers to a Bluetooth module that broadcasts and passively waits for pairing during the pairing and connection process, and the Bluetooth master refers to a module that detects the broadcast sent by the Bluetooth slave during the pairing and connection process and actively sends a handshake signal for pairing and connection.
[0116] See also Figure 5Taking the aforementioned factory operation scenario as an example, when the operation starts, the operator can enable the robot to send a Bluetooth broadcast and control the auxiliary device to establish a Bluetooth connection (or other PAN connection) with the robot; after the connection is successfully established, the auxiliary device can scan nearby available LANs and synchronize the LAN list between the robot and the auxiliary device. In addition, the auxiliary device can also prompt the user with an interactive interface to facilitate the user to select and enter the corresponding password from the currently searchable LANs.
[0117] Next, when the robot's LAN connection quality is less than a first threshold, the robot may send a first signal to the auxiliary device to enable the auxiliary device to scan for available LANs, add the newly scanned available LANs to the LAN list, and synchronize them to the robot. After receiving at least one available LAN, the robot may select an available network and connect to it, so that the connection quality between the robot and the LAN is greater than or equal to the first threshold, and at the same time, it can ensure that the connection quality between the LAN and the auxiliary device is greater than or equal to the second threshold. After the robot is connected to an available LAN, a second notification is sent to the auxiliary device to connect the auxiliary device to the same LAN as the robot, thereby achieving a seamless switching of the LAN connection between the robot and the auxiliary device and avoiding the disconnection of the LAN.
[0118] Corresponding to the embodiments of the aforementioned method, the present disclosure also provides embodiments of a device and a terminal to which the device is applied.
[0119] The third aspect of the present disclosure provides a connection device, see Figure 6 , the device comprises:
[0120] A first sending module 601 is configured to send a first signal to an auxiliary device in response to the connection quality between the robot and the local area network LAN being less than a first threshold, so that the auxiliary device sends at least one available LAN to the robot based on a personal area network PAN, wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold;
[0121] The first connection module 602 is configured to connect to an available LAN among the at least one available LAN, wherein the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold.
[0122] Optionally, when the first connection module is used to connect to a LAN in the at least one available LAN, it is used to:
[0123] Connecting available LANs of the at least one available LAN one by one until the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold;
[0124] Or, connect to the available LAN having the highest connection quality with the robot among the at least one available LAN.
[0125] Optionally, the device further comprises:
[0126] A connection synchronization module is used to send a second signal to the auxiliary device so that the auxiliary device is connected to a LAN consistent with the robot.
[0127] Optionally, the PAN includes a Bluetooth connection;
[0128] And / or, when the first sending module is used to send the first signal to the auxiliary device, it is used to:
[0129] A first signal is sent to the secondary device based on the PAN.
[0130] Optionally, the first sending module is used for, in response to the current connection quality between the robot and the local area network LAN being less than a first threshold, sending a first signal to the auxiliary device, to:
[0131] In response to the current connection quality between the robot and the local area network (LAN) being less than a first threshold, determining whether there is a LAN in a LAN list whose connection quality with the robot is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN;
[0132] In response to the presence of a LAN in the LAN list whose connection quality with the robot is greater than or equal to the first threshold, connecting the LAN whose connection quality with the robot is greater than or equal to the first threshold;
[0133] In response to the LAN list not having a LAN with a connection quality greater than or equal to the first threshold with the robot, a first signal is sent to an auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the robot.
[0134] Optionally, the device further comprises:
[0135] A receiving module is configured to update the LAN list according to the at least one available LAN that does not exist in the LAN list.
[0136] A fourth aspect of the present disclosure provides a connection device, see Figure 7 , the device comprises:
[0137] The second sending module 701 is used for sending at least one available LAN to the robot based on the personal area network PAN in response to receiving the first signal, so that the robot connects to an available LAN among the at least one available LAN, wherein the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold, and the first signal is sent by the robot in response to the current connection quality between the robot and the local area network LAN being less than the first threshold, and the connection quality between the available LAN and the auxiliary device is greater than or equal to the second threshold.
[0138] Optionally, the device further comprises:
[0139] The second connection module is used to receive a second signal and connect to a LAN indicated by the second signal, wherein the second signal is used to connect the auxiliary device to the LAN consistent with the robot.
[0140] Optionally, when the second sending module is used to send at least one available LAN to the robot based on the personal area network PAN so that the robot connects to an available LAN in the at least one available LAN, it is used to:
[0141] In response to obtaining at least one available LAN that does not exist in the LAN list, the at least one available LAN that does not exist in the LAN list is sent to the robot based on PAN so that the robot connects to the at least one available LAN that does not exist in the LAN list, and updates the LAN list according to the at least one available LAN that does not exist in the LAN list, wherein the LAN list includes at least one LAN.
[0142] Optionally, the device further includes a third sending module, configured to perform the following steps:
[0143] In response to the time interval between the current moment and the last time the available LAN was obtained reaching a time threshold, obtaining the available LAN;
[0144] In response to acquiring at least one available LAN that does not exist in the LAN list, the LAN list is updated according to the at least one available LAN, and a third signal is sent to the robot so that the robot updates the LAN list based on the third signal, wherein the LAN list includes at least one LAN, and the third signal is used to instruct the robot to update the LAN list according to the at least one available LAN that does not exist in the LAN list.
[0145] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0146] A fifth aspect of the present disclosure provides a computer program product, including a computer program / instruction, which implements the method described in the first aspect or the second aspect when executed by a processor.
[0147] As for the device embodiments and computer program product embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. In addition, the device embodiments described above are merely schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple WAN modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.
[0148] In a sixth aspect, some embodiments of the present disclosure provide an electronic device, for example, a robot, or an auxiliary device (such as a mobile communication terminal, etc.), see Figure 8 , which shows the structure of the electronic device, the electronic device includes a memory and a processor, the memory is used to store computer instructions that can be executed on the processor, and the processor is used to connect based on the method described in the first aspect or the second aspect when executing the computer instructions.
[0149] In a seventh aspect, the present disclosure, in an exemplary embodiment, further provides a non-transitory computer-readable storage medium including instructions, such as a memory including instructions, and the instructions can be executed by a processor of a robot or a computer device to complete the robot connection method described in the first aspect or the second aspect. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0150] The above describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0151] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the inventions claimed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not claimed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0152] It should be understood that the present disclosure is not limited to the exact structures that have been 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.
[0153] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A connection method, characterized in that: The method comprises: In response to the connection quality between the robot and the local area network (LAN) being less than a first threshold, sending a first signal to an auxiliary device, so that the auxiliary device sends at least one available LAN to the robot based on a personal area network (PAN), wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold; connecting to an available LAN of the at least one available LAN, wherein a connection quality between the robot and the connected available LAN is greater than or equal to the first threshold; In response to the current connection quality between the robot and the local area network LAN being less than a first threshold, sending a first signal to the auxiliary device comprises: In response to the current connection quality between the robot and the local area network (LAN) being less than a first threshold, determining whether there is a LAN in a LAN list whose connection quality with the robot is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN; In response to the presence of a LAN in the LAN list whose connection quality with the robot is greater than or equal to the first threshold, connecting the LAN whose connection quality with the robot is greater than or equal to the first threshold; and / or, in response to the absence of a LAN in the LAN list whose connection quality with the robot is greater than or equal to the first threshold, sending a first signal to the auxiliary device so that the auxiliary device sends at least one available LAN that is not in the LAN list to the robot.
2. The connection method according to claim 1, characterized in that: The connecting of the at least one available LAN to a LAN comprises: Connecting available LANs in the at least one available LAN one by one until the connection quality between the robot and the connected available LAN is greater than or equal to the first threshold; or, An available LAN having the highest connection quality with the robot among the at least one available LAN is connected.
3. The connection method according to claim 1, characterized in that: The method further comprises: A second signal is sent to the auxiliary device to cause the auxiliary device to connect to a LAN consistent with the robot.
4. The connection method according to claim 1, characterized in that: The PAN includes a Bluetooth connection; and / or, The sending of the first signal to the auxiliary device comprises: A first signal is sent to the secondary device based on the PAN.
5. The connection method according to claim 1, characterized in that: The method further comprises: The LAN list is updated according to the at least one available LAN that is not present in the LAN list.
6. A connection method, characterized in that: The method comprises: In response to receiving a first signal, at least one available LAN is sent to the robot based on a personal area network PAN, so that the robot connects to an available LAN among the at least one available LAN, wherein the connection quality between the robot and the connected available LAN is greater than or equal to a first threshold value, the first signal is sent by the robot in response to the current connection quality between the robot and the local area network LAN being less than the first threshold value, and there being no LAN in the robot's LAN list whose connection quality with the robot is greater than or equal to the first threshold value, the LAN list including at least one LAN, and the connection quality between the available LAN and an auxiliary device being greater than or equal to a second threshold value.
7. The connection method according to claim 6, characterized in that: The method further comprises: A second signal is received and connected to a LAN indicated by the second signal, wherein the second signal is used to connect the auxiliary device to the LAN consistent with the robot.
8. The connection method according to claim 6, characterized in that: The step of sending at least one available LAN to the robot based on the personal area network PAN so that the robot is connected to an available LAN in the at least one available LAN comprises: In response to obtaining at least one available LAN that does not exist in the LAN list, the at least one available LAN that does not exist in the LAN list is sent to the robot based on PAN so that the robot connects to the at least one available LAN that does not exist in the LAN list, and updates the LAN list according to the at least one available LAN that does not exist in the LAN list, wherein the LAN list includes at least one LAN.
9. The connection method according to claim 6, characterized in that: The method further comprises: In response to a time interval between the current moment and the last time the available LAN was obtained reaching a time threshold, obtaining the available LAN; In response to acquiring at least one available LAN that does not exist in the LAN list, the LAN list is updated according to the at least one available LAN, and a third signal is sent to the robot so that the robot updates the LAN list based on the third signal, wherein the LAN list includes at least one LAN, and the third signal is used to instruct the robot to update the LAN list according to the at least one available LAN that does not exist in the LAN list.
10. A connection device, characterized in that: The device comprises: A first sending module is configured to send a first signal to an auxiliary device in response to the current connection quality between the robot and the local area network (LAN) being less than a first threshold, so that the auxiliary device sends at least one available LAN to the robot based on a personal area network (PAN), wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold; a first connection module, configured to connect to an available LAN among the at least one available LAN, wherein a connection quality between the robot and the connected available LAN is greater than or equal to the first threshold; The first sending module is used for sending a first signal to the auxiliary device in response to the current connection quality between the robot and the local area network LAN being less than a first threshold value, to: In response to the current connection quality between the robot and the local area network (LAN) being less than a first threshold, determining whether there is a LAN in a LAN list whose connection quality with the robot is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN; In response to the presence of a LAN in the LAN list whose connection quality with the robot is greater than or equal to the first threshold, connecting the LAN whose connection quality with the robot is greater than or equal to the first threshold; and / or, in response to the absence of a LAN in the LAN list whose connection quality with the robot is greater than or equal to the first threshold, sending a first signal to the auxiliary device so that the auxiliary device sends at least one available LAN that is not in the LAN list to the robot.
11. A connection device, characterized in that: The device comprises: A second sending module is used for sending at least one available LAN to the robot based on a personal area network PAN in response to receiving a first signal, so that the robot connects to an available LAN among the at least one available LAN, wherein the connection quality between the robot and the connected available LAN is greater than or equal to a first threshold value, and the first signal is sent by the robot in response to the current connection quality between the robot and the local area network LAN being less than the first threshold value, and there being no LAN in the LAN list of the robot whose connection quality with the robot is greater than or equal to the first threshold value, and the LAN list contains at least one LAN, and the connection quality between the available LAN and an auxiliary device is greater than or equal to a second threshold value.
12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.
13. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 9 is implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Terminal auxiliary network distribution method and apparatus, and electronic device
CN113055867A
Intelligent hardware equipment network distribution method and device and terminal equipment
CN113965884A
Wireless network distribution method and electronic equipment
CN115942424A