GithubHelp home page GithubHelp logo

Comments (12)

stephendade avatar stephendade commented on June 1, 2024

Is there any reason you can't enable the uart via the enable_uart=1 dtoverlay?

from rpanion-server.

altmattr avatar altmattr commented on June 1, 2024

I was using a pre-built image and it just wasn't working. The same image had worked perfectly on a Pi2 but that had no wifi so I had to upgrade to the Pi3 I found lying around. I was getting some packets through, but it was not working right. Then I remembered that on the pi3 the bluetooth uses the same serial so you get junk in the stream. I added the extra overlay and suddenly everything was perfect. I have to put in this overlay on every Pi3 when I try to use a UART terminal on GPIO or I get junk appearing on that terminal as well.

from rpanion-server.

altmattr avatar altmattr commented on June 1, 2024

but the subtleties of what each boot config.txt does is beyond me

from rpanion-server.

stephendade avatar stephendade commented on June 1, 2024

Is that a Pi 3B or 3B+?

I've got a 3B+ here, and the enable_uart=1 works fine for assigning /dev/serial0 to GPIO14/15 on the Pi

from rpanion-server.

altmattr avatar altmattr commented on June 1, 2024

I'll try that myself then next time I get the chance, which will be sometime next week. Do you think that boot option might do more than the equivalent raspi-config line (which is already in your deployment script)?

from rpanion-server.

stephendade avatar stephendade commented on June 1, 2024

Do you think that boot option might do more than the equivalent raspi-config line (which is already in your deployment script)?

The sudo raspi-config nonint do_serial 2 does indeed add the enable_uart=1 to /boot/config.txt, plus disables the console on that port.

from rpanion-server.

altmattr avatar altmattr commented on June 1, 2024

this page https://www.circuits.dk/setup-raspberry-pi-3-gpio-uart/ seems to explain the behaviour I see.

from rpanion-server.

altmattr avatar altmattr commented on June 1, 2024

I've done a test from scratch and I can confirm that on my pi3, using a pi connect lite the extra overlay is required

Without it you get a low byte rate and no packets. With it you get working telemetry.

For this test I used a clean pios lite, cloned the repo, used the scripts to setup and then connected to the flight controller

from rpanion-server.

stephendade avatar stephendade commented on June 1, 2024

Thanks for looking into that.

I've just tested here with a Pi 3B, Rpanion-Server 0.9.0 disk image and Pi-Connect Lite. No telemetry issues at 115200 baud.

Are you running any additional devices or software on the Pi?

from rpanion-server.

altmattr avatar altmattr commented on June 1, 2024

Mine is a Pi 3B+, perhaps that is the difference. The issue is there on all my Pis (which were all purchased in one hit a few years ago) have this issue when I am using the GPIO for console as well.

No extra hardware or software. I am starting to wonder if only a certain run of Pi3 have this issue.

2023-03-22 15 18 39
2023-03-22 15 18 11
2023-03-22 15 17 42

from rpanion-server.

stephendade avatar stephendade commented on June 1, 2024

Mine is a Pi 3B+, perhaps that is the difference. The issue is there on all my Pis (which were all purchased in one hit a few years ago) have this issue when I am using the GPIO for console as well.

I've checked my 3B+ with no issues there either.

Is the bluetooth on the Pi attempting to connect to something? Might be worth trying with the bluetooth disabled.

from rpanion-server.

stephendade avatar stephendade commented on June 1, 2024

I've added a note to the documentation (https://www.docs.rpanion.com/software/rpanion_server_v09#flight_controller), in case other users come across this issue.

from rpanion-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.