13,14 → 13,15 |
import java.util.LinkedList; |
import java.util.List; |
|
import dongfang.mkt.comm.FrameQueue; |
import dongfang.mkt.comm.MKConnection; |
import dongfang.mkt.comm.serial.RXTXSerialPort; |
import dongfang.mkt.comm.tcp.MKTCPConnection; |
import dongfang.mkt.frames.AnalogDebugLabelRequestFrame; |
import dongfang.mkt.frames.AnalogDebugLabelResponseFrame; |
import dongfang.mkt.frames.DebugRequestFrame; |
import dongfang.mkt.frames.DebugResponseFrame; |
import dongfang.mkt.frames.Frame; |
import dongfang.mkt.io.MKCommPort; |
import dongfang.mkt.io.RXTXSerialPort; |
import dongfang.mkt.serial.FrameQueue; |
|
public class MKDebugLogger { |
private static final PrintStream STDERR = System.out; |
201,8 → 202,8 |
public static void main(String[] args) throws IOException { |
MKDebugLogger test = new MKDebugLogger(); |
|
MKCommPort port = new RXTXSerialPort(); |
port.init(null); |
MKConnection port = new MKTCPConnection(); //RXTXSerialPort(); |
port.init("8080"); |
|
FrameQueue q = new FrameQueue(port); |
String encoding = "iso-8859-1"; |