New answers tagged

0

available baudrate is upto 4000000 bits baudrate_constants = { 0: 0000000, # hang up 50: 0o000001, 75: 0o000002, 110: 0o000003, 134: 0o000004, 150: 0o000005, 200: 0o000006, 300: 0o000007, 600: 0o000010, 1200: 0o000011, 1800: 0o000012, 2400: 0o000013, 4800: ...


2

Yes, there is a way to reset the serial port, by closing it and opening it again. This will also reset the Arduino. However, I would rather try to understand what's wrong with the communication. You already have a timeout which should apply to all read/write operations. Print raw strings (make sure you can distinguish strings with and without \n) which you ...


Top 50 recent answers are included