Welcome, Guest

Author Topic: I NEED AND UART in PYTHON  (Read 1644 times)

junetec

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-0
I NEED AND UART in PYTHON
« 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

Alep

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: I NEED AND UART in PYTHON
« Reply #1 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
 
 

junetec

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-0
Re: I NEED AND UART in PYTHON
« Reply #2 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?

junetec

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-0
Re: I NEED AND UART in PYTHON
« Reply #3 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.