I want to communicate with the phone via serial port. After writing some command to phone, I used ser.read(ser.inWaiting())
to get its return value, but I always got total 1020 bytes
of characters, and actually, the desired returns is supposed to be over 50KB
.
I have tried to set ser.read(50000)
, but the interpreter will hang on.
How would I expand the input buffer to get all of the returns at once?