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 montis Cancel reply

            Your email address will not be published.

            *

            主站蜘蛛池模板: 免费无码又爽又刺激网站直播| 亚洲成AⅤ人影院在线观看| 免费福利资源站在线视频| 日韩欧毛片免费视频| 在线免费观看亚洲| 91成人在线免费观看| 成人黄18免费视频| 国产精品高清视亚洲一区二区| 国产又大又粗又长免费视频| 免费在线观看中文字幕| 亚洲第一视频网站| 国产偷国产偷亚洲清高APP| 热99RE久久精品这里都是精品免费| 久久久久亚洲AV成人网人人软件| 国产亚洲福利精品一区二区| 午夜免费福利片观看| 久久亚洲私人国产精品| 亚洲国产精品免费在线观看| 亚洲成A∨人片在线观看无码| 无码少妇一区二区浪潮免费| 亚洲精品无码久久久久秋霞| 毛片在线全部免费观看| 无码欧精品亚洲日韩一区夜夜嗨 | 亚洲国产精品毛片av不卡在线| 黄色免费在线观看网址| 中文字幕一精品亚洲无线一区| 亚洲av永久无码精品网址| 日本视频一区在线观看免费| 亚洲中文字幕日本无线码| 国产免费观看a大片的网站| 亚洲自国产拍揄拍| 国产在线观看免费完整版中文版| 一级中文字幕乱码免费| 免费国产高清视频| 国产免费一区二区视频| 亚洲日本香蕉视频观看视频| 国产在线19禁免费观看国产 | 久久久久亚洲av无码专区| 成年女人18级毛片毛片免费观看| 免费精品视频在线| 亚洲视频在线观看网址|