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
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.when I check PINCould you give me some guide.
Thank you~
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))
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))
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
Thank you~
Statistics: Posted by gnob10 — Mon Mar 11, 2024 11:43 pm — Replies 0 — Views 36