PrinterUtility_EN: Port

| PrinterUtility_EN 1.1.18

Port

> The main function of this section is to select the printer type and how to set up the printer.

- Select printer model

  - After the program starts, it first enters the port setting interface. If the USB device is connected, it will be automatically enumerated. The device name will be displayed on the interface, and you can directly select to open it. If the driver is installed, the installed driver will also be enumerated for display. It can also be opened directly; the network port communication shows the default ip address and port number; when the communication is not connected, switching other function items will pop up a prompt box prompting to open the port first.
  - Select a supported model from the printer list (the model list is read from the configuration file).

- Select communication method

  - Windows supports serial communication, USB communication, network port communication, drive communication and parallel port communication.
  - Linux supports serial communication, USB communication, network port communication and parallel port communication.
  - Select a communication from the supported communication methods.
    - Serial communication: configure serial port number, baud rate, data bit, stop bit, check digit and flow control. The serial port number can be manually input into COM1-COM999 under windows and ttyS0-ttyS999 under linux.
    - USB communication: Click the green down arrow button to enumerate the connected USB device name, which is displayed in the drop-down list box and select a device.
    - Network port communication: You can enter the IP address from the edit box, or you can click the search button to search for the printer IP and select it from the drop-down box.
    - Drive communication: Click the green arrow button to enumerate all the drivers installed on the machine and select a driver from it.
    - Parallel communication: Check the connected slogan or directly enter the slogan, LPT1-LPT999 under windows and parport0-parport999 under linux.
  - The middle area shows the set port parameters.

- Open device

  - Click the right switch button. If the switch is successful, the button corresponding to the current communication mode turns green, and the other buttons are grayed out; the open failure frame prompts the device to open the failure message. (The three color states of the button: red "OFF" is off, green "ON" is on, gray "NO" is disabled)
  - After the port is successfully opened, the other functions are judged according to the model. If it is supported, the switch can be operated normally. If it is not supported, the frame will remind the model that the function is not supported.
  - If the test link button is selected when the port is opened, the program will send an instruction to the printer (the serial port sends the query command, the driver does not support the test connection, and the other communication sends 0A). The above operation will only be performed after the return is successful.
  - After the printer is successfully opened, select the option in the device drop-down box to switch the model, and the current communication mode is automatically turned off.
  - Switch function page: After the port is successfully opened, click to switch other function items, it will judge whether the function is supported according to the currently selected model and communication mode. If it is not supported, this function is not supported. (If the function corresponding to the communication mode under the relevant model is supported, see the table in the appendix for details)