# Connect 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.

### Reference Documentation:

* Detailed information on using accessory mode can be found in the Android Developer's Guide: [Android USB Accessory](https://developer.android.com/guide/topics/connectivity/usb/accessory).

### Demo Applications:

1. UsbAccessoryHostDemo Application:
   * Download: [UsbAccessoryHostDemo](https://github.com/SmartPOSSamples/UsbAccessoryHostDemo).
   * Usage: Install the [UsbAccessoryHostDemo.apk](https://ftp.wizarpos.com/advanceSDK/UsbAccessoryHostDemo_250605.apk) on the device that is connected via an OTG-USB converter.
2. UsbAccessoryDeviceDemo Application:
   * Download: [UsbAccessoryDeviceDemo](https://github.com/SmartPOSSamples/UsbAccessoryDeviceDemo).
   * Usage: Install the [UsbAccessoryDeviceDemo.apk](https://ftp.wizarpos.com/advanceSDK/UsbAccessoryDeviceDemo_250610.apk) on the device that is directly connected to the cable.

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartpossdk.gitbook.io/cloudpossdk/faq/usb-serial-port/connect-accessory-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
