28
« Last post by suricato on January 07, 2026, 03:16:01 pm »
Hi, i'm using p232 chip by raspberry cm4, i'm using /dev/ttyAMA1 serial, the test code is for example:
import serial
import time
ser = serial.Serial(
"/dev/ttyAMA1",
baudrate=19200,
timeout=2
)
# Attendi che il P232 sia pronto (15 secondi da power-up)
print("Aspetto la risposta iniziale dal P232...")
time.sleep(15)
data = ser.read(64)
print("Inizializzazione:", data)
# Manda un comando valido (dipende dal firmware)
ser.write(b'LEVEL\n')
time.sleep(0.5)
response = ser.read(128)
print("Risposta:", response)
ser.close()
no reply from p232 chip,attached there is the board schematic, the raspberry cm4 uart are DSP_UART0_RDS_TX, and DSP_UART0_RDS_RX
the p232 chip doesn't work, i don't understand that