}
}
public static void setUpSerial() throws Exception, IOException, InterruptedException {
if (con!=null) con.close();
con = new Communication();
con.connect("COM17", 57600);
sw=new SerialWriter(con.getOutputStream());
sr=new SerialReader(con.getInputStream());
con.addEventListener(sr);
Thread t0=new Thread(sw);