-
Notifications
You must be signed in to change notification settings - Fork 218
Problems with UART #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For reference, I've connected my BBB according the this tutorial which I got the code from: https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/uart |
for the usarts you need to set the pinmux:
But now that i know how the pwm mux setup in adafruit-io, it wouldn't be to hard to change that in the library too. |
@RobertCNelson thanks for the suggestion @bmcilw1 Please use config-pin as Robert mentioned above to configure P9.24 and P9.26 for UART1 Verify the pin mode is set with:
|
And... I figured it out.
Yes!! |
Why do I need to configure these pins? Shouldn't these be the default settings? |
Ah ok, that makes sense as UART2 is P9.21 and P9.22. So for the loopback test, this is needed:
|
Correct. Is that expected behavior? |
@bmcilw1 Yes, config-pin is used on the current image to control pin mode. I intend to add the ability for Adafruit_BBIO set pin mode with config-pin. Refer to issue #158 |
Default state has been gpio_pd with input_en for a long time.. |
I'm ready to close if no one has any additional stuff here. However, I think that the need to configure pins as well as an example should probably be mentioned in the README since many of the examples won't work without it. |
Release 1.0.8: ============== Fixes: Issue #196: cache board type to avoid poor performance Issue #192: fix PocketBeagle PWM pin typo Issue #191: turn off RotaryEncoder's debug output by default Issue #188: GPIO is extremely slow (20ms to toggle) Issue #186: problems with UART shortlog: David Planella (12): Copy Encoder module comments to README.md Formatted Encoder README in markdown Fixed Encoder README formatting Removed QEP instructions from Encoder module Fixes to Encoder README Updated Encoder README Encoder README: added info on dedicated overlays Encoder README: updated info on pre-requisites Encoder README update Encoder README update Add logging support, turn off unconditional debug output Encoder: remove unused logging code Drew Fustini (3): Merge pull request #195 from dplanella/master Fix PocketBeagle PWM pin typo (#192) cache board type to avoid poor performance (#196) Signed-off-by: Drew Fustini <[email protected]>
@hulkco could you please open up a new issue? I find it easier to manage when there is not a long history of older comments. We can still reference #186 in the new issue. In the new issue, please include the following:
thanks! |
Thast ok @pdp7 i open a new and thanks for the help!!! |
I am unable to set up UART with my board. My code runs with no errors, but no signal shows on the oscilloscope - it's 100% a voltage low. The "Serial is open!" message does show in the console. This time, invoking the script with sudo does not help. I've also tried to open a terminal with minicom to view the output for the tty. Here's my test code:
I've also tried the following experiment.
No matter what I do, no data is sent over UART. Any suggestions or ideas? Here's the state of my board.
The text was updated successfully, but these errors were encountered: