We use HF5122 to connect rs232 (barcode scanner, cash register, etc..) devices with a pc
Typically, you can use software like VCOM to add one or more virtual COM ports and "talk" to the serial server's serial ports
However, I'd like to connect directly, using the "TCP server" feature, which can be configured for each of the device's serial ports
For each of the two serial ports, you can configure a port number so that the client uses IP_address : port (for esample 192.168.1.100:23 x seriale1, 192.168.1.100:26 x serial2) to connect to the desired serial port
So the question is: how can I use B4J code to connect to the TCP server available on the device and send/receive the data that the device connected to serial_port_1 is transmitting/receiving?
Last edited: