pub fn read_data(port: &mut dyn SerialPort) -> Result<Vec<u8>, String>
Read data from the serial port