External equipment and robot

By dynamically configuring the serial port communication mode in the robot's external equipment, the complex assembly problem caused by the fixed serial port pins is solved, and the effect of convenient assembly is achieved.

CN221622230UActive Publication Date: 2024-08-30UBTECH ROBOTICS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323633167.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2024-08-30
Estimated Expiration
2033-12-28

AI Technical Summary

Technical Problem

The sending pins and receiving pins of the serial port in existing robots are fixed and are easily mixed during assembly, making the assembly complex and time-consuming. Physical marking is required to avoid errors.

Method used

By implementing dynamic configuration of the serial port communication mode in external devices, using the control module to configure the input and output ports as receiving or transmitting pins, and recording identification information through registers, flexible configuration of each serial port is achieved and physical marking is avoided.

Benefits of technology

It achieves convenient assembly, reduces the possibility of assembly errors, and improves assembly efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221622230U
    Figure CN221622230U
Patent Text Reader

Abstract

The utility model relates to the technical field of robots, and discloses an external device and a robot, the external device dynamically configures at least one pair of input and output ports according to a serial port communication mode, the external device comprises: a first group of input and output ports including a first input and output port and a second input and output port; the control module is used for configuring the first input / output port which firstly receives the serial port communication signal sent by the first object as a receiving pin of the first serial port; and the control module is also used for configuring the second input / output port as a sending pin of the first serial port, which is matched with the receiving pin of the first serial port for use. According to the invention, the input / output port of each serial port can be configured as the sending pin and the receiving pin as required.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and in particular to an external device and a robot. Background Art

[0002] In current robots, in order to facilitate iterative updates or convenient maintenance, the main control and various external devices are two separate functional modules that require an interface to connect them. Due to the advantages of serial ports such as strong anti-interference and long transmission distance, most robots currently use serial ports as the communication interface between the main control and external devices and between external devices.

[0003] When using the serial port for communication, TX (transmit pin) and RX (receive pin) are required to connect and communicate, and both the transmit pin and the receive pin are configured, that is, the line sequence needs to be configured on the board side during circuit design, and for robots, their external devices usually need to be cascaded, so the pin sequence of the two serial ports needs to be set differently, and the ports need to be marked on the structure to prevent mixing. The assembly process is complicated and time-consuming and labor-intensive. Utility Model Content

[0004] In view of this, an embodiment of the present application provides an external device and a robot, which can avoid the problem in the prior art that the sending pin and the receiving pin are fixed, and in order to prevent assembly errors during assembly, the receiving pin and the sending pin of each serial port need to be physically marked.

[0005] In a first aspect, an embodiment of the present application provides an external device, wherein the external device dynamically configures at least one group of input and output ports according to a serial communication mode, and the external device includes:

[0006] A first group of input and output ports, including a first input and output port and a second input and output port;

[0007] A control module, configured to configure the first input / output port that first receives the serial communication signal sent by the first object as a receiving pin of the first serial port;

[0008] The control module is further used to configure the second input / output port as a sending pin of the first serial port used in conjunction with the receiving pin of the first serial port.

[0009] In some embodiments, the external device further comprises a second set of input and output ports for interfacing with a second object;

[0010] The second group of input and output ports includes a third input and output port and a fourth input and output port;

[0011] The control module is used to configure one of the third input / output port and the fourth input / output port as a sending pin of the second serial port, and the other one as a receiving pin of the second serial port used in conjunction with the sending pin of the second serial port.

[0012] In some embodiments, the first object is a main control device or a previous external device connected to the external device; and the second object is a subsequent external device connected to the external device.

[0013] In some embodiments, further comprising a register;

[0014] The register is used to record the mark of the first identification performed by the control module on the corresponding input and output port of the corresponding serial port when the input and output port is configured as the receiving pin;

[0015] The register is further used for recording a mark of a second identification performed by the control module on a corresponding input / output port of a corresponding serial port when the input / output port is configured as the sending pin.

[0016] In some embodiments, after disconnecting from the first object or the second object, the control module deletes the first identifier and the second identifier of the corresponding input / output port to restore the corresponding input / output port to a dynamic configuration state.

[0017] In some embodiments, it further includes a power signal pin and a ground signal pin arranged corresponding to each group of input and output ports;

[0018] The power signal pin, the ground signal pin, and the receiving pin and sending pin of the corresponding serial port form a group of serial port communication interfaces.

[0019] In some embodiments, the external device is a sensor, a motor, or a servo.

[0020] In some embodiments, the sensor includes one or more combinations of a distance detection sensor, a touch sensor, a torque sensor, and a visual sensor.

[0021] In a second aspect, an embodiment of the present application provides a robot, comprising a main control device and a preset number of external devices as described above;

[0022] The external device is connected to the main control device through their respective serial ports and a serial port line or a switching module between the two serial ports.

[0023] In some embodiments, the external device includes at least two sets of serial ports;

[0024] A group of serial ports of the external device is connected to the serial port of the main control device or the previous level external device through a serial port line or a conversion module between the two serial ports, and the remaining serial ports of the external device are connected to the serial port of the next level external device through a serial port line or a conversion module between the two serial ports to achieve cascading of multiple external devices.

[0025] The embodiments of the present application have the following beneficial effects: the serial port in the external device of the present application can realize free configuration of the sending pin and receiving pin of each serial port through dynamic configuration, thereby avoiding the problem in the prior art that the sending pin and the receiving pin are fixed, and in order to prevent assembly errors during assembly, the receiving pin and the sending pin of each serial port need to be physically marked. Therefore, compared with the prior art, the present application can achieve the effect of convenient assembly. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 A first structural schematic diagram of an external device according to an embodiment of the present application is shown;

[0028] Figure 2 A second structural schematic diagram of an external device according to an embodiment of the present application is shown;

[0029] Figure 3 A first structural schematic diagram of a robot according to an embodiment of the present application is shown;

[0030] Figure 4 A second structural schematic diagram of the robot according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0032] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0033] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0034] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0035] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0036] Since the sending pins and receiving pins in the serial port are configured in the prior art, in order to facilitate plugging, each pin needs to be marked on the communication interface to prevent mixing, which inevitably increases the workload. Based on this, the present application proposes an external device and a robot, which can configure the input and output ports of the serial port according to actual needs to facilitate assembly.

[0037] The external device structure is described below in conjunction with some specific embodiments.

[0038] Example 1

[0039] Figure 1 A first structural schematic diagram of an external device according to an embodiment of the present application is shown.

[0040] Exemplarily, the external device 100 dynamically configures at least one group of input and output ports according to the serial port communication mode. It can be understood that the same group of input and output ports is located in the same serial port.

[0041] Figure 1 The external device in the embodiment includes a first group of input / output ports, wherein the first group of input / output ports includes a first input / output port IO1 and a second input / output port IO2; further, the external device also includes a control module.

[0042] The control module is used to configure the first input / output port IO1 that first receives the serial communication signal sent by the first object as a receiving pin of the first serial port 300, and to configure the second input / output port IO2 as a sending pin of the first serial port 300 used in conjunction with the receiving pin of the first serial port 300.

[0043] Specifically, a group of input and output ports in this embodiment are set to the web interrupt mode before receiving the serial communication signal sent by the first object. When the first object sends the serial communication signal to the current external device, the control module monitors the number of web interrupt requests triggered by the pair of input and output ports in real time. If the number of web interrupt requests triggered by one of the input and output ports exceeds the preset number, it means that the input and output port first receives the serial communication signal sent by the first object, and the input and output port is used as the first input and output port IO1. The control module configures the first input and output port IO1 as the receiving pin of the first serial port 300, and configures the second input and output port IO2 as the sending pin of the first serial port 300 used in conjunction with the receiving pin of the first serial port 300.

[0044] In this embodiment, the first object is a main control device 500 or a previous-level external device 100 connected to an external device. If the first object is a main control, it means that the external device 100 is directly connected to the main control device 500. If the first object is a previous-level external device 100, it means that the current external device is cascaded with the previous-level external device.

[0045] Further, in this embodiment, when configuring the first input / output port IO1 and the second input / output port IO2, if the first input / output port IO1 is configured as the receiving pin of the first serial port 300, the control module performs a first identification mark on the first input / output port IO1 and a second identification mark on the second input / output port IO2, and then saves the marking information to the register so as to check the configuration of the input / output port in the serial port. The first identification and the second identification can be binary identifications, such as the first identification can be 1 and the second identification can be 0.

[0046] When the external device 100 is disconnected from the first object, the control module deletes the first identifier and the second identifier corresponding to the first input / output port IO1 and the second input / output port IO2 to restore the input / output ports of the corresponding serial ports to a dynamic configuration state.

[0047] The serial port in the external device of the present application configures a group of input and output ports as sending pins and receiving pins through dynamic configuration, thereby realizing on-demand configuration of the sending pins and receiving pins. This can avoid the problem in the prior art that the sending pins and receiving pins are fixed, and in order to prevent assembly errors during assembly, the receiving pins and sending pins of each serial port need to be physically marked. Therefore, compared with the prior art, the present application can achieve the effect of convenient assembly.

[0048] Example 2

[0049] Figure 2 A second structural schematic diagram of an external device according to an embodiment of the present application is shown.

[0050] like Figure 2 As shown, based on Example 1, the external device 100 in Example 2 also includes a second group of input and output ports for connecting to the second object. It can be understood that the external device 100 includes two groups of input and output ports, the first group of input and output ports is connected to the first object, and the second group of input and output ports is connected to the second object.

[0051] The second group of input and output ports includes a third input and output port IO3 and a fourth input and output port IO4; further, the control module 200 is also used to configure the third input and output port IO3 and the fourth input and output port IO4; wherein, one of the third input and output port IO3 and the fourth input and output port IO4 is configured as a sending pin of the second serial port, and the other input and output port is configured as a receiving pin of the second serial port 400 used in conjunction with the sending pin of the second serial port.

[0052] Specifically, the third input / output port IO3 and the fourth input / output port IO4 of the second serial port 400 can be configured when the current external device 100 sends information to the next-level external device 100, or can be configured simultaneously when the first input / output port IO1 and the second input / output port IO2 are configured.

[0053] If configuration is performed when the current external device 100 sends information to the next-level external device 100, if the control module configures the third input-output port IO3 as the sending pin of the second serial port 400, then the fourth input-output port IO4 is configured as the receiving pin of the second serial port 400 used in conjunction with the sending pin of the second serial port 400. Similarly, if the control module 200 configures the fourth input-output port IO4 as the sending pin of the second serial port 400, then the third input-output port IO3 is configured as the receiving pin of the second serial port 400 used in conjunction with the sending pin of the second serial port 400.

[0054] If the first input / output port IO1 and the second input / output port IO2 are configured at the same time, any one of the third input / output port IO3 and the fourth input / output port IO4 can be configured as the sending pin of the second serial port 400, and the other can be configured as the receiving pin of the second serial port 400. For the convenience of detection, the configuration can also be performed according to the first input / output port IO1 and the second input / output situation. For example, if the first input / output port IO1 is configured as the receiving pin of the first serial port 300 and the second input / output port IO2 is configured as the sending pin of the first serial port 300, the third input / output port IO3 opposite to the first input / output port IO1 is configured as the sending pin of the second serial port 400, and the third input / output port IO2 opposite to the second input / output port IO4 is configured as the receiving pin of the second serial port 400.

[0055] In this embodiment, as in Embodiment 1, the first object is the main control device 500 or the previous level external device 100. If the first object is the main control device 500, it means that the external device 100 is directly connected to the main control device 500. If the first object is the previous level external device 100, it means that the current external device 100 is cascaded with the previous level external device 100. The second object is the next level external device 100, that is, the external device 100 is cascaded with the next level external device 100.

[0056] Further, in this embodiment, when configuring the input / output port, if the input / output port is configured as a receiving pin, the control module 200 performs a first identification mark on the corresponding input / output port of the corresponding serial port, and saves the marking information in the register; if the input / output port is configured as a sending pin, the control module 200 performs a second identification mark on the corresponding input / output port of the corresponding serial port, and saves the marking information in the register, so as to view the configuration of the input / output port in each serial port. The first identification and the second identification can be binary identifications, such as the first identification can be 1, and the second identification can be 0.

[0057] Furthermore, when the current external device 100 is disconnected from the first object or the second object, the control module 200 deletes the first identifier and the second identifier of the corresponding serial port, so that the input and output ports of the corresponding serial port are restored to the dynamic configuration state.

[0058] Furthermore, each serial port in the external device 100 in Embodiment 1 and Embodiment 2 includes not only a group of input and output ports, but also a power signal pin and a ground signal pin. Figure 1 and Figure 2 The VCC pin and the ground pin are as follows Figure 1 and Figure 2The GND pin in the circuit, where the VCC pin is mainly used to detect the input voltage.

[0059] Furthermore, the external device 100 in Embodiment 1 and Embodiment 2 is a sensor, a motor or a steering gear. Specifically, the sensor may include one or more combinations of a distance detection sensor, a touch sensor, a torque sensor, a visual sensor, etc. Further, the distance detection sensor may be an infrared sensor, a laser radar, etc.; the touch sensor may be a capacitive touch screen, etc.; the visual sensor may be a camera device, etc.

[0060] The serial port in the external device of the present application can realize that the input and output ports of each serial port can be configured as a sending pin and a receiving pin as needed through dynamic configuration, thereby avoiding the problem in the prior art that the sending pin and the receiving pin are fixed, and in order to prevent assembly errors during assembly, the receiving pin and the sending pin of each serial port need to be physically marked. Therefore, compared with the prior art, the present application can achieve the effect of convenient assembly.

[0061] Example 3

[0062] A robot includes a main control device 500 and a preset number of external devices 100 in the above embodiments, wherein the robot can be various types of robots, such as an industrial robot, an educational robot, a medical robot, a nursing robot, etc.

[0063] Among them, the main control device 500 includes a main controller 600 and a serial port for connecting to an external device 100. The main control device 500 may include multiple serial ports, each serial port has the same structure and function, and the sending pin and receiving pin of the serial port in the main control device 500 are configured.

[0064] Since each serial port in the main control device 500 is the same, the following description is based on the assumption that only one serial port is set in the main control device 500.

[0065] Figure 3 A schematic diagram of the robot structure is shown in which the external device 100 only includes one set of serial ports.

[0066] The external device 100 and the main control device 500 are connected and communicated through their respective serial ports and a serial port line or a switching module between the two serial ports.

[0067] When the main control device 500 sends a serial communication signal to the external device 100, the first input / output port of the serial port of the external device 100 that first receives the serial communication signal is configured as the receiving pin of the serial port; the second input / output port of the serial port is configured as the sending pin of the serial port.

[0068] When a serial port line is used for connection, after the TX pin and the RX pin of the external device 100 are configured, a bidirectional channel can be formed between the main control device 500 and the external device 100, and data can be directly transmitted between the two serial ports.

[0069] When a transfer module is used for connection, after the TX pin and the RX pin of the external device 100 are configured, data is transmitted between the main control device 500 and the external device 100 through the transfer module.

[0070] Figure 4 A schematic diagram of the robot structure in which the external device 100 includes two sets of serial ports is shown.

[0071] In this way, the cascade of the external device 100 can be realized, that is, one group of serial ports of the external device 100 is connected to the main control device 500, and the other group of serial ports is connected to the next-level external device 100. Of course, both groups of serial ports of the external device 100 are connected to the external device 100, that is, one group of serial ports in the current external device 100 is connected to the previous-level external device 100, and the other group of serial ports is connected to the next-level external device 100. Through this setting, multi-level cascade can be realized.

[0072] During cascading, the serial ports of two adjacent external devices 100 can also be connected using a serial port cable or a conversion module to perform data transmission.

[0073] It can be understood that the external device 100 can also set a number of serial port groups greater than two groups, such as the external device 100 can have three groups of serial ports. If the serial port in the external device 100 is connected to the previous level external device, the configuration of the sending pin and the receiving pin in the serial port is based on the input and output port that first receives the serial communication signal of the previous level external device is configured as the receiving pin, and the input and output port used in conjunction with the receiving pin is configured as the sending pin. If the serial port of the external device 100 is used to connect to the next level external device, the serial port can be configured by itself through the control module, with one input and output port being the sending pin and the other input and output port being the receiving pin, and there is no need to determine based on the data received from the previous level external device.

[0074] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0075] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0076] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0077] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. An external device, characterized in that: The external device dynamically configures at least one group of input and output ports according to the serial communication mode, and the external device includes: A first group of input and output ports, including a first input and output port and a second input and output port; A control module, configured to configure the first input / output port that first receives the serial communication signal sent by the first object as a receiving pin of the first serial port; The control module is further used to configure the second input / output port as a sending pin of the first serial port used in conjunction with a receiving pin of the first serial port.

2. The external device according to claim 1, characterized in that: The external device also includes a second set of input and output ports for docking with a second object; The second group of input and output ports includes a third input and output port and a fourth input and output port; The control module is used to configure one of the third input / output port and the fourth input / output port as a sending pin of the second serial port, and the other one as a receiving pin of the second serial port used in conjunction with the sending pin of the second serial port.

3. The external device according to claim 2, characterized in that: The first object is a main control device or a previous level external device connected to the external device; The second object is a subsequent external device connected to the external device.

4. The external device according to claim 3, characterized in that: It also includes registers; The register is used to record the mark of the first identification performed by the control module on the corresponding input and output port of the corresponding serial port when the input and output port is configured as the receiving pin; The register is further used for recording a mark of a second identification performed by the control module on a corresponding input / output port of a corresponding serial port when the input / output port is configured as the sending pin.

5. The external device according to claim 4, characterized in that: After disconnecting from the first object or the second object, the control module is used to delete the first identifier and the second identifier of the corresponding input / output port, so that the corresponding input / output port is restored to a dynamic configuration state.

6. The external device according to claim 2, characterized in that: Also included are power signal pins and ground signal pins corresponding to each group of input and output ports; The power signal pin, the ground signal pin, and the receiving pin and sending pin of the corresponding serial port form a group of serial port communication interfaces.

7. The external device according to any one of claims 1 to 6, characterized in that: The external device is a sensor, a motor, or a steering gear.

8. The external device according to claim 7, characterized in that: The sensor includes one or more combinations of a distance detection sensor, a touch sensor, a torque sensor, and a visual sensor.

9. A robot, characterized in that: comprising a main control device and a preset number of external devices according to any one of claims 1 to 8; The external device is connected to the main control device through their respective serial ports and a serial port line or a switching module between the two serial ports.

10. The robot according to claim 9, characterized in that: The external device includes at least two groups of serial ports; A group of serial ports of the external device is connected to the serial port of the main control device or the previous level external device through a serial port line or a conversion module between the two serial ports, and the remaining serial ports of the external device are connected to the serial port of the next level external device through a serial port line or a conversion module between the two serial ports to achieve cascading of multiple external devices.