20
intReturnCode = sp.write(intSerialPortHandle,strTestString.getBytes());
sp.setListener(splistener);
intDataReceivedLength = sp.getDataReceivedLength();
int nRetry=0;
while (intDataReceivedLength == 0)
{
SleepMiniSecond(sp, 1000);
intDataReceivedLength = sp.getDataReceivedLength();
+;
if (nRetry == 2)
break;
}
if ( intDataReceivedLength>= 0) {
btyVersion_msg_received =
Arrays.copyOf(sp.getBytDataReceived(),intDataReceivedLength);
}
sp.close(intSerialPortHandle);
sp = null;
boolean testResult = false;
testResult = (intDataReceivedLength > 0 )? true: false;
return testResult;
}
---------------------------------------------------------------------------------------------------------------------------------
Содержание ST-1120W
Страница 10: ...6 D Di im me en ns si io on n S ST T 1 11 12 20 0W W...
Страница 14: ...10 2 LTE 4G SIM Card Installation Remove 2 Screws Remove IO Box...
Страница 15: ...11 Remove 4 Screws Insert SIM card in slot Nano SIM Card Nano SIM Card...
Страница 16: ...12 Device status setting...
Страница 17: ...13 1 Led Color Setting none blue green cyan blue red purple yellow white...
Страница 18: ...14 2 Cash Drawer Power Setting 12V 24V...
Страница 19: ...15 3 COM 1 Power Setting Close 5V 12V 4 COM 2 Power Setting Close 5V 12V...
Страница 20: ...16 5 COM 3 4 Power Setting Close 5V 12V For PP 1125...
Страница 21: ...17 6 COM 5 Power Setting Close 5V 12V For LCM VFD...
Страница 26: ...22 Chapter 5 T Tr ro ou ub bl le es sh ho oo ot ti in ng g...