How to Develop Serial Port for Terminals: Difference between revisions

From wizarPOS
No edit summary
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/usb-serial-port/serial-port-development}}")
Tag: Replaced
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
When using the '''C API''' to open a serial port, you need to set the device name of a serial port as a parameter.
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/usb-serial-port/serial-port-development}}
 
'''Device Name'''
{|class="wizarpostable"
|-
! scope="row" colspan="2" | 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<br>
* '''in W1/W1V2:'''
** '''DB9''': works for DB9 port at the back side of the terminal.
** '''GS0_Q1''': works for USB host port at the right side of terminal to connect with Q1 via USB cable in master mode.
* '''in Q1 3g:'''
** '''WIZARHANDQ1''': works for USB serial port in slave mode.
** '''Q1_USB_SERIAL''' or '''USB_SERIAL''': works for USB serial port in master mode.
** '''SERIAL_EXT''': works for internal fiscal/other serial port module.
* '''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_HOST_SERIAL''' or '''USB_SERIAL''': works for USB serial port in master mode.
** '''SERIAL_EXT''': works for internal fiscal/other serial port module.
|}
 
 
 
When using the '''Java API''' to open a serial port, you need to set the logic ID of a serial port as a parameter.
* 0 : works for USB serial port in slave mode.
* 1 : works for USB serial port in master mode.
* 2 : works for internal fiscal/ other serial port module.

Latest revision as of 08:23, 7 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/usb-serial-port/serial-port-development

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!