Serial port on Pi
Chris Hall (132) 3558 posts |
With data continually being spammed on the RXDATA pins, the following program stiffs the machine when the SPACE bar is pressed. First it disables the GPS module (which has an enable pin connected to GPIO 22) so that the serial data stop. Then it sets TXDATA and RXDATA to GPIO use. Then it restores them to UART function and (unsuccessfully) kicks the serial port back into life by changing speed and reenables the GPS module to start serail data again. Nothing gets received. Press SPACE bar and it gives the serial port the same kick again but this time with a break as well (SerialOp 2) and it stiffs the machine. Actually I don’t care about the hang, I just want lines 120 to 250 to get the serial port receiving data again…
|