forked from LupusNobilis/java-org.hwo
w-i-p: debug servicelink
parent
09bbb478d7
commit
b08529d368
|
@ -119,6 +119,8 @@ public class ServiceLink {
|
||||||
if (chksum != ChkSum.chksum(rxbuffer, 0, bb.position() - 2))
|
if (chksum != ChkSum.chksum(rxbuffer, 0, bb.position() - 2))
|
||||||
throw new ServiceLinkException();
|
throw new ServiceLinkException();
|
||||||
|
|
||||||
|
System.err.println(String.format("recv(): %d.%d:%d = 0x%08x",achse,knoten,bb.getShort(3),bb.getInt(5)));
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
getSerialPort().close();
|
getSerialPort().close();
|
||||||
|
|
||||||
|
@ -414,7 +416,7 @@ public class ServiceLink {
|
||||||
{
|
{
|
||||||
this.retries = 3;
|
this.retries = 3;
|
||||||
this.serialPort = serialPort;
|
this.serialPort = serialPort;
|
||||||
this.serialPort.setTimeout(100);
|
this.serialPort.setTimeout(250);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue