Hello, I want to establish RS485 communication using UART5 port with Raspberry Pi CM4. However, the transceiver I'm using (ISO3082) has DE (Driver Enable) and RE (Receiver Enable) pins that need to be set as high and low, and these pins are connected to GPIO14 (CTS5). I added the line
to the boot config, but when I check it with an oscilloscope, I don't see any changes on this pin. When I run code
Code: Select all
import serial
port = "/dev/ttyAMA1" # UART5 portu
baud_rate = 9600
# Seri portu başlat
ser = serial.Serial(port, baud_rate)
while True:
RTS_status = ser.getCTS()
if RTS_status:
print("ON")
else:
print("OFF")
in Python, I get output "OFF".
How can I make it work?