GithubHelp home page GithubHelp logo

Comments (8)

arduino-man avatar arduino-man commented on May 28, 2024 2

Adding:

config :nerves, :erlinit, ctty: "ttyS0"

completely fixed the issue! Thanks a lot for pointing me in the right direction.

from circuits_uart.

fhunleth avatar fhunleth commented on May 28, 2024

Can you confirm that the baud rate is set correctly?

from circuits_uart.

fhunleth avatar fhunleth commented on May 28, 2024

My second idea is to add this to your config:

  config :nerves, :erlinit,
    ctty: "/dev/null"

I just realized that you're on a Pi Zero and the serial console should be running on the same UART. I.e., it's sending IEx prompts to the Fona 808 and that's probably not good at all.

from circuits_uart.

arduino-man avatar arduino-man commented on May 28, 2024

I can confirm that the baud rate is set correctly (115200).
I will implement your suggestion and report right back. Thanks for your prompt response.

from circuits_uart.

arduino-man avatar arduino-man commented on May 28, 2024

I added the new configuration line redirecting output to /dev/null but no success.
I also tried changing the line to

config :nerves, :erlinit, ctty: "ttyS0"

ttyS0 is the only other serial device reported by Circuits.UART.enumerate

My config file can be seen here in case I did anything wrong. https://pastebin.com/KLEPmEYD

from circuits_uart.

arduino-man avatar arduino-man commented on May 28, 2024

I also found this forum entry where someone encountered what seems to be the exact same issue. The issue seems to have never been resolved unfortunately. https://elixirforum.com/t/circuiits-uart-problems-in-rpi0/33710/7

from circuits_uart.

arduino-man avatar arduino-man commented on May 28, 2024

Doing

config :nerves, :erlinit, ctty: "ttyS0"

Seems to have resolved the issue or at least dramatically improved it. I will stress test and report back in an hour or so.

Thanks!

from circuits_uart.

fhunleth avatar fhunleth commented on May 28, 2024

Weird. Another thing to try is to turn off kernel messages being output over the UART. I'd manually try this out first by putting the MicroSD card in your computer and editing the cmdline.txt file. The line at the end says this:

root=/dev/mmcblk0p2 rootwait console=serial0,115200 quiet

Delete the console part so it's like this:

root=/dev/mmcblk0p2 rootwait quiet

from circuits_uart.

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.