Hello,
My name is Seth. Tomas, you may need to add the *BB-UART1_TXD* and
*BB-UART1_RXD* or whatever pins you are using in the uEnv.txt file. You can
add these specific lines, now this is if the pins are still called this on
your specific board, by going to the */boot* directory and finding your
*uEnv.txt* file. This file can be altered or changed by using vim or emacs
or nano and you would have to change the section
*cape_enable=bone_capemgr.enable_partno=* to
*cape_enable=bone_capemgr.enable_partno=BB-UART1_TXD,BB-UART1_RXD*.
I am pretty sure this is how it is done. Let me know if this works.
Seth
P.S. I have tried to comment the Universal Cape section and delete the
comment on the cape_enable=bone_capemgr.enable_partno= section to try this
override before. It has worked at times.
On Thursday, September 7, 2017 at 6:08:45 PM UTC-5, Tomas Medina wrote:
>
>
> I'm trying to have a Beaglebone Black Wireless(debian image 2017-07-01)
> communicate to another device using UART serial communication. In an
> example program, the bone waits for the device to send the letter "A",
> then, upon receiving the right letter, outputs a message and transmits the
> letter "B". The pins used for transmitting and receiving are "P9_24" and
> "P9_26" respectively. Here is the following program:
>
> import Adafruit_BBIO.UART as UARTimport serial
> #Enabling the serial ports
> UART.setup("UART1")
> #Serial setup values
> ser = serial.Serial()
> ser.port = "/dev/ttyO1"
> ser.baudrate = 9600
> READ_LEN = 1
> ser.close()
>
> rx = ""
> while True:
> print "Waiting for A... "
> ser.open()
> rx = ser.read()
> ser.close()
>
> if (rx == 'A'):
> print "Got it!"
> ser.open()
> ser.write("B")
> ser.close()
> break
>
> The program doesn't throw any errors, however, when testing it out with
> the device, the program gets stuck on the "Waiting for A" line. I have
> thoroughly checked that all connections are correct and that the other
> device is sending data. Additionally, the program runs perfectly on an
> older Beaglebone (debian image 2015-11-12).
>
> Any help into this matter would be greatly appreciated.
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/93326417-4a8f-4196-9e4c-16f8fa037e97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.