How to Develop Serial Port for Terminals: Difference between revisions
No edit summary |
|||
Line 13: | Line 13: | ||
** '''Q1_USB_SERIAL''' or '''USB_SERIAL''': works for USB serial port in master mode. | ** '''Q1_USB_SERIAL''' or '''USB_SERIAL''': works for USB serial port in master mode. | ||
** '''SERIAL_EXT''': works for internal fiscal module. | ** '''SERIAL_EXT''': works for internal fiscal module. | ||
* '''in Q1 4g and Q2, | * '''in Q1 4g and Q2(K2, M2, M3, QD4/5), Q3 series and others:''' | ||
** '''USB_SLAVE_SERIAL''': works for USB serial port in slave mode. | ** '''USB_SLAVE_SERIAL''': works for USB serial port in slave mode. | ||
** '''USB_HOST_SERIAL''' or '''USB_SERIAL''': works for USB serial port in master mode. | ** '''USB_HOST_SERIAL''' or '''USB_SERIAL''': works for USB serial port in master mode. | ||
** '''SERIAL_EXT''': works for internal fiscal module. | ** '''SERIAL_EXT''': works for internal fiscal/serial port module. | ||
|} | |} |
Revision as of 06:49, 13 April 2020
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
|