I want to communicate with the phone through the serial port. After writing some command to the phone, I used ser.read(ser.inWaiting()) to get the return value, but I always had a total number of characters of 1020 bytes , and in fact the desired income should be exceeded 50KB .
I tried installing ser.read(50000) , but the interpreter will hang.
How can I expand the input buffer to get all the results right away?
source share