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

            Your email address will not be published.

            *

            主站蜘蛛池模板: 一级做a爰黑人又硬又粗免费看51社区国产精品视 | 亚洲精品无码av天堂| 亚洲AV无码一区二区三区电影 | 日韩精品无码专区免费播放| 亚洲区小说区图片区QVOD| 久久精品九九亚洲精品| 国产精品免费高清在线观看| 免费黄色大片网站| 亚洲乱人伦中文字幕无码| 成全视频在线观看免费高清动漫视频下载| va天堂va亚洲va影视中文字幕| 四虎永久在线观看免费网站网址 | 亚洲高清国产拍精品26U| 永久免费不卡在线观看黄网站| 亚洲精品无码成人片久久| 免费国产成人午夜在线观看| 亚洲今日精彩视频| 成人免费毛片内射美女-百度| 亚洲欧美成人av在线观看 | 最新精品亚洲成a人在线观看| a级黄色毛片免费播放视频| 久久夜色精品国产亚洲AV动态图 | 国产精品亚洲片在线观看不卡| 午夜爽爽爽男女免费观看影院| 亚洲特级aaaaaa毛片| 啦啦啦手机完整免费高清观看 | 羞羞视频免费观看| 一个人在线观看视频免费| 亚洲熟妇AV一区二区三区宅男 | 久久亚洲精品成人| 国产在线观看片a免费观看| 激情小说亚洲图片| 中文字幕无码不卡免费视频| 亚洲AV成人精品一区二区三区| 青青草原亚洲视频| 成人女人A级毛片免费软件 | 老司机免费午夜精品视频| 亚洲精品美女久久777777| 97在线观看永久免费视频| 美女免费视频一区二区三区| 亚洲AV永久无码区成人网站 |