How to Develop Serial Port for Terminals: Difference between revisions
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
* SerialPortDevice.ID_SERIAL_EXT : works for internal fiscal/ other serial port module. | * SerialPortDevice.ID_SERIAL_EXT : works for internal fiscal/ other serial port module. | ||
<big>Cable Connection</big> | |||
* Q4: use 2) and 3) ; or 4) UU Cable | |||
<big>Cables</big> | |||
1) Type B Otg usb Cable | |||
[[File:Otg_usb_1.jpg|frameless|left|thumb|caption]] | [[File:Otg_usb_1.jpg|frameless|left|thumb|caption]] | ||
2) USB DB9 Cable | |||
[[File:Usb_db9_1.jpg|frameless|left|thumb|caption]] | [[File:Usb_db9_1.jpg|frameless|left|thumb|caption]] | ||
Line 39: | Line 42: | ||
3) USB DB9 Cable | |||
[[File:Usb_db9_2.jpg|frameless|left|thumb|caption]] | [[File:Usb_db9_2.jpg|frameless|left|thumb|caption]] | ||
Line 47: | Line 50: | ||
4) UU Cable | |||
[[File:UUCable.jpg|frameless|left|thumb|caption]] | [[File:UUCable.jpg|frameless|left|thumb|caption]] |
Revision as of 10:18, 2 July 2021
When using the C API to open a serial port, you need to set the device name of a serial port as a parameter.
Device Name:
Parameters | |
---|---|
device name | The alias for serial port. Available values: DB9, GS0_01, WIZARHANDQ1, Q1_USB_SERIAL, USB_SERIAL, SERIAL_EXT, USB_SLAVE_SERIAL, USB_HOST_SERIAL
|
When using the Java API to open a serial port, you need to set the logic ID of a serial port as a parameter.
- SerialPortDevice.ID_USB_SLAVE_SERIAL : works for USB serial port in slave mode.
- SerialPortDevice.ID_USB_HOST_SERIAL : works for USB serial port in master mode.
- SerialPortDevice.ID_SERIAL_EXT : works for internal fiscal/ other serial port module.
Cable Connection
- Q4: use 2) and 3) ; or 4) UU Cable
Cables 1) Type B Otg usb Cable
2) USB DB9 Cable
3) USB DB9 Cable
4) UU Cable