Page 26
724-746-5500 | blackbox.com
ACX048 API manual
Chapter 5: Configuration
5.3 Communication Setup
TCP/IP socket connection
To control the DKM FX via TCP/IP socket connection, the Service has to be activat-
ed. See Chapter 2.6.4, Network Status and Chapter 4.4.5, Network in the DKM
FX and DKM FX Compact manual for more information.
Java code example
// Create socket connection
Socket socket = new Socket("192.168.100.108", 5555);
final InputStream is = socket.getInputStream();
// Switch off all ports, Command: ESC [ A
final OutputStream os = socket.getOutputStream();
os.write(0x1B); // ESC
os.write(0x5B); // [
os.write(0x41); // A
os.flush();
if (is.read() == 0x06) {
// acknowledged
}
is.close();
os.close();
socket.close();