I've tried many times to implement serial control using the libraries, but always ended up with SerialException device reports readiness to read but returned no data (device disconnected?)
Would you like to give examples that can run successfully in Ubuntu?