How big is the serial buffer? It seems to get to about 3900 bytes waiting when it chokes.
Can the buffer be made bigger?
I am using a baud rate of 115200, would I get faster transfer through the serial port on the GPIO pins?
I am transferring the data as bytes rather than strings as I assume it is the quickest way. It has less bytes to transfer it is true but on receiving the bytes I have to do a bit of going through hoops to get it into a number. They are two byte numbers and I do:-
Is there a quicker way?
Code: Select all
a = ser.read(2) value = ( ord(a) << 8) | ( ord(a) )