How to expand input buffer size of pyserial
问题 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? 回答1: I have had exactly the same problem, including the 1020 byte buffer size and haven't