public boolean autoDetect()
	{
		String OS = System.getProperty("os.name");
		String fileName = "skzcmd.exe";
		if ( !OS.startsWith("Windows") )
		{
			fileName = "./s2zcmd";
		}
		
		boolean result=false;
	    String line;
	    OutputStream skzIn = null;
	    InputStream skzOut = null;
	    ArrayList<String> responseArray = new ArrayList<String>();

	    
		try {
			//only the windows process is included at the moment.
			Process process = Runtime.getRuntime().exec (fileName);
			skzIn = process.getOutputStream ();
		    skzOut = process.getInputStream ();
		    //enter command 'zls' + return + 'end' to list found turbines then exit
		    line = "zls\nend";
		    skzIn.write(line.getBytes() );
		    skzIn.flush();
		    skzIn.close();

		    //get the result of zls
		    BufferedReader skzReader = new BufferedReader (new InputStreamReader (skzOut));
		    while ((line = skzReader.readLine ()) != null) {
		    	responseArray.add(line);
		    }
		    skzReader.close();
		} catch (Exception err) {
			//Print out simple error message
			System.out.println(err.getMessage());
		}
		
		//parse response and set variables for first genericInputDevice found
		if (responseArray.isEmpty())
		{
			System.out.println("Error: Could not open "+fileName);
			return result;
		}
		String firstResponse = responseArray.get(0);
		if ( firstResponse.equals("unable to open communication device") ) //case if ftd driver not found
		{
			System.out.println("No Communication Device Found! Was the driver installed?");
		} else if ( firstResponse.equals("unable to establish comm.") ) //case if no usb zigbee found
		{
			System.out.println("Unable to establish comm. Is the zigbee radio plugged in?");
		} else if ( firstResponse.equals("% + found 0") ) //case if no turbines are found
		{
			System.out.println("No Turbines were found!");
		} else
		{
			System.out.println("Skystream genericInputDevice detected!");
			serialNum = (String) firstResponse.subSequence(13, 21);
			turbineID = (String) firstResponse.subSequence(37, 46);
			
			settingsMap.put("serialNum", serialNum);
			settingsMap.put("turbineID", turbineID);
			
			System.out.println("SerialNum: "+serialNum);
			System.out.println("TurbineID: "+turbineID);
			result=true;
		}
		return result;
	}//end of autoDetect method