/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package CalcWgtPro;
/**
*
* @author luolai
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Iterator;
import java.util.List;
import java.util.TooManyListenersException;
import javax.comm.CommPortIdentifier;
import javax.comm.PortInUseException;
import javax.comm.SerialPort;
import javax.comm.SerialPortEvent;
import javax.comm.SerialPortEventListener;
import javax.comm.UnsupportedCommOperationException;
public class Readst {
static String retValue = "000000";
public void init() {
try {
CommPortIden