I'm completely stumped by a problem with my raspberrypi board and hoping someone can help. I have a board connected to the gpio header, the board has a pic which sends a message which the pi receives. I've checked this with a screen session connected to ttyAMA0. I've tried to transmit characters back to the pic but they aren't received. I investigated a bit further and it looks like the pi isn't sending the characters in the first place. I connected a scope to the TXD pin on the GPIO and then use a python script to send messages as follows
Code: Select all
import serial serialPort = serial.Serial("/dev/ttyAMA0", 9600, timeout=0.5, rtscts=False, dsrdtr=False, xonxoff=False,bytesize=serial.EIGHTBITS,parity=serial.PARITY_NONE) while True: serialPort.write("Hello world!") serialPort.flush()
Is there any chance i've blown up the uart? I have the data passing through an isolator with the pi side run off the 3.3v pin of the GIPO so very unlikely.