Impact of using UART












2














I'm trying to understand the impact of using UART communication of the Raspberry's GPIO pins. So I'm reading the Raspberry UART documentation, but I'm not sure if I get everything right.



It says:




By default, on Raspberry Pis equipped with the wireless/Bluetooth module (Raspberry Pi 3 and Raspberry Pi Zero W), the PL011 UART is connected to the BT module




I'm not sure what "connected" means in this context. Because it says "by default", it seems to me that there are other options, potentially configurable, so it's just a software connection.



Later, the documentation says




pi3-disable-bt disables the Bluetooth device and restores UART0/ttyAMA0 to GPIOs 14 and 15.




So does "connected" mean that a) the bluetooth data is forwarded/copied to the PL011 UART (one-way)? Or b) does it also mean that writing to the GPIO pins will send data over bluetooth (two-way)? Or c) the connection between Bluetooth and UART on GPIO pins is an exclusive one. You could either use Bluetooth or use UART.



Last, I have a question on the sentence




pi3-miniuart-bt switches the Raspberry Pi 3 and Raspberry Pi Zero W Bluetooth function to use the mini UART (ttyS0), and restores UART0/ttyAMA0 to GPIOs 14 and 15.




in combination with




The particular deficiencies of the mini UART compared to the PL011 are : [...] [long list of disadvantages]




Since I need Bluetooth and UART, this seems to be the right option to me. Does Bluetooth work really fine using the Mini-UART? I definitely don't like to have Bluetooth issues.










share|improve this question



























    2














    I'm trying to understand the impact of using UART communication of the Raspberry's GPIO pins. So I'm reading the Raspberry UART documentation, but I'm not sure if I get everything right.



    It says:




    By default, on Raspberry Pis equipped with the wireless/Bluetooth module (Raspberry Pi 3 and Raspberry Pi Zero W), the PL011 UART is connected to the BT module




    I'm not sure what "connected" means in this context. Because it says "by default", it seems to me that there are other options, potentially configurable, so it's just a software connection.



    Later, the documentation says




    pi3-disable-bt disables the Bluetooth device and restores UART0/ttyAMA0 to GPIOs 14 and 15.




    So does "connected" mean that a) the bluetooth data is forwarded/copied to the PL011 UART (one-way)? Or b) does it also mean that writing to the GPIO pins will send data over bluetooth (two-way)? Or c) the connection between Bluetooth and UART on GPIO pins is an exclusive one. You could either use Bluetooth or use UART.



    Last, I have a question on the sentence




    pi3-miniuart-bt switches the Raspberry Pi 3 and Raspberry Pi Zero W Bluetooth function to use the mini UART (ttyS0), and restores UART0/ttyAMA0 to GPIOs 14 and 15.




    in combination with




    The particular deficiencies of the mini UART compared to the PL011 are : [...] [long list of disadvantages]




    Since I need Bluetooth and UART, this seems to be the right option to me. Does Bluetooth work really fine using the Mini-UART? I definitely don't like to have Bluetooth issues.










    share|improve this question

























      2












      2








      2







      I'm trying to understand the impact of using UART communication of the Raspberry's GPIO pins. So I'm reading the Raspberry UART documentation, but I'm not sure if I get everything right.



      It says:




      By default, on Raspberry Pis equipped with the wireless/Bluetooth module (Raspberry Pi 3 and Raspberry Pi Zero W), the PL011 UART is connected to the BT module




      I'm not sure what "connected" means in this context. Because it says "by default", it seems to me that there are other options, potentially configurable, so it's just a software connection.



      Later, the documentation says




      pi3-disable-bt disables the Bluetooth device and restores UART0/ttyAMA0 to GPIOs 14 and 15.




      So does "connected" mean that a) the bluetooth data is forwarded/copied to the PL011 UART (one-way)? Or b) does it also mean that writing to the GPIO pins will send data over bluetooth (two-way)? Or c) the connection between Bluetooth and UART on GPIO pins is an exclusive one. You could either use Bluetooth or use UART.



      Last, I have a question on the sentence




      pi3-miniuart-bt switches the Raspberry Pi 3 and Raspberry Pi Zero W Bluetooth function to use the mini UART (ttyS0), and restores UART0/ttyAMA0 to GPIOs 14 and 15.




      in combination with




      The particular deficiencies of the mini UART compared to the PL011 are : [...] [long list of disadvantages]




      Since I need Bluetooth and UART, this seems to be the right option to me. Does Bluetooth work really fine using the Mini-UART? I definitely don't like to have Bluetooth issues.










      share|improve this question













      I'm trying to understand the impact of using UART communication of the Raspberry's GPIO pins. So I'm reading the Raspberry UART documentation, but I'm not sure if I get everything right.



      It says:




      By default, on Raspberry Pis equipped with the wireless/Bluetooth module (Raspberry Pi 3 and Raspberry Pi Zero W), the PL011 UART is connected to the BT module




      I'm not sure what "connected" means in this context. Because it says "by default", it seems to me that there are other options, potentially configurable, so it's just a software connection.



      Later, the documentation says




      pi3-disable-bt disables the Bluetooth device and restores UART0/ttyAMA0 to GPIOs 14 and 15.




      So does "connected" mean that a) the bluetooth data is forwarded/copied to the PL011 UART (one-way)? Or b) does it also mean that writing to the GPIO pins will send data over bluetooth (two-way)? Or c) the connection between Bluetooth and UART on GPIO pins is an exclusive one. You could either use Bluetooth or use UART.



      Last, I have a question on the sentence




      pi3-miniuart-bt switches the Raspberry Pi 3 and Raspberry Pi Zero W Bluetooth function to use the mini UART (ttyS0), and restores UART0/ttyAMA0 to GPIOs 14 and 15.




      in combination with




      The particular deficiencies of the mini UART compared to the PL011 are : [...] [long list of disadvantages]




      Since I need Bluetooth and UART, this seems to be the right option to me. Does Bluetooth work really fine using the Mini-UART? I definitely don't like to have Bluetooth issues.







      bluetooth uart






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 4 hours ago









      Thomas Weller

      1,15011135




      1,15011135






















          1 Answer
          1






          active

          oldest

          votes


















          2














          The three options are:



          default configuration




          • UART0/ttyAMA0 to Bluetooth

          • Mini-UART/dev/ttyS0 to GPIOs 14 and 15


          pi3-disable-bt




          • no Bluetooth support

          • UART0/ttyAMA0 to GPIOs 14 and 15


          pi3-miniuart-bt




          • Mini-UART/ttyS0 connected to Bluetooth

          • UART0/ttyAMA0 to GPIOs 14 and 15


          In general, the Mini-UART has one big pitfall. It doesn't have its own clock source, so the UART bitrate depends on the CPU clock. Which means you have to set a fixed CPU clock for reliable communication. For serial console this is usually not a problem because it's a debugging tool.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("schematics", function () {
            StackExchange.schematics.init();
            });
            }, "cicuitlab");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "447"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f92505%2fimpact-of-using-uart%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            The three options are:



            default configuration




            • UART0/ttyAMA0 to Bluetooth

            • Mini-UART/dev/ttyS0 to GPIOs 14 and 15


            pi3-disable-bt




            • no Bluetooth support

            • UART0/ttyAMA0 to GPIOs 14 and 15


            pi3-miniuart-bt




            • Mini-UART/ttyS0 connected to Bluetooth

            • UART0/ttyAMA0 to GPIOs 14 and 15


            In general, the Mini-UART has one big pitfall. It doesn't have its own clock source, so the UART bitrate depends on the CPU clock. Which means you have to set a fixed CPU clock for reliable communication. For serial console this is usually not a problem because it's a debugging tool.






            share|improve this answer


























              2














              The three options are:



              default configuration




              • UART0/ttyAMA0 to Bluetooth

              • Mini-UART/dev/ttyS0 to GPIOs 14 and 15


              pi3-disable-bt




              • no Bluetooth support

              • UART0/ttyAMA0 to GPIOs 14 and 15


              pi3-miniuart-bt




              • Mini-UART/ttyS0 connected to Bluetooth

              • UART0/ttyAMA0 to GPIOs 14 and 15


              In general, the Mini-UART has one big pitfall. It doesn't have its own clock source, so the UART bitrate depends on the CPU clock. Which means you have to set a fixed CPU clock for reliable communication. For serial console this is usually not a problem because it's a debugging tool.






              share|improve this answer
























                2












                2








                2






                The three options are:



                default configuration




                • UART0/ttyAMA0 to Bluetooth

                • Mini-UART/dev/ttyS0 to GPIOs 14 and 15


                pi3-disable-bt




                • no Bluetooth support

                • UART0/ttyAMA0 to GPIOs 14 and 15


                pi3-miniuart-bt




                • Mini-UART/ttyS0 connected to Bluetooth

                • UART0/ttyAMA0 to GPIOs 14 and 15


                In general, the Mini-UART has one big pitfall. It doesn't have its own clock source, so the UART bitrate depends on the CPU clock. Which means you have to set a fixed CPU clock for reliable communication. For serial console this is usually not a problem because it's a debugging tool.






                share|improve this answer












                The three options are:



                default configuration




                • UART0/ttyAMA0 to Bluetooth

                • Mini-UART/dev/ttyS0 to GPIOs 14 and 15


                pi3-disable-bt




                • no Bluetooth support

                • UART0/ttyAMA0 to GPIOs 14 and 15


                pi3-miniuart-bt




                • Mini-UART/ttyS0 connected to Bluetooth

                • UART0/ttyAMA0 to GPIOs 14 and 15


                In general, the Mini-UART has one big pitfall. It doesn't have its own clock source, so the UART bitrate depends on the CPU clock. Which means you have to set a fixed CPU clock for reliable communication. For serial console this is usually not a problem because it's a debugging tool.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 3 hours ago









                Janka

                1,284310




                1,284310






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Raspberry Pi Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f92505%2fimpact-of-using-uart%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Understanding the information contained in the Deep Space Network XML data?

                    Ross-on-Wye

                    Eastern Orthodox Church