Implement communication with rs232 class