+ rcon();
+ }
+ public void close() throws IOException {
+ flush();
+ if (!initErr())
+ throw new RuntimeException("initialization failed at " + bytes);
+ for(int i=0; i<100; i++) {
+ flush();
+ if (!initErr())
+ throw new RuntimeException("initialization failed at " + bytes);
+ try { Thread.sleep(20); } catch (Exception e) { }
+ config(0,1);
+ }
+ avrrst(false);
+ try { Thread.sleep(100); } catch (Exception e) { }
+ purge();
+ uart_and_cbus_mode(1<<1, 1<<1);