I am link modem to pi3 via serial port and configure this port . When i receive data in my python software from serial port and save bytes in file, i note i receive too mutch data , I am receiving byte by byte , For example if transmited data from modem to pi3 was 1.5 kbyte , my softwre receive 5.5 k byte.
I note there is many line duplicated .
I use port. Read() Shul i use read until or read inwait? Can any one help me or explain this matter?