I found how to fix UARTs of raspberry by using another UARTs of raspberry pi 4 because rpi4 has 6 UARTs port .
Example :
- UART0 , UART1 , UART2 , UART3 , UART4 , UART5
My Devices :
- RPI : Raspberry Pi 4 Model B (MASTER)
- OS : Ubuntu Mate 20.04
- SLAVE : Teensy 4.1 (Communicate with raspberry pi 4)
References
You can enable UARTs on RPi4 by editing files /boot/config.txt and add
dtoverlay=uartx
x is the number of your UARTs
or
Use my scripts : sudo python3 attach_serial.py (not forget sudoo ~!!!)
Requirement :
- pip install pyserial
1.Before enabling UARTS you can see only /dev/ttyAMA0
2.Select your UARTS (restart required)
3.After enabling UARTS you can see another ttyAMA
4.Testing Sending & Receiving Serial Communication by ttyAMA
Question (What is path of UARTs):
- /dev/ttyACM0 - /dev/ttyACM5
DON"T USE IN UBUNTU SERVER THAT MAKE YOUR RASPBERRY PI RAINBOW DASH



