Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4526

Interfacing (DSI, CSI, I2C, etc.) • PI 5 UART (ttyAMA0)

$
0
0
Hello,
I have problem with UART communication need help.

Currently I used PI 4 (GPIO14 and GPIO15) to connect with EPOS4 (maxon motor driver)
The EPOS library was installed on PI 4

Code:

EPOS = ctypes.CDLL('libEposCmd.so')keyHandle = EPOS.VCS_OpenDevice(b'EPOS4', b'MAXON SERIAL V2', b'RS232', b'/dev/ttyS0', byref(pErrorCode))
It was successful connect with motor driver.

However, when I change to PI 5 using same port. It is can not connect to motor driver.
I have enabled serial port "ttyAMA0" on Pi configuration already.

Code:

pi@raspberrypi:~ $ ls -al /dev/ttyA*crw-rw---- 1 root dialout 204, 64 Mar 12 07:31 /dev/ttyAMA0crw-rw---- 1 root dialout 204, 74 Mar 12 07:31 /dev/ttyAMA10

Code:

EPOS = ctypes.CDLL('libEposCmd.so')keyHandle = EPOS.VCS_OpenDevice(b'EPOS4', b'MAXON SERIAL V2', b'RS232', b'/dev/ttyAMA0', byref(pErrorCode))
when I check PIN

Code:

pi@raspberrypi:~ $ pinctrl get 14-1714: a4    pn | hi // PIN8/GPIO14 = TXD015: a4    pu | hi // PIN10/GPIO15 = RXD016: no    pd | -- // PIN36/GPIO16 = none17: no    pd | -- // PIN11/GPIO17 = none
Could you give me some guide.
Thank you~

Statistics: Posted by gnob10 — Mon Mar 11, 2024 11:43 pm — Replies 0 — Views 36



Viewing all articles
Browse latest Browse all 4526

Trending Articles