Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: junetec on June 26, 2014, 07:27:59 PM

Title: I NEED AND UART in PYTHON
Post by: junetec on June 26, 2014, 07:27:59 PM
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
Title: Re: I NEED AND UART in PYTHON
Post by: Alep on June 26, 2014, 10:57:38 PM
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
 
Title: Re: I NEED AND UART in PYTHON
Post by: junetec on June 26, 2014, 11:52:43 PM
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?
Title: Re: I NEED AND UART in PYTHON
Post by: junetec on July 10, 2014, 04:27:44 PM
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.