19
2. COM Port
COM1 = /dev/ttyUSB0
COM2 = /dev/ttyUSB1
COM3 = /dev/ttyUSB2
COM4 = /dev/ttyUSB3
COM5 (LCM/VFD) = /dev/ttyS1
--------------------------------------------------------------------------------------------------------------------------------
int intSerialPortHandle = -1;
int intReturnCode = -1;
private int intBaudRate=9600;
private String strTestString="testStringtestString";
String strttyUSBPath;
SerialPort sp;
private void SleepMiniSecond(SerialPort spThread, int minSecond)
{
try {
spThread.sleep(minSecond);
dump_trace("SLEEP_MSEC="+ minSecond);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
private boolean RS232_Test
{
int intDataReceivedLength=0;
sp = new SerialPort();
strttyUSBPath = "/dev/ttyUSB0"
intSerialPortHandle = sp.open(strttyUSBPath,intBaudRate);
byte[] btyVersion_msg_received = new byte[256];
Arrays.fill( btyVersion_msg_received, (byte) 0 );
Содержание 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...