General Function Modules
External USB Serial Devices
External USB Serial DeviceInstructions Document for USB、serial device 1. Brief introduction: peripheral interfaces: general communication interfaces such as LAN port, cash drawer port, usb2.0 port, serial port, headphone jack, etc. This text mainly introduces the usage mode of cash drawer port, usb port and serial port.

1) Interface description
Cash drawer port: the cash drawer port uses RJ12 port. The developers can control the
cash drawer by sending data to the cash drawer port.
Cash drawer developers document and resources file:Interface Documentation
2) Serial port: the serial port uses RJ11 port. The developers can control the peripherals
by sending data from the serial port. The RJ11 of iMin equipment is four-wire and does not support hard-flow control (some peripherals turn on hardware-flow control by default, and these devices can not connect iMin mainframe through RJ11).
D1w, D3-505, D3 Premium, K1, K2, D4, S1, Swan 1: /dev/ttyS3
D2(Android 7.1), D3-504, D4 Pro, Swan 1 Pro: /dev/ttyS1
D2(Android 11) series:/dev/ttyS7
Falcon 1 series:/dev/ttyS2

CashBox
iMin’s desktop series models all support direct access to the cash box. The cash box uses the RJ12 interface. Developers can control the cash box by sending data to the RJ12 interface; Developers can open the money box by sending instructions directly. The money box has two operations: opening the money box and checking the status of the money box.
Download the IminLibs.jar package first, then reference it in the project, and obtain the specified value in the following way:
Open the cash box
1IminSDKManager.opencashBox();
Scan
For iMin devices, if you use the camera to scan the code, iMin provides a scan code Demo for developers to use, which can identify QR codes and barcodes faster.
NFC
iMin Product NFC scan area
