Subversion Repositories Projects

Rev

Rev 1563 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1563 Rev 1564
Line 61... Line 61...
61
                UniversalWriteParamSetRequestFrame frame = parseXMLParameterSet(inputStream);
61
                UniversalWriteParamSetRequestFrame frame = parseXMLParameterSet(inputStream);
62
                configure(portIdentifier, frame, parameterSetNumber);
62
                configure(portIdentifier, frame, parameterSetNumber);
63
        }
63
        }
Line 64... Line 64...
64
 
64
 
65
        private static ConfigSet readConfiguration(String portIdentifier, int parameterSetNumber) throws IOException {
65
        private static ConfigSet readConfiguration(String portIdentifier, int parameterSetNumber) throws IOException {
66
                MKConnection port =  new MKTCPConnection(); //new RXTXSerialPort();//
66
                MKConnection port =  new RXTXSerialPort();
67
                port.init(portIdentifier);
67
                port.init(portIdentifier);
68
                FrameQueue q = new FrameQueue(port);
68
                FrameQueue q = new FrameQueue(port);
Line 69... Line 69...
69
                ConfigSet cs = null;
69
                ConfigSet cs = null;
Line 243... Line 243...
243
        public static void main(String[] args) throws IOException {
243
        public static void main(String[] args) throws IOException {
244
                if (!"r".equals(args[0]) && !"w".equals(args[0])) help();
244
                if (!"r".equals(args[0]) && !"w".equals(args[0])) help();
245
                if ("w".equals(args[0]) && (args.length!=3 && args.length!=4)) help();
245
                if ("w".equals(args[0]) && (args.length!=3 && args.length!=4)) help();
246
                if ("r".equals(args[0]) && (args.length!=3 && args.length!=4)) help();
246
                if ("r".equals(args[0]) && (args.length!=3 && args.length!=4)) help();
Line 247... Line 247...
247
 
247
 
Line 248... Line 248...
248
                String portIdentifier = "8080";
248
                String portIdentifier = null;
249
               
249
               
250
                if ("r".equals(args[0])) {
250
                if ("r".equals(args[0])) {
251
                        readConfiguration(portIdentifier, Integer.parseInt(args[1]));
251
                        readConfiguration(portIdentifier, Integer.parseInt(args[1]));