How to Connect Terminals to Mobile Devices Using Accessory Mode: Difference between revisions

From wizarPOS
(Created page with "Some customers want to connect terminal to mobile, they can use accessory mode. Document: https://developer.android.com/guide/topics/connectivity/usb/accessory demo:[http:...")
 
No edit summary
Line 1: Line 1:
Some customers want to connect terminal to mobile, they can use accessory mode.
== Overview: ==
 
For customers looking to connect their terminal to a mobile device, utilizing accessory mode is an effective solution. This guide provides resources and demo applications to facilitate this connection.
Document: https://developer.android.com/guide/topics/connectivity/usb/accessory
== Reference Documentation: ==
 
* Detailed information on using accessory mode can be found in the Android Developer's Guide: [https://developer.android.com/guide/topics/connectivity/usb/accessory Android USB Accessory].
demo:[http://ftp.wizarpos.com/advanceSDK/UsbAccessory.zip UsbAccessory.zip]
== Demo Applications: ==
 
# '''UsbAccessoryHostDemo Application:'''
APK:  
#* Download: [http://ftp.wizarpos.com/advanceSDK/UsbAccessory.zip UsbAccessory.zip]
 
#* '''Usage:''' Install the [http://ftp.wizarpos.com/advanceSDK/UsbAccessoryHostDemo.apk UsbAccessoryHostDemo.apk] on the device that is connected via an OTG-USB converter.
[http://ftp.wizarpos.com/advanceSDK/UsbAccessoryHostDemo.apk UsbAccessoryHostDemo.apk], this apk should install to the side which plug an otg-usb convertor.
# '''UsbAccessoryDeviceDemo Application:'''
 
#* '''Usage:''' Install the [http://ftp.wizarpos.com/advanceSDK/UsbAccessoryDeviceDemo.apk UsbAccessoryDeviceDemo.apk] on the device that is directly connected to the cable.
[http://ftp.wizarpos.com/advanceSDK/UsbAccessoryDeviceDemo.apk UsbAccessoryDeviceDemo.apk], this apk should install to the side which plug the cable directly.
This setup allows for seamless communication between terminals and mobile devices in accessory mode, enhancing connectivity options for various applications.

Revision as of 22:22, 24 December 2023

Overview:

For customers looking to connect their terminal to a mobile device, utilizing accessory mode is an effective solution. This guide provides resources and demo applications to facilitate this connection.

Reference Documentation:

  • Detailed information on using accessory mode can be found in the Android Developer's Guide: Android USB Accessory.

Demo Applications:

  1. UsbAccessoryHostDemo Application:
  2. UsbAccessoryDeviceDemo Application:

This setup allows for seamless communication between terminals and mobile devices in accessory mode, enhancing connectivity options for various applications.