On 06/10/2014 08:10 AM, [email protected] wrote:
I follow instructions here
https://github.com/adafruit/adafruit-beaglebone-io-python
and here
https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/uart
but can't make any communication goes through UART1 .
Instead of using /dev/tty01 I use /dev/tty1 which were on my system.
Is there something missing in that post?
What more can I do ?
I tried easiest installation on Angstrom.
I use UART1 with loop back
I use a osciloscope to check signals in pin P9-24
This is the python programa I use to test port
############################################
import Adafruit_BBIO.UART as UART
import serial
UART.setup("UART1")
ser = serial.Serial(port = "/dev/tty1", baudrate=9600)
ser.close()
ser.open()
if ser.isOpen():
print "Serial is open!"
ser.write("Hello World!")
ser.close()
############################################
/dev/tty1 is a console device *NOT* a serial device.
Mike
--
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].
For more options, visit https://groups.google.com/d/optout.