Connection method, device, computer equipment and storage medium

By introducing WPAN connection module into the robot, the problem of robot connection mode limitation is solved, flexible connection with multiple devices is achieved, and user experience and interconnectivity is improved.

CN118119040BActive Publication Date: 2024-11-08BEIJING XIAOMI ROBOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410371143.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2024-11-08
Estimated Expiration
2044-03-28

AI Technical Summary

Technical Problem

The connection mode of the robot limits the user's control and monitoring of the robot, and is unable to adapt to commonly used external devices, resulting in poor user experience.

Method used

By introducing the first and second connection modules into the robot, it is used to establish a wireless personal area network (WPAN) connection with auxiliary equipment and control equipment, realize broadcast and search functions, and enhance the flexibility and interconnectivity of the robot in different scenarios.

Benefits of technology

It realizes multifunctional connection between robots and devices such as Bluetooth handles and mobile phones, improves user experience and usability, and enhances the interconnectivity and flexibility of robots in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118119040B_ABST
    Figure CN118119040B_ABST
Patent Text Reader

Abstract

The present disclosure provides a connection method, an apparatus, a computer device and a storage medium. The method comprises: establishing a connection with an auxiliary device based on a first connection module, the first connection module is used to send a broadcast based on a wireless personal area network WPAN, and establish a connection with the auxiliary device based on the WPAN in response to a connection signal sent by the auxiliary device; establishing a connection with a control device based on a second connection module, the second connection module is used to receive a broadcast sent by the control device based on the WPAN, and send a connection signal to the control device to establish a connection with the control device based on the WPAN.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal 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, warehousing logistics, and medical services, they have become an important tool for improving production efficiency and reducing labor costs. The intelligent and automated characteristics of robots enable them to perform a variety of heavy, dangerous, or monotonous tasks, thereby reducing people's workload.

[0003] However, in the related art, the connection mode of the robot has many limitations. For example, a wired connection or a dedicated network connection is required to interact with the robot. It cannot adapt well to the external devices commonly used by users, which severely restricts the user's control and monitoring of the robot and results in a poor user experience. 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] Establishing a connection with the auxiliary device based on a first connection module, wherein the first connection module is used to broadcast based on a wireless personal area network WPAN and establish a connection based on the WPAN with the auxiliary device in response to a connection signal sent by the auxiliary device;

[0007] A connection is established with the control device based on a second connection module, wherein the second connection module is used to receive a broadcast sent by the control device based on WPAN, and send a connection signal to the control device to establish a connection with the control device based on WPAN.

[0008] Optionally, the method further includes:

[0009] Based on the second connection module, a first control instruction sent by the control device is received, and the robot is controlled to execute the action indicated by the first control instruction, wherein the first control instruction is generated based on a user instruction input by a user on the control device.

[0010] Optionally, establishing a connection with the control device based on the second connection module includes:

[0011] Based on the first connection module, a connection instruction sent by the auxiliary device is received, and based on the second connection module, a WPAN device indicated by the connection instruction is connected, wherein the WPAN device includes a device that sends broadcasts based on WPAN.

[0012] Optionally, the method further includes:

[0013] Based on the second connection module, the WPAN broadcast in the robot's environment is received, and based on the first connection module, the WPAN device corresponding to the WPAN broadcast in the robot's environment is sent to the auxiliary device, so that the auxiliary device presents a connection selection interface, wherein the connection selection interface is used to present the received WPAN device, and the selection interface is used to receive the connection instruction input by the user.

[0014] Optionally, the method further includes:

[0015] receiving a second control instruction sent by the auxiliary device based on the first connection module, and controlling the robot to perform an action indicated by the second control instruction, wherein the second control instruction is generated based on a user instruction input by a user on the auxiliary device;

[0016] And / or, sending preset data to the auxiliary device based on the first connection module, so that the auxiliary device presents the preset data to the user.

[0017] Optionally, the method further includes:

[0018] Based on the third connection module, establishing a connection based on the local area network LAN with the auxiliary device;

[0019] Based on the third connection module, the preset data is sent to the auxiliary device, so that the auxiliary device presents the preset data to the user.

[0020] Optionally, the method further includes:

[0021] In response to the connection quality between the third connection module and the currently connected LAN being less than a first threshold, sending a first signal to the auxiliary device so that the auxiliary device sends at least one available LAN to the first connection module, wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold;

[0022] An available LAN among the at least one available LAN is connected based on the third connection module, wherein a connection quality between the third connection module and the connected available LAN is greater than or equal to the first threshold.

[0023] Optionally, the method further includes:

[0024] sending a second signal to the auxiliary device to connect the auxiliary device to the LAN consistent with the third connection module;

[0025] And / or, sending the first signal to the auxiliary device includes:

[0026] Based on the first connection module, a first signal is sent to the auxiliary device.

[0027] Optionally, in response to the connection quality between the third connection module and the currently connected LAN being less than a first threshold, sending a first signal to the auxiliary device includes:

[0028] In response to the current connection quality between the third connection module and the local area network LAN being less than a first threshold, determining whether there is a LAN in the LAN list whose connection quality with the third connection module is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN; or

[0029] In response to the presence in the LAN list of a LAN whose connection quality with the third connection module is greater than or equal to the first threshold, connecting the LAN whose connection quality with the third connection module is greater than or equal to the first threshold; or,

[0030] In response to the LAN list not having a LAN whose connection quality with the third connection module is greater than or equal to the first threshold, a first signal is sent to the auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the third connection module.

[0031] Optionally, the WPAN includes a Bluetooth connection, and / or the method further includes:

[0032] The LAN list is updated according to the at least one available LAN that is not present in the LAN list.

[0033] A second aspect of the present disclosure provides a connection device, the device comprising:

[0034] a first connection establishing module, configured to establish a connection with the auxiliary device based on a first connection module, wherein the first connection module is configured to broadcast based on a wireless personal area network WPAN and establish a connection based on the WPAN with the auxiliary device in response to a connection signal sent by the auxiliary device;

[0035] The second connection establishing module is used to establish a connection with the control device based on the second connection module, and the second connection module is used to receive the broadcast sent by the control device based on WPAN, and send a connection signal to the control device to establish a connection with the control device based on WPAN.

[0036] Optionally, the device further comprises:

[0037] The first receiving module is used to receive the first control instruction sent by the control device based on the second connecting module, and control the robot to perform the action indicated by the first control instruction, wherein the first control instruction is generated based on the user instruction input by the user on the control device.

[0038] Optionally, when the first receiving module is used to establish a connection with the control device based on the second connecting module, the first receiving module is used to:

[0039] Based on the first connection module, a connection instruction sent by the auxiliary device is received, and based on the second connection module, a WPAN device indicated by the connection instruction is connected, wherein the WPAN device includes a device that sends broadcasts based on WPAN.

[0040] Optionally, the device further comprises:

[0041] A second receiving module is used to receive the WPAN broadcast in the robot's environment based on the second connection module, and based on the first connection module, send the WPAN device corresponding to the WPAN broadcast in the robot's environment to the auxiliary device, so that the auxiliary device presents a connection selection interface, wherein the connection selection interface is used to present the received WPAN device, and the selection interface is used to receive the connection instruction input by the user.

[0042] Optionally, the device further includes a transmission module, configured to perform the following steps:

[0043] receiving a second control instruction sent by the auxiliary device based on the first connection module, and controlling the robot to perform an action indicated by the second control instruction, wherein the second control instruction is generated based on a user instruction input by a user on the auxiliary device;

[0044] And / or, sending preset data to the auxiliary device based on the first connection module, so that the auxiliary device presents the preset data to the user.

[0045] Optionally, the device further comprises:

[0046] A third connection establishing module, used to establish a connection based on a local area network LAN with the auxiliary device based on the third connection module;

[0047] The first sending module is used to send preset data to the auxiliary device based on the third connecting module, so that the auxiliary device presents the preset data to the user.

[0048] Optionally, the device further comprises:

[0049] a second sending module, configured to send a first signal to the auxiliary device in response to the connection quality between the third connection module and the currently connected LAN being less than a first threshold, so that the auxiliary device sends at least one available LAN to the first connection module, wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold;

[0050] A LAN connection module is used to connect an available LAN among the at least one available LAN based on the third connection module, wherein the connection quality between the third connection module and the connected available LAN is greater than or equal to the first threshold.

[0051] Optionally, the device further comprises:

[0052] a third sending module, configured to send a second signal to the auxiliary device so that the auxiliary device is connected to the LAN consistent with the third connecting module;

[0053] And / or, when the first sending module is used to send the first signal to the auxiliary device, it is used to:

[0054] Based on the first connection module, a first signal is sent to the auxiliary device.

[0055] Optionally, the first sending module is used to perform the following steps when sending a first signal to the auxiliary device in response to the connection quality between the third connecting module and the currently connected LAN being less than a first threshold:

[0056] In response to the current connection quality between the third connection module and the local area network LAN being less than a first threshold, determining whether there is a LAN in the LAN list whose connection quality with the third connection module is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN; or

[0057] In response to the presence in the LAN list of a LAN whose connection quality with the third connection module is greater than or equal to the first threshold, connecting the LAN whose connection quality with the third connection module is greater than or equal to the first threshold; or,

[0058] In response to the LAN list not having a LAN whose connection quality with the third connection module is greater than or equal to the first threshold, a first signal is sent to the auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the third connection module.

[0059] Optionally, the WPAN includes a Bluetooth connection, and / or the device further includes:

[0060] An updating module is used to update the LAN list according to the at least one available LAN that does not exist in the LAN list.

[0061] A third aspect of the present disclosure provides a computer program product, including a computer program / instruction, which implements the method described in the first aspect when executed by a processor.

[0062] A fourth 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 the processor implements the method described in the first aspect when executing the program.

[0063] A fifth 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.

[0064] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0065] In the disclosed embodiment, the robot establishes a connection with an auxiliary device based on a first connection module, wherein the first connection module is used to broadcast based on a wireless personal area network WPAN, and establish a connection with the auxiliary device based on WPAN in response to a connection signal sent by the auxiliary device; and establishes a connection with a control device based on a second connection module, wherein the second connection module is used to receive a broadcast based on WPAN issued by the control device, and send a connection signal to the control device to establish a connection with the control device based on WPAN. Based on this, the robot can not only broadcast and passively connect to auxiliary devices (i.e., as a WPAN slave station), but also search for WPAN broadcasts in the environment and actively connect to the control device that sends the WPAN (i.e., as a WPAN master station), thereby realizing multifunctional application and enhancing the flexibility of robot application. However, due to considerations of cost, portability and other dimensions, in many scenarios, control devices such as Bluetooth handles used to send instructions are usually only supported as WPAN slave stations, while auxiliary devices such as mobile phones with rich human-computer interaction interfaces are usually connected to robots as WPAN masters. Based on the above method, the robot can simultaneously establish connections with control devices such as Bluetooth handles and application software of mobile devices such as mobile phones, fully adapting to the user's control and monitoring of the robot in common scenarios, improving the robot's availability and thus improving the user experience. At the same time, the above method realizes the collaborative work of multiple devices, and different connections can work simultaneously without affecting each other (each of which is implemented by a different module), thereby enhancing the connectivity of the robot in different scenarios.

[0066] 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

[0067] 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.

[0068] Figure 1 It is an application scenario diagram of a connection method shown in some exemplary embodiments.

[0069] Figure 2 is a flow chart of a connection method shown in some exemplary embodiments.

[0070] Figure 3 It is a schematic diagram of an architecture of a connection method shown in some exemplary embodiments.

[0071] Figure 4 is a flow chart of another connection method shown in some exemplary embodiments.

[0072] Figure 5 It is a module schematic diagram of a connection method shown in some exemplary embodiments.

[0073] Figure 6 is a module diagram of a connection method shown in some exemplary embodiments.

[0074] Figure 7 is a block diagram of a connection device shown in some exemplary embodiments.

[0075] Figure 8 is a structural diagram of an electronic device shown in some exemplary embodiments. DETAILED DESCRIPTION

[0076] 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.

[0077] 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.

[0078] 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".

[0079] With the increasing application of robots in special scenarios such as factory operations, warehousing logistics, and medical services, they have become an important tool for improving production efficiency and reducing labor costs. The intelligent and automated characteristics of robots enable them to perform a variety of heavy, dangerous, or monotonous tasks, thereby reducing people's workload.

[0080] However, in the related art, the connection mode of the robot has many limitations. For example, a wired connection or a dedicated network connection is required to interact with the robot. It cannot adapt well to the external devices commonly used by users, which severely restricts the user's control and monitoring of the robot and results in a poor user experience.

[0081] In view of this, the present disclosure provides a connection method, an apparatus, a computer device, and a storage medium.

[0082] Below Figure 1 Taking as an example, exemplary application scenarios of some embodiments of the present disclosure are introduced. Among them, the auxiliary device can be a mobile phone, a laptop computer, etc., and the robot can be a robot dog, a cleaning robot, etc. Generally speaking, robots used for operations do not have specially designed human-computer interaction functions. Therefore, for control devices that usually only serve as WPAN slaves, auxiliary devices such as mobile phones are generally required to control the robot to connect with the control device. In addition, when the user is controlling the robot, it is usually necessary to view the preset data sent back by the robot at the same time, such as the robot's visual data, internal state parameters, etc. It can be seen that the demand for connecting the robot with dual devices (such as auxiliary devices and control devices) is becoming more and more prominent.

[0083] A local area network (LAN) can be initiated by devices such as routers or switches, while a 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 a universal serial bus USB or Firewire (IEEE1394) bus; it can also be in wireless form, such as infrared (IrDA) or Bluetooth. A wireless personal area network 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. In addition, in the embodiments of the present disclosure, the technical solution may be explained by taking the WPAN as a Bluetooth connection as an example, but the present disclosure does not limit the specific implementation method of WPAN.

[0084] As a short-range communication solution, the process of establishing a WPAN connection usually involves two connection roles: a master station and a slave station. For example, after startup, a slave station can send a WPAN broadcast (i.e., a WPAN-based broadcast) to the surrounding environment, and the broadcast can carry the connection information of the slave station, and the connection information is used to enable the master station to determine the identity of the slave station and connect to the slave station; and the master station can search for WPAN broadcasts in the surrounding environment after startup, and then select a slave station based on user instructions or other logic, and pair with the slave station for data transmission.

[0085] Next, the embodiments of the present disclosure are described in detail.

[0086] The first aspect of the present disclosure provides a connection method that can be applied to electronic devices such as robots. Figure 2 , which comprises the following steps:

[0087] Step S201, establishing a connection with an auxiliary device based on a first connection module, wherein the first connection module is used to broadcast based on a wireless personal area network WPAN, and establish a connection based on the WPAN with the auxiliary device in response to a connection signal sent by the auxiliary device;

[0088] A connection is established with the control device based on a second connection module, wherein the second connection module is used to receive a broadcast sent by the control device based on WPAN, and send a connection signal to the control device to establish a connection with the control device based on WPAN.

[0089] The first connection module and the second connection module can be implemented by an integral WPAN module or by separate WPAN modules in hardware, but the first connection module and the second connection module can establish connections respectively and the two modules do not interfere with each other (that is, the first connection module and the second connection module can work simultaneously). Figure 3 , which exemplarily shows an architecture diagram of a robot, wherein the robot includes a service layer for running robot service applications, a WPAN slave module (such as the first connection module), and a WPAN master module (such as the second connection module). The WPAN master module is mainly used for scanning, pairing, and controlling the connection on and off. The WPAN slave module is mainly used for user switch broadcasting. In addition, both the master module and the slave module can perform data transmission. The WPAN master module and the WPAN slave module jointly complete the master-slave control function and communicate with the service layer of the robot through the master-slave interface. In the following text, the first connection module is referred to as the slave module, and the second connection module is referred to as the master module.

[0090] The auxiliary device and the control device are both electronic devices; optionally, the auxiliary device can be a mobile device with a human-computer interaction interface, such as a mobile phone, a tablet computer, a laptop computer, etc.; the control device can be a mobile device with a control function, such as a Bluetooth handle, an infrared remote control, etc. Then the method can also include:

[0091] Based on the second connection module, a first control instruction sent by the control device is received, and the robot is controlled to execute the action indicated by the first control instruction, wherein the first control instruction is generated based on a user instruction input by a user on the control device.

[0092] Specifically, the user can input user instructions by interacting with the control device (for example, pressing a button, sliding a slider), and then the control device can generate a first control instruction based on the user instruction, and send the first control instruction to the robot to control the robot to perform the action the user wants to perform.

[0093] Regarding the process of connecting the robot to the control device, illustratively, the robot may use the slave module to broadcast and establish a connection with the auxiliary device. Next, establishing a connection with the control device based on the second connection module may include:

[0094] Based on the first connection module, a connection instruction sent by the auxiliary device is received, and based on the second connection module, a WPAN device indicated by the connection instruction is connected, wherein the WPAN device includes a device that sends broadcasts based on WPAN.

[0095] In other words, after establishing a connection with the auxiliary device, the robot can receive a connection instruction sent by the auxiliary device and pair or connect with the control device according to the connection instruction. Based on this, the shortcomings of robots that usually do not have specially designed human-computer interaction functions can be made up, providing users with a better interactive experience.

[0096] Furthermore, the method may also include:

[0097] Based on the second connection module, the WPAN broadcast in the robot's environment is received, and based on the first connection module, the WPAN device corresponding to the WPAN broadcast in the robot's environment is sent to the auxiliary device, so that the auxiliary device presents a connection selection interface, wherein the connection selection interface is used to present the received WPAN device, and the selection interface is used to receive the connection instruction input by the user.

[0098] In the above steps, since the WPAN broadcast is received by the robot and sent to the auxiliary device, while making up for the shortcoming caused by the robot usually not having specially designed human-computer interaction functions, it can ensure that the WPAN device corresponding to the WPAN broadcast (that is, the device that sends the WPAN, there can be multiple WPAN broadcasts and corresponding to multiple WPAN devices) can establish a usable connection with the robot.

[0099] After the robot establishes a connection with the auxiliary device, the method may further include:

[0100] receiving a second control instruction sent by the auxiliary device based on the first connection module, and controlling the robot to perform an action indicated by the second control instruction, wherein the second control instruction is generated based on a user instruction input by a user on the auxiliary device;

[0101] In other words, the auxiliary device can also receive user instructions and send the second control instructions generated based on the instructions to the robot, so that the robot performs the action desired by the user. It should be understood that the action may include movement, stopping, performing a task, etc., and the present disclosure does not limit this.

[0102] In addition, the method may further include:

[0103] The preset data is sent to the auxiliary device based on the first connection module, so that the auxiliary device presents the preset data to the user.

[0104] The preset data may be the robot visual data, internal state parameters, etc. mentioned above, or other data that needs to be presented to the user. Based on this, the user can conveniently view the preset data sent back by the robot while controlling the robot. In a typical scenario, the user can connect a Bluetooth handle (usually only with WPAN slave function) and a mobile phone to the robot, and use the Bluetooth handle to control the movement of the robot, while viewing the visual data sent back by the robot through the mobile phone, so as to provide the user with the best user experience and improve the usability of the robot.

[0105] In the disclosed embodiment, the robot establishes a connection with an auxiliary device based on a first connection module, wherein the first connection module is used to broadcast based on a wireless personal area network WPAN, and establish a connection with the auxiliary device based on WPAN in response to a connection signal sent by the auxiliary device; and establishes a connection with a control device based on a second connection module, wherein the second connection module is used to receive a broadcast based on WPAN issued by the control device, and send a connection signal to the control device to establish a connection with the control device based on WPAN. Based on this, the robot can not only broadcast and passively connect to auxiliary devices (i.e., as a WPAN slave station), but also search for WPAN broadcasts in the environment and actively connect to the control device that sends the WPAN (i.e., as a WPAN master station), thereby realizing multifunctional application and enhancing the flexibility of robot application. However, due to considerations of cost, portability and other dimensions, in many scenarios, control devices such as Bluetooth handles used to send instructions are usually only supported as WPAN slave stations, while auxiliary devices such as mobile phones with rich human-computer interaction interfaces are usually connected to robots as WPAN masters. Based on the above method, the robot can simultaneously establish connections with control devices such as Bluetooth handles and application software of mobile devices such as mobile phones, fully adapting to the user's control and monitoring of the robot in common scenarios, improving the robot's availability and thus improving the user experience. At the same time, the above method realizes the collaborative work of multiple devices, and different connections can work simultaneously without affecting each other (each of which is implemented by a different module), thereby enhancing the connectivity of the robot in different scenarios.

[0106] In some embodiments of the present disclosure, Figure 4 As shown, in order to better adapt to the above-mentioned large-scale data transmission scenarios such as visual data transmission, a local area network connection can also be established between the auxiliary device and the robot. Specifically, the robot can also include a third connection module (hereinafter referred to as a local area network module), and the method also includes:

[0107] Step S401, establishing a connection based on a local area network LAN with the auxiliary device based on a third connection module;

[0108] Step S402: Based on the third connection module, send preset data to the auxiliary device, so that the auxiliary device presents the preset data to the user.

[0109] Specifically, in special scenarios such as factory 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 (described in detail above), such as the robot's real-time field of view, state parameters, and instruction receipts, etc. At the same time, new instructions need to be issued to the robot. However, WPAN connections usually have low bandwidth. Considering factors such as cost and feasibility, these large-scale data are usually transmitted based on local area networks. Based on the above steps, higher bandwidth data transmission can be supported, data bottlenecks can be avoided, and user experience can be improved.

[0110] Furthermore, the method may also include:

[0111] In response to the connection quality between the third connection module and the currently connected LAN being less than a first threshold, sending a first signal to the auxiliary device so that the auxiliary device sends at least one available LAN to the first connection module, wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold;

[0112] An available LAN among the at least one available LAN is connected based on the third connection module, wherein a connection quality between the third connection module and the connected available LAN is greater than or equal to the first threshold.

[0113] Specifically, in the aforementioned scenarios, the operation process in which the user controls the robot with handheld auxiliary equipment often involves a wider activity area (that is, the position will change over a larger range), and the local area network is usually provided by routers or switches in fixed locations. 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.

[0114] 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.

[0115] 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.

[0116] 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 WPAN 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 WPAN. The present disclosure does not limit this.

[0117] 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.

[0118] 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.

[0119] 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 a LAN consistent with the third connection module (i.e., 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 first connection module so that the auxiliary device is connected to the certain LAN.

[0120] 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.

[0121] The above method avoids the disconnection of the LAN connection between the robot and the auxiliary device by notifying the auxiliary device when the robot's LAN connection quality is poor, and enables the auxiliary device to send the LAN connection information to the robot based on WPAN, 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.

[0122] In some embodiments of the present disclosure, a LAN list may be stored in the robot, and the LAN list may store connection information of at least one LAN. In response to the connection quality between the third connection module and the currently connected LAN being less than a first threshold, sending a first signal to the auxiliary device includes:

[0123] In response to the current connection quality between the third connection module and the local area network LAN being less than a first threshold, determining whether there is a LAN in the LAN list whose connection quality with the third connection module is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN; or

[0124] In response to the presence in the LAN list of a LAN whose connection quality with the third connection module is greater than or equal to the first threshold, connecting the LAN whose connection quality with the third connection module is greater than or equal to the first threshold; or,

[0125] In response to the LAN list not having a LAN whose connection quality with the third connection module is greater than or equal to the first threshold, a first signal is sent to the auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the third connection module.

[0126] 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.

[0127] Furthermore, the method may also include:

[0128] The LAN list is updated according to the at least one available LAN that is not present in the LAN list.

[0129] 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.

[0130] 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 lists stored on both sides are not distinguished, but this does not strictly limit the storage location and existence form of the LAN list.

[0131] At least one embodiment described above can be briefly summarized as follows: Figure 5 The selection branch steps shown. Taking the aforementioned factory operation scenario as an example, when the operation starts, the operator can make the robot send out a Bluetooth broadcast and control the auxiliary device to establish a Bluetooth connection (or other WPAN connection) with the robot; after the connection is successfully established, the auxiliary device can scan the available LANs nearby 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 so that the user can select and enter the corresponding password from the currently searchable LANs.

[0132] 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.

[0133] Combine the following Figure 6 The exemplary module diagram shown is used to further illustrate at least one of the above embodiments.

[0134] First, the robot has a Bluetooth slave station, and the auxiliary device has a Bluetooth master station. The user can start the robot to trigger the robot's passive pairing mode (send Bluetooth broadcast), and then pair the master station module of the auxiliary device with the slave station module of the robot and establish a WPAN connection. Next, the user can turn on the control device with a Bluetooth slave station and turn on the robot's active pairing mode (active search broadcast). Next, the robot can send the Bluetooth device corresponding to the searched Bluetooth broadcast to the auxiliary device, so that the user can control the robot to pair with the control device and establish a connection based on the interactive interface presented on the auxiliary device (the interactive interface has the Bluetooth device corresponding to the received Bluetooth broadcast by the auxiliary device). Next, the user can operate the control device to send instructions to the robot, and the instructions can be executed by the robot's instruction execution module; in addition, the robot can also report the network abnormality to the auxiliary device when the network is abnormal, and the auxiliary device performs a LAN search based on the LAN search function (at this time, it can also be based on providing the user with a LAN search interface and reminding the user to enter the password and other connection information for the available LAN that is not stored in the LAN list). Then the robot switches the network to ensure that the robot and the auxiliary device maintain an available high-bandwidth connection (LAN connection).

[0135] For the specific details and corresponding beneficial effects in the above examples, please refer to the aforementioned embodiments and will not be repeated here.

[0136] 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.

[0137] The second aspect of the present disclosure provides a connection device, see Figure 7 , the device comprises:

[0138] A first connection establishing module 701, configured to establish a connection with an auxiliary device based on a first connection module, wherein the first connection module is configured to broadcast based on a wireless personal area network WPAN and establish a connection based on the WPAN with the auxiliary device in response to a connection signal sent by the auxiliary device;

[0139] The second connection establishing module 702 is used to establish a connection with the control device based on a second connection module, wherein the second connection module is used to receive a broadcast from the control device based on WPAN and send a connection signal to the control device to establish a connection with the control device based on WPAN.

[0140] Optionally, the device further comprises:

[0141] The first receiving module is used to receive the first control instruction sent by the control device based on the second connecting module, and control the robot to perform the action indicated by the first control instruction, wherein the first control instruction is generated based on the user instruction input by the user on the control device.

[0142] Optionally, when the first receiving module is used to establish a connection with the control device based on the second connecting module, the first receiving module is used to:

[0143] Based on the first connection module, a connection instruction sent by the auxiliary device is received, and based on the second connection module, a WPAN device indicated by the connection instruction is connected, wherein the WPAN device includes a device that sends broadcasts based on WPAN.

[0144] Optionally, the device further comprises:

[0145] A second receiving module is used to receive the WPAN broadcast in the robot's environment based on the second connection module, and based on the first connection module, send the WPAN device corresponding to the WPAN broadcast in the robot's environment to the auxiliary device, so that the auxiliary device presents a connection selection interface, wherein the connection selection interface is used to present the received WPAN device, and the selection interface is used to receive the connection instruction input by the user.

[0146] Optionally, the device further includes a transmission module, configured to perform the following steps:

[0147] receiving a second control instruction sent by the auxiliary device based on the first connection module, and controlling the robot to perform an action indicated by the second control instruction, wherein the second control instruction is generated based on a user instruction input by a user on the auxiliary device;

[0148] And / or, sending preset data to the auxiliary device based on the first connection module, so that the auxiliary device presents the preset data to the user.

[0149] Optionally, the device further comprises:

[0150] A third connection establishing module, used to establish a connection based on a local area network LAN with the auxiliary device based on the third connection module;

[0151] The first sending module is used to send preset data to the auxiliary device based on the third connecting module, so that the auxiliary device presents the preset data to the user.

[0152] Optionally, the device further comprises:

[0153] a second sending module, configured to send a first signal to the auxiliary device in response to the connection quality between the third connection module and the currently connected LAN being less than a first threshold, so that the auxiliary device sends at least one available LAN to the first connection module, wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold;

[0154] A LAN connection module is used to connect an available LAN among the at least one available LAN based on the third connection module, wherein the connection quality between the third connection module and the connected available LAN is greater than or equal to the first threshold.

[0155] Optionally, the device further comprises:

[0156] a third sending module, configured to send a second signal to the auxiliary device so that the auxiliary device is connected to the LAN consistent with the third connecting module;

[0157] And / or, when the first sending module is used to send the first signal to the auxiliary device, it is used to:

[0158] Based on the first connection module, a first signal is sent to the auxiliary device.

[0159] Optionally, the first sending module is used to perform the following steps when sending a first signal to the auxiliary device in response to the connection quality between the third connecting module and the currently connected LAN being less than a first threshold:

[0160] In response to the current connection quality between the third connection module and the local area network LAN being less than a first threshold, determining whether there is a LAN in the LAN list whose connection quality with the third connection module is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN;

[0161] In response to the presence of a LAN in the LAN list whose connection quality with the third connection module is greater than or equal to the first threshold, connecting the LAN whose connection quality with the third connection module is greater than or equal to the first threshold;

[0162] In response to the LAN list not having a LAN whose connection quality with the third connection module is greater than or equal to the first threshold, a first signal is sent to the auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the third connection module.

[0163] Optionally, the WPAN includes a Bluetooth connection, and / or the device further includes:

[0164] An updating module is used to update the LAN list according to the at least one available LAN that does not exist in the LAN list.

[0165] 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.

[0166] A third aspect of the present disclosure provides a computer program product, including a computer program / instruction, which implements the method described in the first aspect when executed by a processor.

[0167] 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 network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. Those of ordinary skill in the art can understand and implement it without paying creative labor.

[0168] In a fourth aspect, some embodiments of the present disclosure provide an electronic device, which may include a robot, a robot base station, a server, etc. 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 perform motion control based on any method described in the first aspect when executing the computer instructions.

[0169] In a fifth 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 connection method of the robot. 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.

[0170] 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.

[0171] 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.

[0172] 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.

[0173] 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: Establishing a connection with the auxiliary device based on a first connection module, wherein the first connection module is used to broadcast based on a wireless personal area network WPAN and establish a connection based on the WPAN with the auxiliary device in response to a connection signal sent by the auxiliary device; Establishing a connection with the control device based on a second connection module, wherein the second connection module is used to receive a broadcast from the control device based on the WPAN, and send a connection signal to the control device to establish a connection with the control device based on the WPAN; The establishing a connection with the control device based on the second connection module includes: Based on the first connection module, a connection instruction sent by the auxiliary device is received, and based on the second connection module, the control device indicated by the connection instruction is connected.

2. The connection method according to claim 1, characterized in that: The method further comprises: Based on the second connection module, a first control instruction sent by the control device is received, and the robot is controlled to execute the action indicated by the first control instruction, wherein the first control instruction is generated based on a user instruction input by a user on the control device.

3. The connection method according to claim 1, characterized in that: The method further comprises: Based on the second connection module, the WPAN broadcast in the robot's environment is received, and based on the first connection module, the control device corresponding to the WPAN broadcast in the robot's environment is sent to the auxiliary device, so that the auxiliary device presents a connection selection interface, wherein the connection selection interface is used to present the received control device, and the selection interface is used to receive the connection instruction input by the user.

4. The connection method according to claim 1, characterized in that: The method further comprises: receiving a second control instruction sent by the auxiliary device based on the first connection module, and controlling the robot to perform an action indicated by the second control instruction, wherein the second control instruction is generated based on a user instruction input by a user on the auxiliary device; and / or, The preset data is sent to the auxiliary device based on the first connection module, so that the auxiliary device presents the preset data to the user.

5. The connection method according to claim 1, characterized in that: The method further comprises: Based on the third connection module, establishing a connection based on the local area network LAN with the auxiliary device; Based on the third connection module, the preset data is sent to the auxiliary device, so that the auxiliary device presents the preset data to the user.

6. The connection method according to claim 5, characterized in that: The method further comprises: In response to the connection quality between the third connection module and the currently connected LAN being less than a first threshold, sending a first signal to the auxiliary device so that the auxiliary device sends at least one available LAN to the first connection module, wherein the connection quality between the available LAN and the auxiliary device is greater than or equal to a second threshold; An available LAN among the at least one available LAN is connected based on the third connection module, wherein a connection quality between the third connection module and the connected available LAN is greater than or equal to the first threshold.

7. The connection method according to claim 6, characterized in that: The method further comprises: sending a second signal to the auxiliary device to connect the auxiliary device to the LAN consistent with the third connection module; and / or, The sending of the first signal to the auxiliary device comprises: Based on the first connection module, a first signal is sent to the auxiliary device.

8. The connection method according to claim 6, characterized in that: In response to the connection quality between the third connection module and the currently connected 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 third connection module and the local area network LAN being less than a first threshold, determining whether there is a LAN in the LAN list whose connection quality with the third connection module is greater than or equal to the first threshold, wherein the LAN list includes at least one LAN; or In response to the presence of a LAN in the LAN list whose connection quality with the third connection module is greater than or equal to the first threshold, connecting the LAN whose connection quality with the third connection module is greater than or equal to the first threshold; or, In response to the LAN list not having a LAN whose connection quality with the third connection module is greater than or equal to the first threshold, a first signal is sent to the auxiliary device so that the auxiliary device sends at least one available LAN not in the LAN list to the third connection module.

9. The connection method according to claim 8, characterized in that: The WPAN includes a Bluetooth connection, and / or the method further includes: The LAN list is updated according to the at least one available LAN that is not present in the LAN list.

10. A connection device, characterized in that: The device comprises: a first connection establishing module, configured to establish a connection with the auxiliary device based on a first connection module, wherein the first connection module is configured to broadcast based on a wireless personal area network WPAN and establish a connection based on the WPAN with the auxiliary device in response to a connection signal sent by the auxiliary device; A second connection establishing module, configured to establish a connection with the control device based on the second connection module, wherein the second connection module is configured to receive a broadcast from the control device based on the WPAN, and send a connection signal to the control device to establish a connection with the control device based on the WPAN; The second connection establishing module is used to establish a connection with the control device based on the second connection module, and is used to: Based on the first connection module, a connection instruction sent by the auxiliary device is received, and based on the second connection module, the control device indicated by the connection instruction is connected.

11. 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.

12. 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.

13. 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.