please choosego to mobile | Continue to access the PC version
View: 14268|Reply: 5

serial

[Copy link]

6

threads

43

posts

222

credits

Intermediate member

Rank: 3Rank: 3

credits
222
Published in 2015-5-26 23:22:59 from mobile | Show all floors |Read mode
HELLO i need to use the serial (rx tx) on gpio of the orange pi (i need to connect it to a esp8266 module).
What are the serial Pin? I need to modify something in boot params like Raspberry?
Thx

10

threads

448

posts

5024

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5024
Published in 2015-8-20 17:07:18 | Show all floors
Edited by loboris at 2015-8-20 10:20
alexparadise replied at 2015-8-19 20:05
Did you made any progress?? Until now I didn't manage to use /dev/ttyS0, never seen /dev/ttyAMA0 and ...

You must enable UART(s) in fex to use UART1-UART3.
To use /dev/ttyS0 (UART0) you must first disable it as kernel console (in sun8iw7p1.h) and rebuild u-boot.
For USBtoUART the kernel must have USBtoSerial modules built. You can try one of my images, I think it should work.

1

threads

20

posts

122

credits

Registered member

Rank: 2

credits
122
Published in 2015-8-20 03:05:04 | Show all floors
Did you made any progress?? Until now I didn't manage to use /dev/ttyS0, never seen /dev/ttyAMA0 and I can't connect my arduino board to orange pi by the usb serial :-/

0

threads

1

posts

10

credits

Novice

Rank: 1

credits
10
Published in 2015-11-14 23:06:08 | Show all floors
loboris, can you ON all 4 UART in next kernel imige from you? Now in sys_config.fex
ttyS0=enable
ttyS1=enable
ttyS2=disable
ttyS3=disable

with raspberry Pi 2 identifical ttyS3 (OFF) => My orange PI PC not working an Boards creating for Raspberry Pi,
not compatible.

0

threads

1

posts

54

credits

Registered member

Rank: 2

credits
54
Published in 2015-12-11 06:32:33 | Show all floors
pentagon128 replied at 2015-11-14 23:06
loboris, can you ON all 4 UART in next kernel imige from you? Now in sys_config.fex
ttyS0=enable
tty ...

Thank you

3

threads

13

posts

83

credits

Registered member

Rank: 2

credits
83
Published in 2016-2-5 19:19:05 | Show all floors
loboris replied at 2015-8-20 17:07
You must enable UART(s) in fex to use UART1-UART3.
To use /dev/ttyS0 (UART0) you must first disable ...

Can you help.  I have a version of Jessie which was made from yours - everything works except the UARTS - so that in Node-Red it sees uart 0-3 but cannot open them. I'm afraid I did not understand that comment about FEX...

In my BOOT directory I have..
boot0_OPI.fex
u-boot_OPI.fex
u-boot_OPI-emmc.fex

This is on an Orange Pi PC.

Is there anything I can do inside Jessie to enable the UARTs?

chrome-extension://bigefpfhnfcobdlfbedofhhaibnlghod/mega/secure.html#fm/transfers

That is the file download...  I simply loaded it up - removed NGINX and put the likes of Apache, Node-Red etc on... and the only thing I'm hitting a brick wall with is the UARTs.

Pete.

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list