I NEED AND UART in PYTHON

Started by junetec, June 26, 2014, 07:27:59 pm

Previous topic - Next topic

junetec

Hello,

I need comunication with the A20.
At the moment I can see the console in UART0 but I need an exclusive UART for my app.

If in python I put

ser = serial.Serial('/dev/ttyS0', 115200, timeout=1)
ser.write("hello")

It works fine but if I try with uart6 and uart7 like

ser = serial.Serial('/dev/ttyS1', 115200, timeout=1)
ser.write("hello")

Nothing it's sended.

I'ts needed something more to enable uart6 or uart7?

Or there's a way to disable console in uart0 to use exclusive for my app?

thanks,

Enric

Alep

Uart0 = ttyS0 on board uart0
Uart6 = ttyS1 on Utex1
Uart7 = ttyS2 on Utex2

Serial pin out Utex port
1 = 3,3 Volt
2 = 0 Volt Ground
3 = Tx
4 = Rx

Good Work
 

junetec

Thanks, but I know that info, but still uart6 and uart7 don't work, or I don't receive nothing.

Uart0 works but I would like to disable console-
It's possible?

junetec

It looks like in the first test I was making some mistake, maybe wrong tty name or wrog pin connection, beacuse now UART1 it's working without problem.