Serial port on the Raspberry Pi
StephenFalken (1725) 1 post |
Could anyone help with an example of Serial input / output on the Raspberry PI GPIO headrer in BASIC? I’m hoping to be able to send and receive binary data. |
Neil Fazakerley (464) 124 posts |
Weirdly, there doesn’t seem to be an ‘official’ way to access the Pi’s serial port :-( You could try downloading Terry Swanborough’s prog from the link towards the bottom of this page: |
Jim Gibb (1867) 15 posts |
I’m finding tha literature on programming the GPIO pins for serial comms very confusing. I’m about to try Terry Swanborough’s code from last November but I’m distressed to note that, as yet, no ‘official’ route appears to exist. |
Ronald May (387) 407 posts |
I have been using Terry’s serial port routines with the Pi and they have been excellent. If only the Iyonix had something similar. I frequently have to reboot the Iyonix when my developing program exits without closing the openin and openout properly. This Pi method has been solid at maintaining access to the Tx and Rx so will be ideal for repeating attempts to get comms protocols established with various devices. |
Chris Hall (132) 3554 posts |
I purchased a Serial Port to TTL convertor for my Raspberry Pi and it came with some neat flying leads with in-line sockets. I was able to see the debug serial output from the raspberry Pi as it started up. Cost just over £7. |