When you use USB Connection, and at the same time you want the host to receive data through the serial port, you should use USB Virtual serial port mode. From the point of view of the host system
interface, the scanner is equivalent to connecting with the host through a serial port.