1. <thead id="l3l4x"><optgroup id="l3l4x"></optgroup></thead>

        1. <label id="l3l4x"><meter id="l3l4x"><bdo id="l3l4x"></bdo></meter></label>

          1. Guide: How to set up the Softserial UART

            What is Softserial?

            Softserial is the abbreviation from “Software Serial” and it is software emulated serial port. In softserial port all the communication control: sending/receiving bytes is performed by software versus the hardware serial ports that have built in hardware for communication control. This means softserial ports adds heavier load on the MCU. However some of the peripherals don’t need constant communication with the flight controller and sends/receives the data occasionally. A perfect example is SmartAudio VTX control, that is used to change the VTX settings only when aircraft is disarmed. 

            Advantages of the Softserial

            The one advantage of soft serial is the possibility to invert the signal via software. This is useful for SmartPort, as you no longer have to hack the signal wire to the inverted output on the receiver.

            The other advantage of the software serial is the possibility to setup the port on flight controllers unused pads. You can increase the number of serial ports and connect additional devices.

            Also worth mentioning that Softserial can be configured only on one signal line for output or input (TX or RX). For instance SmartAudio uses only one wire (TX) to communicate with the FC, so you need only the one additional pad to connect the VTX SmartAudio control. 

            Disadvantages of the Softserial

            With all those great advantages, software serial has some limitations and downsides. First of all the softserial does not work on all flight controller outputs. And it varies from one flight controller to another. You need to try the sofserial on the desired FC output in order to know if it works with your FC. Usually motor5-8 or PWM5-8 or also called S5-S8 and PPM outputs work without problems with softserial, but you need to try.

            Another disadvantage is the limitation of the bandwidth. Software serial works pretty good on 9600 baud, but probably will not on 115200 baud.

            Running software serial is a heavy load on MCU so you should watch the MCU load percentage indicator when you are setting softserial port.

            How to setup the Softserial port?

            First you need to enable the softserial feature in Betaflight configurator.

            Then you need to find out the flight controllers output pin that is mapped to the specific resource. In you example we will reassign the MOTOR 5 output to the softserial pin. Type the resource command in the Betaflight Configurator CLI.

            Find the MOTOR 5 output pin name. In out case it is B03. Now you need to assign the resource to softserial.

            CLI commands for assigning the softserial port: 

            resource serial_tx 11 <pin> – assigns MCU pin resource as the softserial 1 TX output

            resource serial_rx 11 <pin> – assigns MCU pin resource as the softserial 1 RX output

            resource serial_tx 12 <pin> – assigns MCU pin resource as the softserial 2 TX output

            resource serial_rx 12 <pin> – assigns MCU pin resource as the softserial 2 RX output.

            As you see the “11” is the identifier for SOFTSERIAL1. For SOFTSERIAL2, use “12“.

            You need first to free the resource before assign it to another purpose.  This is done by issuing command resource MOTOR 5 none.

            Then assign the freed B03 pin as Softserial1 TX output by issuing the command resource serial_tx 11 B03. Dont forget to save the settings.

            After these steps you’ll see the SOFTSERIAL1 option in the Betaflight Configurator Ports tab. You can set it to SmartAudio/IRC Tramp output to control the VTX settings.

             

            Comments
            1. Dimos
              • montis

            Leave a Reply to Dimos Cancel reply

            Your email address will not be published.

            *

            主站蜘蛛池模板: 十八禁视频在线观看免费无码无遮挡骂过| 国产精品免费看久久久无码| 亚洲人成无码网站久久99热国产| 免费又黄又爽的视频| 国精无码欧精品亚洲一区| 九九久久国产精品免费热6| 在线观看免费播放av片| 国产亚洲日韩在线三区| 一级看片免费视频囗交| 国产亚洲精品线观看动态图| 成在线人视频免费视频| 亚洲高清国产拍精品26U| 一级特黄aa毛片免费观看| 亚洲精品在线电影| 男人的好免费观看在线视频| 亚洲综合伊人制服丝袜美腿| 久久成人18免费网站| 在线中文高清资源免费观看| 亚洲午夜无码久久久久软件| 国产成人AV免费观看| 亚洲一区二区在线免费观看| 青青在线久青草免费观看| 亚洲高清毛片一区二区| 亚洲毛片免费视频| 亚洲av无码专区在线电影天堂| 亚洲国产一区视频| 美女在线视频观看影院免费天天看 | 在线免费观看你懂的| 亚洲av永久无码精品天堂久久 | 成年女人毛片免费观看97| mm1313亚洲国产精品无码试看 | 麻豆一区二区免费播放网站 | 亚洲第一页在线视频| 噜噜嘿在线视频免费观看| 一本到卡二卡三卡免费高| 久久99亚洲网美利坚合众国| 午夜成年女人毛片免费观看| 中文字幕成人免费高清在线视频| 亚洲天堂电影在线观看| 人人揉揉香蕉大免费不卡| 久久久久噜噜噜亚洲熟女综合|