[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2018102981A1 - Full-duplex and half-duplex serial port signal conversion circuit, and robot - Google Patents

Full-duplex and half-duplex serial port signal conversion circuit, and robot Download PDF

Info

Publication number
WO2018102981A1
WO2018102981A1 PCT/CN2016/108660 CN2016108660W WO2018102981A1 WO 2018102981 A1 WO2018102981 A1 WO 2018102981A1 CN 2016108660 W CN2016108660 W CN 2016108660W WO 2018102981 A1 WO2018102981 A1 WO 2018102981A1
Authority
WO
WIPO (PCT)
Prior art keywords
duplex
signal
full
logic gate
buffer
Prior art date
Application number
PCT/CN2016/108660
Other languages
French (fr)
Chinese (zh)
Inventor
郝磊
Original Assignee
吉蒂机器人私人有限公司
郝磊
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 吉蒂机器人私人有限公司, 郝磊 filed Critical 吉蒂机器人私人有限公司
Priority to PCT/CN2016/108660 priority Critical patent/WO2018102981A1/en
Priority to CN201680086974.3A priority patent/CN109313621B/en
Publication of WO2018102981A1 publication Critical patent/WO2018102981A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/14Two-way operation using the same type of signal, i.e. duplex

Definitions

  • the present application relates to electronic circuit technology, for example, to a full-duplex and half-duplex serial port signal conversion circuit and a robot.
  • the digital servo motor uses a half-duplex serial port signal to connect multiple motors in series.
  • the control signal of the digital servo motor is Half-duplex serial signal.
  • the full-duplex serial port signal is usually changed into a half-duplex serial port signal, so that the control line of the digital servo motor has both a transmitting signal and an accepting signal, but they are time-sharing. produced.
  • the full-duplex and half-duplex serial port signal conversion circuits in the related art use software to control the transmission and reception of signals, and the reliability of serial port signal conversion will be affected by software programs, and program development will change the design cycle. Long, increased costs due to increased control signals.
  • the application provides a full-duplex and half-duplex serial port signal conversion circuit and a robot, so as to realize hardware-based conversion of a full-duplex serial port signal and a half-duplex serial port signal.
  • the embodiment of the present application provides a full-duplex and a half-duplex serial port signal conversion circuit, including: a first logic gate branch and a second logic gate branch; wherein
  • the first logic gate branch is connected between the full-duplex signal output end and the half-duplex signal transceiver end, and is used for transmitting the logic signal outputted by the full-duplex signal output end to the half-duplex signal transceiver end, and
  • the enable signal generated by the logic signal outputted from the duplex signal output is output from the enable signal output end of the first logic gate branch to the enable output end of the second logic gate branch;
  • the second logic gate branch is connected between the full-duplex signal receiving end and the half-duplex signal transceiver end, and is configured to be turned on according to an enable signal received by the enable output end of the second logic gate branch.
  • the second logic gate branch is disconnected, and when the second logic gate branch is turned on, the logic signal outputted by the half duplex signal transceiver end is transmitted to the full duplex signal receiving end.
  • the first logic gate branch includes: a first buffer, a second buffer, and an inverter; wherein
  • the input end of the first buffer is connected to the full duplex signal output end, the output end of the first buffer is connected to the input end of the second buffer, and the output end of the first buffer is enabled as the first logic gate branch Signal output
  • the output of the second buffer is coupled to the half-duplex signal transceiver
  • the input of the inverter is coupled to the output of the first buffer, and the output of the inverter is coupled to the enable output of the second buffer.
  • the second logic gate branch includes: a third buffer; wherein
  • the input end of the third buffer is connected to the half-duplex signal transceiver end, the output end of the third buffer is connected to the full-duplex signal receiving end, and the enable output end of the third buffer is used as the second logic gate branch. Can output.
  • the embodiment of the present application further provides a robot, including a CPU having a full-duplex communication serial port, at least one digital servo motor having a half-duplex communication serial port, and any of the methods provided by the embodiments of the present application.
  • a full-duplex and a half-duplex serial port signal conversion circuit wherein the CPU is connected to the digital servo motor through the full-duplex and half-duplex serial port signal conversion circuit provided by the first aspect, and the full-duplex
  • the half-duplex serial port signal conversion circuit implements bidirectional transmission of communication signals between the CPU and the digital servo motor.
  • the embodiment of the present application completes the conversion of the full-duplex signal and the half-duplex signal by hardware, and solves the problem of using the software to control the signal transmission and reception, the reliability is affected by the software program, and the design cycle caused by the program development is prolonged, and the cost is increased. Can improve reliability and responsiveness.
  • FIG. 1 is a schematic structural diagram of a full-duplex and half-duplex serial port signal conversion circuit in Embodiment 1 of the present application;
  • FIG. 2 is a schematic structural diagram of a robot in Embodiment 2 of the present application.
  • the full-duplex and half-duplex serial port signal conversion circuit 1 includes: a first logic gate branch 10 and a second logic gate branch 20;
  • the first logic gate branch 10 is connected between the full-duplex signal output terminal 310 and the half-duplex signal transceiver terminal 410 for transmitting the logic signal output by the full-duplex signal output terminal 310 to the half-duplex signal transceiver terminal 410.
  • an enable signal generated by the logic signal output from the full-duplex signal output terminal 310 is output from the enable signal output terminal 110 of the first logic gate branch 10 to the enable output terminal 210 of the second logic gate branch 20. ;
  • the second logic gate branch 20 is connected between the full duplex signal receiving terminal 320 and the half duplex signal transceiver terminal 410 for receiving the enable signal according to the enable output terminal 210 of the second logic gate branch 20, Correspondingly, the second logic gate branch 20 is turned on or off. When the second logic gate branch 20 is turned on, the logic signal outputted by the half-duplex signal transceiver terminal 410 is transmitted to the full-duplex signal receiving terminal 320.
  • the full duplex signal output terminal 310 of the first microprocessor 3 is used to transmit a communication signal
  • the full duplex signal receiving terminal 320 is used to receive a communication signal
  • the half duplex signal of the second microprocessor 4 is shown.
  • the transceiver terminal 410 is configured to send and receive communication signals. It can be understood that the first microprocessor 3 and the second microprocessor 4 shown in FIG. 1 are only examples and are not limiting.
  • the full-duplex and half-duplex serial port signal conversion circuit generates intermediate control signals by pure hardware according to the characteristics of the full-duplex serial port signal and the half-duplex serial port signal, thereby realizing bidirectional transmission of signals.
  • the first logic gate branch 10 includes: a first buffer 101, a second buffer 102, and an inverter 103;
  • the input end of the first buffer 101 is connected to the full-duplex signal output terminal 310, the output end of the first buffer 101 is connected to the input end of the second buffer 102, and the output end of the first buffer 101 is used as the first logic gate.
  • the output of the second buffer 102 is connected to the half-duplex signal transceiver 410;
  • the input of the inverter 103 is connected to the output of the first buffer 101, and the output of the inverter 103 is connected to the enable output of the second buffer 102.
  • the first buffer 101 is a conventional buffer gate, and the output logic is the same as the input logic, and has no logic conversion function.
  • the second buffer 102 is a three-state buffer, and the three-state output is controlled by the enable output.
  • the enable output is valid, the device implements a normal logic state output (logic 0, logic 1).
  • the enable input is invalid, the output is output.
  • Output logic of inverter 103 Contrary to the input logic, that is, the inverter input logic 0, then output logic 1; input logic 1, then output logic 0.
  • the second logic gate branch 20 includes: a third buffer 201, where
  • the input end of the third buffer 201 is connected to the half-duplex signal receiving end 410, the output end of the third buffer 201 is connected to the full-duplex signal receiving end 320, and the enabled output end of the third buffer 201 is used as the second logic.
  • the enable output 210 of the gate leg 20 is provided.
  • the third buffer 201 is a three-state buffer.
  • the full duplex signal output terminal 310 transmits the signal "1"
  • the first buffer 101 outputs "1”
  • the inverter 103 outputs "0" to the enable output terminal of the second buffer 102, so that the second buffer 102 is disabled and the output of the second buffer 102 is pulled up to transmit the "1" transmitted by the full-duplex signal output 310 to the half-duplex signal transceiver 410.
  • the 0' to half-duplex signal transceiver terminal 410 transmits the "0" transmitted by the full-duplex signal output terminal 310 to the half-duplex signal transceiver terminal 410.
  • the half-duplex signal transmitting and receiving terminal 410 transmits a signal to the full-duplex signal receiving terminal 320
  • the full-duplex signal output terminal 310 outputs "1"
  • the first buffer 101 outputs "1”
  • the third buffer 201 is turned on.
  • the signal sent by the half duplex signal transceiver terminal 410 is transmitted to the full duplex signal receiving terminal 320.
  • the technical solution of the embodiment solves the conversion of the full-duplex signal and the half-duplex signal by hardware, and solves the problem of using the software to control the transmission and reception of the signal, the reliability is affected by the software program, and the design cycle caused by the program development is prolonged and increased. The problem of cost, improve reliability, and respond quickly.
  • the robot R1 includes a CPU (Central Processing Unit) 5 having a full-duplex communication serial port and at least one digital half-duplex communication serial port.
  • the servo motor 6, the CPU 5 is connected by the full-duplex and half-duplex serial signal conversion circuit 1 and the digital servo motor 6 provided in the first embodiment, and realizes the CPU 5 and the digital through the full-duplex and half-duplex serial port signal conversion circuit 1. Bidirectional transmission of communication signals between servo motors 6.
  • the robot R1 may be a humanoid robot, and may include a CPU with a full-duplex communication serial port, and a plurality of digital servo motors with a half-duplex communication serial port, and the CPU passes the full-duplex communication serial port to the digital servo.
  • the motor sends a command and receives a feedback signal, and the digital servo motor receives the command sent by the CPU through the half-duplex communication serial port, and the CPU The feedback signal is sent, so that the digital servo motor can drive the limb of the humanoid robot to perform corresponding actions according to the instruction issued by the CPU.
  • the robot R1 has only one digital servo motor 6 as an example, and the CPU 5 is connected through the full-duplex and half-duplex serial port signal conversion circuit 1 and the digital servo motor 6.
  • the full-duplex signal output of the CPU 5 is selected.
  • the terminal 510 is connected to the first logic gate branch 10 of the full-duplex and half-duplex serial port signal conversion circuit 1 and the half-duplex signal transceiver terminal 610 of the digital servo motor 6.
  • the full-duplex signal receiving end 520 of the CPU 5 passes
  • the second logic gate branch 20 in the full-duplex and half-duplex serial port signal conversion circuit 1 is connected to the half-duplex signal transceiver terminal 610 of the digital servo motor 6.
  • the communication process of the CPU 5 and the digital servo motor 6 is as follows. A technical solution provided.
  • the embodiment of the present application provides a full-duplex and half-duplex serial port signal conversion circuit and a robot, which realizes conversion of a full-duplex signal and a half-duplex signal by hardware, thereby having high reliability and rapid response.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Manipulator (AREA)
  • Bidirectional Digital Transmission (AREA)

Abstract

A full-duplex and half-duplex serial port signal conversion circuit, and a robot, wherein said circuit comprises: a first logic gate branch circuit and a second logic gate branch circuit. The first logic gate branch circuit is connected between a full-duplex signal output terminal and a half-duplex signal transceiver terminal, and is used to transmit a logic signal outputted by the full-duplex signal output terminal to the half-duplex signal transceiver terminal, as well as to output an enabling signal generated according to the logic signal outputted by the full-duplex signal output terminal from an enabling signal output terminal of the first logic gate branch circuit to an enabling output terminal of the second logic gate branch circuit; the second logic gate branch circuit is connected between a full-duplex signal receiving terminal and the half-duplex signal transceiver terminal, and is used to correspondingly switch the second logic gate branch circuit on or off according to the enabling signal received by the enabling output terminal of the second logic gate branch circuit, and when the second logic gate branch circuit is switched on, the logic signal outputted by the half-duplex signal transceiver terminal is transmitted to the full-duplex signal receiving terminal.

Description

全双工与半双工串口信号转换电路及机器人Full-duplex and half-duplex serial signal conversion circuit and robot 技术领域Technical field
本申请涉及电子电路技术,例如涉及一种全双工与半双工串口信号转换电路及机器人。The present application relates to electronic circuit technology, for example, to a full-duplex and half-duplex serial port signal conversion circuit and a robot.
背景技术Background technique
近年来,机器人的应用越来越广泛,相应出现了各种各样机器人马达,其中,数字式伺服电机用半双工的串口信号可以把多个马达串联起来,数字式伺服电机的控制信号为半双工的串口信号。为了便于数字式伺服电机能串联起来,通常把全双工的串口信号变为半双工的串口信号,这样数字式伺服电机的控制线上既有发送信号又有接受信号,只是它们是分时产生的。In recent years, the application of robots has become more and more extensive, and various robot motors have appeared accordingly. Among them, the digital servo motor uses a half-duplex serial port signal to connect multiple motors in series. The control signal of the digital servo motor is Half-duplex serial signal. In order to facilitate the serial connection of the digital servo motor, the full-duplex serial port signal is usually changed into a half-duplex serial port signal, so that the control line of the digital servo motor has both a transmitting signal and an accepting signal, but they are time-sharing. produced.
相关技术中的全双工与半双工串口信号转换电路,是用软件来控制信号的发送和接受,串口信号转换的可靠性,将会受到软件程序的影响,同时程序开发会使设计周期变长,因增加了控制信号从而增加了成本。The full-duplex and half-duplex serial port signal conversion circuits in the related art use software to control the transmission and reception of signals, and the reliability of serial port signal conversion will be affected by software programs, and program development will change the design cycle. Long, increased costs due to increased control signals.
发明内容Summary of the invention
本申请提供一种全双工与半双工串口信号转换电路及机器人,以实现依靠硬件来完成全双工的串口信号与半双工的串口信号的转换。The application provides a full-duplex and half-duplex serial port signal conversion circuit and a robot, so as to realize hardware-based conversion of a full-duplex serial port signal and a half-duplex serial port signal.
第一方面,本申请实施例提供了一种全双工与半双工串口信号转换电路,包括:第一逻辑门支路和第二逻辑门支路;其中,In a first aspect, the embodiment of the present application provides a full-duplex and a half-duplex serial port signal conversion circuit, including: a first logic gate branch and a second logic gate branch; wherein
第一逻辑门支路连接在全双工信号输出端和半双工信号收发端之间,用于将全双工信号输出端输出的逻辑信号传输至半双工信号收发端,以及将根据全双工信号输出端输出的逻辑信号生成的使能信号由第一逻辑门支路的使能信号输出端输出至第二逻辑门支路的使能输出端;以及The first logic gate branch is connected between the full-duplex signal output end and the half-duplex signal transceiver end, and is used for transmitting the logic signal outputted by the full-duplex signal output end to the half-duplex signal transceiver end, and The enable signal generated by the logic signal outputted from the duplex signal output is output from the enable signal output end of the first logic gate branch to the enable output end of the second logic gate branch;
第二逻辑门支路连接在全双工信号接收端和半双工信号收发端之间,用于根据第二逻辑门支路的使能输出端接收到的使能信号,相应地导通或断路第二逻辑门支路,当第二逻辑门支路导通时,将半双工信号收发端输出的逻辑信号传输至全双工信号接收端。The second logic gate branch is connected between the full-duplex signal receiving end and the half-duplex signal transceiver end, and is configured to be turned on according to an enable signal received by the enable output end of the second logic gate branch. The second logic gate branch is disconnected, and when the second logic gate branch is turned on, the logic signal outputted by the half duplex signal transceiver end is transmitted to the full duplex signal receiving end.
可选的,第一逻辑门支路包括:第一缓冲器,第二缓冲器和反向器;其中, Optionally, the first logic gate branch includes: a first buffer, a second buffer, and an inverter; wherein
第一缓冲器的输入端与全双工信号输出端连接,第一缓冲器的输出端与第二缓冲器的输入端连接,第一缓冲器的输出端作为第一逻辑门支路的使能信号输出端;The input end of the first buffer is connected to the full duplex signal output end, the output end of the first buffer is connected to the input end of the second buffer, and the output end of the first buffer is enabled as the first logic gate branch Signal output
第二缓冲器的输出端与半双工信号收发端连接;以及The output of the second buffer is coupled to the half-duplex signal transceiver;
反相器的输入端与第一缓冲器的输出端连接,反相器的输出端与第二缓冲器的使能输出端连接。The input of the inverter is coupled to the output of the first buffer, and the output of the inverter is coupled to the enable output of the second buffer.
可选的,第二逻辑门支路包括:第三缓冲器;其中,Optionally, the second logic gate branch includes: a third buffer; wherein
第三缓冲器的输入端与半双工信号收发端连接,第三缓冲器的输出端与全双工信号接收端连接,第三缓冲器的使能输出端作为第二逻辑门支路的使能输出端。The input end of the third buffer is connected to the half-duplex signal transceiver end, the output end of the third buffer is connected to the full-duplex signal receiving end, and the enable output end of the third buffer is used as the second logic gate branch. Can output.
第二方面,本申请实施例还提供了一种机器人,包括具备全双工通信串口的CPU,至少一个具备半双工通信串口的数字式伺服电机以及本申请实施例提供的任一所述的全双工与半双工串口信号转换电路,其中,所述CPU通过第一方面提供的全双工与半双工串口信号转换电路和所述数字式伺服电机连接,通过所述全双工与半双工串口信号转换电路实现所述CPU和所述数字式伺服电机之间通信信号的双向传输。In a second aspect, the embodiment of the present application further provides a robot, including a CPU having a full-duplex communication serial port, at least one digital servo motor having a half-duplex communication serial port, and any of the methods provided by the embodiments of the present application. a full-duplex and a half-duplex serial port signal conversion circuit, wherein the CPU is connected to the digital servo motor through the full-duplex and half-duplex serial port signal conversion circuit provided by the first aspect, and the full-duplex The half-duplex serial port signal conversion circuit implements bidirectional transmission of communication signals between the CPU and the digital servo motor.
本申请实施例通过硬件完成全双工信号与半双工信号的转换,解决了用软件来控制信号的收发,可靠性受到软件程序的影响,以及程序开发造成的设计周期延长,增加成本的问题,可以提高可靠性以及反应迅速。The embodiment of the present application completes the conversion of the full-duplex signal and the half-duplex signal by hardware, and solves the problem of using the software to control the signal transmission and reception, the reliability is affected by the software program, and the design cycle caused by the program development is prolonged, and the cost is increased. Can improve reliability and responsiveness.
附图说明DRAWINGS
图1是本申请实施例一中的全双工与半双工串口信号转换电路的结构示意图;1 is a schematic structural diagram of a full-duplex and half-duplex serial port signal conversion circuit in Embodiment 1 of the present application;
图2是本申请实施例二中的一种机器人的结构示意图。FIG. 2 is a schematic structural diagram of a robot in Embodiment 2 of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请进行说明。此处所描述的可选实施例仅仅用于解释本申请,而非对本申请的限定。为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。在不冲突的情况下,实施例和实施例中的特征可以相互任意组合。The present application will be described below in conjunction with the accompanying drawings and embodiments. The alternative embodiments described herein are merely illustrative of the application and are not intended to be limiting. For the convenience of description, only some but not all of the structures related to the present application are shown in the drawings. The features in the embodiments and the embodiments may be arbitrarily combined with each other without conflict.
实施例一 Embodiment 1
图1为本申请实施例一提供的全双工与半双工串口信号转换电路的结构示意图,本实施例可适用于全双工信号和半双工信号的转换,参照图1和图2,该全双工与半双工串口信号转换电路1包括:第一逻辑门支路10和第二逻辑门支路20;其中,1 is a schematic structural diagram of a full-duplex and a half-duplex serial port signal conversion circuit according to Embodiment 1 of the present application. This embodiment is applicable to conversion of a full-duplex signal and a half-duplex signal. Referring to FIG. 1 and FIG. 2, The full-duplex and half-duplex serial port signal conversion circuit 1 includes: a first logic gate branch 10 and a second logic gate branch 20;
第一逻辑门支路10连接在全双工信号输出端310和半双工信号收发端410之间,用于将全双工信号输出端310输出的逻辑信号传输至半双工信号收发端410,以及将根据全双工信号输出端310输出的逻辑信号生成的使能信号由第一逻辑门支路10的使能信号输出端110输出至第二逻辑门支路20的使能输出端210;The first logic gate branch 10 is connected between the full-duplex signal output terminal 310 and the half-duplex signal transceiver terminal 410 for transmitting the logic signal output by the full-duplex signal output terminal 310 to the half-duplex signal transceiver terminal 410. And an enable signal generated by the logic signal output from the full-duplex signal output terminal 310 is output from the enable signal output terminal 110 of the first logic gate branch 10 to the enable output terminal 210 of the second logic gate branch 20. ;
第二逻辑门支路20连接在全双工信号接收端320和半双工信号收发端410之间,用于根据第二逻辑门支路20的使能输出端210接收到的使能信号,相应地导通或断路第二逻辑门支路20,当第二逻辑门支路20导通时,将半双工信号收发端410输出的逻辑信号传输至全双工信号接收端320。The second logic gate branch 20 is connected between the full duplex signal receiving terminal 320 and the half duplex signal transceiver terminal 410 for receiving the enable signal according to the enable output terminal 210 of the second logic gate branch 20, Correspondingly, the second logic gate branch 20 is turned on or off. When the second logic gate branch 20 is turned on, the logic signal outputted by the half-duplex signal transceiver terminal 410 is transmitted to the full-duplex signal receiving terminal 320.
如图1所示,第一微处理器3的全双工信号输出端310用于发送通信信号,全双工信号接收端320用于接收通信信号,第二微处理器4的半双工信号收发端410用于收发通信信号。可以理解的是,图1所示的第一微处理器3和第二微处理器4仅作为示例,而非限定。As shown in FIG. 1, the full duplex signal output terminal 310 of the first microprocessor 3 is used to transmit a communication signal, the full duplex signal receiving terminal 320 is used to receive a communication signal, and the half duplex signal of the second microprocessor 4 is shown. The transceiver terminal 410 is configured to send and receive communication signals. It can be understood that the first microprocessor 3 and the second microprocessor 4 shown in FIG. 1 are only examples and are not limiting.
全双工与半双工串口信号转换电路根据全双工串口信号和半双工串口信号的特性,由纯硬件来产生中间控制信号,实现信号的双向传输。The full-duplex and half-duplex serial port signal conversion circuit generates intermediate control signals by pure hardware according to the characteristics of the full-duplex serial port signal and the half-duplex serial port signal, thereby realizing bidirectional transmission of signals.
可选的,第一逻辑门支路10包括:第一缓冲器101,第二缓冲器102和反向器103;其中,Optionally, the first logic gate branch 10 includes: a first buffer 101, a second buffer 102, and an inverter 103;
第一缓冲器101的输入端与全双工信号输出端310连接,第一缓冲器101的输出端与第二缓冲器102的输入端连接,第一缓冲器101的输出端作为第一逻辑门支路10的使能信号输出端110;The input end of the first buffer 101 is connected to the full-duplex signal output terminal 310, the output end of the first buffer 101 is connected to the input end of the second buffer 102, and the output end of the first buffer 101 is used as the first logic gate. The enable signal output terminal 110 of the branch 10;
第二缓冲器102的输出端与半双工信号收发端410连接;The output of the second buffer 102 is connected to the half-duplex signal transceiver 410;
反相器103的输入端与第一缓冲器101的输出端连接,反相器103的输出端与第二缓冲器102的使能输出端连接。The input of the inverter 103 is connected to the output of the first buffer 101, and the output of the inverter 103 is connected to the enable output of the second buffer 102.
第一缓冲器101为常规的缓冲器(buffer gate),输出逻辑与输入逻辑相同,没有逻辑变换功能。第二缓冲器102为三态缓冲器,三态输出受到使能输出端的控制,当使能输出有效时,器件实现正常逻辑状态输出(逻辑0、逻辑1),当使能输入无效时,输出处于高阻状态。反相器103的输出逻辑 与输入逻辑相反,即反相器输入逻辑0,则输出逻辑1;输入逻辑1,则输出逻辑0。The first buffer 101 is a conventional buffer gate, and the output logic is the same as the input logic, and has no logic conversion function. The second buffer 102 is a three-state buffer, and the three-state output is controlled by the enable output. When the enable output is valid, the device implements a normal logic state output (logic 0, logic 1). When the enable input is invalid, the output is output. In a high resistance state. Output logic of inverter 103 Contrary to the input logic, that is, the inverter input logic 0, then output logic 1; input logic 1, then output logic 0.
可选的,第二逻辑门支路20包括:第三缓冲器201,其中,Optionally, the second logic gate branch 20 includes: a third buffer 201, where
第三缓冲器201的输入端与半双工信号收发端410连接,第三缓冲器201的输出端与全双工信号接收端320连接,第三缓冲器201的使能输出端作为第二逻辑门支路20的使能输出端210。The input end of the third buffer 201 is connected to the half-duplex signal receiving end 410, the output end of the third buffer 201 is connected to the full-duplex signal receiving end 320, and the enabled output end of the third buffer 201 is used as the second logic. The enable output 210 of the gate leg 20 is provided.
其中,第三缓冲器201为三态缓冲器。The third buffer 201 is a three-state buffer.
当全双工信号输出端310发送信号“1”时,第一缓冲器101输出“1”,反相器103输出“0”至第二缓冲器102的使能输出端,于是第二缓冲器102被禁止,第二缓冲器102的输出被上拉,从而把全双工信号输出端310发送的“1”传送至半双工信号收发端410。当全双工信号输出端310发送信号“0”时,第一缓冲器101输出“0”,反相器103输出“1”,于是第二缓冲器102被打开,第二缓冲器102输出“0”至半双工信号收发端410,从而把全双工信号输出端310发送的“0”传送至半双工信号收发端410。When the full duplex signal output terminal 310 transmits the signal "1", the first buffer 101 outputs "1", and the inverter 103 outputs "0" to the enable output terminal of the second buffer 102, so that the second buffer 102 is disabled and the output of the second buffer 102 is pulled up to transmit the "1" transmitted by the full-duplex signal output 310 to the half-duplex signal transceiver 410. When the full duplex signal output terminal 310 transmits the signal "0", the first buffer 101 outputs "0", the inverter 103 outputs "1", and then the second buffer 102 is turned on, and the second buffer 102 outputs " The 0' to half-duplex signal transceiver terminal 410 transmits the "0" transmitted by the full-duplex signal output terminal 310 to the half-duplex signal transceiver terminal 410.
当半双工信号收发端410发送信号至全双工信号接收端320时,全双工信号输出端310输出“1”,第一缓冲器101输出“1”,于是第三缓冲器201被打开,这样半双工信号收发端410发送的信号就传输至全双工信号接收端320。When the half-duplex signal transmitting and receiving terminal 410 transmits a signal to the full-duplex signal receiving terminal 320, the full-duplex signal output terminal 310 outputs "1", and the first buffer 101 outputs "1", so that the third buffer 201 is turned on. Thus, the signal sent by the half duplex signal transceiver terminal 410 is transmitted to the full duplex signal receiving terminal 320.
本实施例的技术方案,通过硬件完成全双工信号与半双工信号的转换,解决了用软件来控制信号的收发,可靠性受到软件程序的影响,以及程序开发造成的设计周期延长,增加成本的问题,提高可靠性要交反应迅速。The technical solution of the embodiment solves the conversion of the full-duplex signal and the half-duplex signal by hardware, and solves the problem of using the software to control the transmission and reception of the signal, the reliability is affected by the software program, and the design cycle caused by the program development is prolonged and increased. The problem of cost, improve reliability, and respond quickly.
实施例二Embodiment 2
图2为本申请实施例二提供的一种机器人的结构示意图,该机器人R1包括具备全双工通信串口的CPU(Central Processing Unit,中央处理器)5和至少一个具备半双工通信串口的数字式伺服电机6,CPU5通过实施例一提供的全双工与半双工串口信号转换电路1和数字式伺服电机6连接,通过全双工与半双工串口信号转换电路1实现CPU5和数字式伺服电机6之间通信信号的双向传输。示例的,机器人R1可以为仿人型机器人,可以包括一个具备全双工通信串口的CPU,以及多个具备半双工通信串口的数字式伺服电机,CPU通过全双工通信串口向数字式伺服电机发送指令及接收反馈信号,数字式伺服电机通过半双工通信串口接收CPU下发的指令,以及向CPU 发送反馈信号,从而,数字式伺服电机可以根据CPU下发的指令驱动仿人型机器人的肢体做出相应的动作。2 is a schematic structural diagram of a robot according to Embodiment 2 of the present application. The robot R1 includes a CPU (Central Processing Unit) 5 having a full-duplex communication serial port and at least one digital half-duplex communication serial port. The servo motor 6, the CPU 5 is connected by the full-duplex and half-duplex serial signal conversion circuit 1 and the digital servo motor 6 provided in the first embodiment, and realizes the CPU 5 and the digital through the full-duplex and half-duplex serial port signal conversion circuit 1. Bidirectional transmission of communication signals between servo motors 6. For example, the robot R1 may be a humanoid robot, and may include a CPU with a full-duplex communication serial port, and a plurality of digital servo motors with a half-duplex communication serial port, and the CPU passes the full-duplex communication serial port to the digital servo. The motor sends a command and receives a feedback signal, and the digital servo motor receives the command sent by the CPU through the half-duplex communication serial port, and the CPU The feedback signal is sent, so that the digital servo motor can drive the limb of the humanoid robot to perform corresponding actions according to the instruction issued by the CPU.
图2中以机器人R1仅具备一个数字式伺服电机6为例,CPU5通过全双工与半双工串口信号转换电路1和数字式伺服电机6连接,可选的,CPU5的全双工信号输出端510通过全双工与半双工串口信号转换电路1中的第一逻辑门支路10和数字式伺服电机6的半双工信号收发端610连接,CPU5的全双工信号接收端520通过全双工与半双工串口信号转换电路1中的第二逻辑门支路20和数字式伺服电机6的半双工信号收发端610连接,CPU5和数字式伺服电机6的通信过程参照实施例一提供的技术方案。In FIG. 2, the robot R1 has only one digital servo motor 6 as an example, and the CPU 5 is connected through the full-duplex and half-duplex serial port signal conversion circuit 1 and the digital servo motor 6. Alternatively, the full-duplex signal output of the CPU 5 is selected. The terminal 510 is connected to the first logic gate branch 10 of the full-duplex and half-duplex serial port signal conversion circuit 1 and the half-duplex signal transceiver terminal 610 of the digital servo motor 6. The full-duplex signal receiving end 520 of the CPU 5 passes The second logic gate branch 20 in the full-duplex and half-duplex serial port signal conversion circuit 1 is connected to the half-duplex signal transceiver terminal 610 of the digital servo motor 6. The communication process of the CPU 5 and the digital servo motor 6 is as follows. A technical solution provided.
上述仅为本申请的可选实施例。本领域技术人员会理解,本申请可以为以上所述的可选实施例,对本领域技术人员来说能够进行多种变化、重新调整和替代而不会脱离本申请的保护范围。通过以上实施例对本申请进行了说明,但是本申请还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。The above is only an alternative embodiment of the present application. It will be appreciated by those skilled in the art that the present invention may be susceptible to various modifications, adaptations and substitutions without departing from the scope of the invention. The present application has been described by the above embodiments, but the present application may include other equivalent embodiments, and the scope of the present application is determined by the scope of the appended claims.
工业实用性Industrial applicability
本申请实施例提供一种全双工与半双工串口信号转换电路及机器人,由硬件实现全双工信号与半双工信号的转换,因此可靠性高,反应迅速。 The embodiment of the present application provides a full-duplex and half-duplex serial port signal conversion circuit and a robot, which realizes conversion of a full-duplex signal and a half-duplex signal by hardware, thereby having high reliability and rapid response.

Claims (4)

  1. 全双工与半双工串口信号转换电路,包括:第一逻辑门支路和第二逻辑门支路;其中,第一逻辑门支路连接在全双工信号输出端和半双工信号收发端之间,用于将全双工信号输出端输出的逻辑信号传输至半双工信号收发端,以及将根据全双工信号输出端输出的逻辑信号生成的使能信号由第一逻辑门支路的使能信号输出端输出至第二逻辑门支路的使能输出端;以及Full-duplex and half-duplex serial port signal conversion circuit, comprising: a first logic gate branch and a second logic gate branch; wherein the first logic gate branch is connected to the full-duplex signal output terminal and the half-duplex signal transceiver Between the ends, the logic signal for outputting the full-duplex signal output terminal is transmitted to the half-duplex signal transceiver end, and the enable signal generated according to the logic signal outputted by the full-duplex signal output terminal is used by the first logic gate The enable signal output of the circuit is output to an enable output of the second logic gate;
    第二逻辑门支路连接在全双工信号接收端和半双工信号收发端之间,用于根据第二逻辑门支路的使能输出端接收到的使能信号,相应地导通或断路第二逻辑门支路,当第二逻辑门支路导通时,将半双工信号收发端输出的逻辑信号传输至全双工信号接收端。The second logic gate branch is connected between the full-duplex signal receiving end and the half-duplex signal transceiver end, and is configured to be turned on according to an enable signal received by the enable output end of the second logic gate branch. The second logic gate branch is disconnected, and when the second logic gate branch is turned on, the logic signal outputted by the half duplex signal transceiver end is transmitted to the full duplex signal receiving end.
  2. 根据权利要求1所述的电路,其中,第一逻辑门支路包括:第一缓冲器,第二缓冲器和反向器;其中,The circuit of claim 1 wherein the first logic gate comprises: a first buffer, a second buffer and an inverter; wherein
    第一缓冲器的输入端与全双工信号输出端连接,第一缓冲器的输出端与第二缓冲器的输入端连接,第一缓冲器的输出端作为第一逻辑门支路的使能信号输出端;The input end of the first buffer is connected to the full duplex signal output end, the output end of the first buffer is connected to the input end of the second buffer, and the output end of the first buffer is enabled as the first logic gate branch Signal output
    第二缓冲器的输出端与半双工信号收发端连接;以及The output of the second buffer is coupled to the half-duplex signal transceiver;
    反相器的输入端与第一缓冲器的输出端连接,反相器的输出端与第二缓冲器的使能输出端连接。The input of the inverter is coupled to the output of the first buffer, and the output of the inverter is coupled to the enable output of the second buffer.
  3. 根据权利要求1所述的电路,其中,第二逻辑门支路包括:第三缓冲器;其中,第三缓冲器的输入端与半双工信号收发端连接,第三缓冲器的输出端与全双工信号接收端连接,第三缓冲器的使能输出端作为第二逻辑门支路的使能输出端。The circuit of claim 1 wherein the second logic gate comprises: a third buffer; wherein the input of the third buffer is coupled to the half-duplex signal transceiver, and the output of the third buffer is The full-duplex signal receiving end is connected, and the enabled output end of the third buffer is used as an enabling output end of the second logic gate branch.
  4. 一种机器人,包括具备全双工通信串口的CPU,至少一个具备半双工通信串口的数字式伺服电机以及如权利要求1-3任一项所述的全双工与半双工串口信号转换电路,其中,A robot comprising a CPU having a full-duplex communication serial port, at least one digital servo motor having a half-duplex communication serial port, and full-duplex and half-duplex serial port signal conversion according to any one of claims 1-3 Circuit, where
    所述CPU通过权利要求1-3任一项所述的全双工与半双工串口信号转换电路和所述数字式伺服电机连接,通过所述全双工与半双工串口信号转换电路实现所述CPU和所述数字式伺服电机之间通信信号的双向传输。 The CPU is connected to the digital servo motor by the full-duplex and half-duplex serial port signal conversion circuit according to any one of claims 1-3, and is implemented by the full-duplex and half-duplex serial port signal conversion circuit. Bidirectional transmission of communication signals between the CPU and the digital servo motor.
PCT/CN2016/108660 2016-12-06 2016-12-06 Full-duplex and half-duplex serial port signal conversion circuit, and robot WO2018102981A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/108660 WO2018102981A1 (en) 2016-12-06 2016-12-06 Full-duplex and half-duplex serial port signal conversion circuit, and robot
CN201680086974.3A CN109313621B (en) 2016-12-06 2016-12-06 Full-duplex and half-duplex serial port signal conversion circuit and robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/108660 WO2018102981A1 (en) 2016-12-06 2016-12-06 Full-duplex and half-duplex serial port signal conversion circuit, and robot

Publications (1)

Publication Number Publication Date
WO2018102981A1 true WO2018102981A1 (en) 2018-06-14

Family

ID=62490698

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108660 WO2018102981A1 (en) 2016-12-06 2016-12-06 Full-duplex and half-duplex serial port signal conversion circuit, and robot

Country Status (2)

Country Link
CN (1) CN109313621B (en)
WO (1) WO2018102981A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010239313A (en) * 2009-03-30 2010-10-21 Fujikura Ltd Half duplex to full duplex conversion device
CN103294629A (en) * 2013-04-26 2013-09-11 深圳市宏电技术股份有限公司 Interface switching circuit and device
CN103944707A (en) * 2014-05-12 2014-07-23 哈尔滨工业大学 Full-duplex and half-duplex converter and conversion method
CN204719746U (en) * 2015-06-16 2015-10-21 上海梁维贸易有限公司 Entirely, the serial hub of half-duplex exchange model

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201152974Y (en) * 2008-01-18 2008-11-19 深圳市同洲电子股份有限公司 Interface conversion circuit and digital video recorder
US8681664B2 (en) * 2008-08-11 2014-03-25 Qualcomm Incorporated Setting up a full-duplex communication session and transitioning between half-duplex and full-duplex during a communication session within a wireless communications system
CN101771756B (en) * 2008-12-31 2013-02-13 中国航空工业第一集团公司第六三一研究所 Interface circuit capable of configuring full-duplex/half-duplex software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010239313A (en) * 2009-03-30 2010-10-21 Fujikura Ltd Half duplex to full duplex conversion device
CN103294629A (en) * 2013-04-26 2013-09-11 深圳市宏电技术股份有限公司 Interface switching circuit and device
CN103944707A (en) * 2014-05-12 2014-07-23 哈尔滨工业大学 Full-duplex and half-duplex converter and conversion method
CN204719746U (en) * 2015-06-16 2015-10-21 上海梁维贸易有限公司 Entirely, the serial hub of half-duplex exchange model

Also Published As

Publication number Publication date
CN109313621B (en) 2022-05-24
CN109313621A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US20050258865A1 (en) System, method and program product for extending range of a bidirectional data communication bus
US9984024B2 (en) USB control circuit with built-in bypass function
JPS60169253A (en) Communication network having master-slave type series structure
US10585834B2 (en) I2C device extender for inter-board communication over a single-channel bidirectional link
WO2014194459A1 (en) Method for inhibiting pcie noise output through optical fiber communication, device thereof and communication nodes
TWI511454B (en) Low voltage differential signal driving circuit and electronic device compatible with wired transmission
WO2018102981A1 (en) Full-duplex and half-duplex serial port signal conversion circuit, and robot
TWI548216B (en) Control chip and control system utilizing the same
US20170011001A1 (en) Usb control circuit with built-in signal repeater circuit
JPH06290140A (en) Scsi translator set between unbalanced and balanced types
JP2022121739A5 (en)
JP2017135627A (en) Communication method
JP6496747B2 (en) TX / RX mode control in a serial half-duplex transceiver away from the communicating host
TWI701938B (en) Internet telephone device, external connection card and communication method therefor
CN104486183B (en) A kind of tri-state RS485 means of communication that transmitting-receiving controls certainly
US7647442B2 (en) Series-connected control system
CN105867881B (en) A kind of means of communication and data interaction device for robot
JP6837621B1 (en) robot
JP2009273346A (en) Signal transmitting apparatus applicable to built-in system, and its method
JP2006526947A5 (en)
US20100250804A1 (en) Method for ic communication system
JP2008244761A5 (en)
JP2005522938A5 (en)
JP4409653B2 (en) Serial interface control system and control device used in this system
TWM573546U (en) Network switch

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16923209

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16923209

Country of ref document: EP

Kind code of ref document: A1