Comments (8)
Adding:
config :nerves, :erlinit, ctty: "ttyS0"
completely fixed the issue! Thanks a lot for pointing me in the right direction.
from circuits_uart.
Can you confirm that the baud rate is set correctly?
from circuits_uart.
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.
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.
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.
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.
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.
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)
- Bad Match in `find_pids/0`
- Possible option to set timeout on Open ? HOT 2
- Circuits.UART.enumerate no work on Ubuntu 20.04 HOT 3
- Connection opens without errors, but I can't neither read or write HOT 2
- Circuits.UART.enumerate returns nothing %{"ttyAMA0" => %{}, "ttyS0" => %{}} HOT 9
- Fix kIOMasterPortDefault deprecation on macOS 12 and later
- Should we monitor/link to the `controlling_process`? HOT 1
- Error compiling with BeagleBone based target HOT 7
- `:enotty` when attempting to open a port with RS485 options on Linux HOT 1
- Compile error in Fedora 38 HOT 6
- When issuing a read, call_port can try to exit.
- On Windows, specific device gets :einval error on `open/3` HOT 2
- Latency HOT 3
- Can't close connection to unopened device HOT 1
- Cannot set parity to :mark HOT 2
- ENOTTY error setting custom speed on linux HOT 4
- UART.read timeout clarifications HOT 3
- Mingw 10.2 compilation is failing HOT 2
- [Question] Is it possible to read a specific but dynamic amount of bytes? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circuits_uart.