*/
public void connectSerial(String ComPort, int BaudRate) {
if (mySerialConnections.size() < myMaxSerialPorts) {
int colorindex = mySerialConnections.size();
Serial newSerial = new Serial(ComPort, BaudRate);
if (newSerial.IsConnected()) {
newSerial.registerService();
SerialListener theListener = new SerialListener(this, colorindex);
newSerial.addListener(theListener);
theListener.event(System.getProperty("line.separator") + "Connected to " + ComPort + " at " + BaudRate
+ System.getProperty("line.separator"));