XCB User Manual v1.0.0
XCB User Manual v1.0.0
XCB User Manual v1.0.0
V 1.0.0
All rights reserved. No part of the contents of this document may be reproduced or
transmitted in any form without the written permission of PAX Computer Technology
(Shenzhen) Co., Ltd.
The information contained in this document is subject to change without notice. Although
PAX Computer Technology (Shenzhen) Co., Ltd. has attempted to ensure the accuracy of the
contents of this document, this document may include errors or omissions. The examples and
sample programs are for illustration only and may not be suited for your purpose. You should
verify the applicability of any example or sample program before placing the software into
productive use.
I
Revision History
II
Contents
1 Introduction .....................................................................................................................5
1.1 Purpose..................................................................................................................5
1.2 What is XCB?........................................................................................................5
2 Command ........................................................................................................................7
2.1 Querying for Emulator/Device Instances................................................................7
2.2 Connect to the device/ emulator .............................................................................8
2.3 Startup/Shutdown the XCB server .........................................................................8
2.4 Connection Command ...........................................................................................9
2.5 Installation Command ............................................................................................9
2.6 Query Command ................................................................................................. 10
2.7 Telnetd Command ............................................................................................... 11
2.8 Forward Command .............................................................................................. 12
2.9 Disableme Command........................................................................................... 12
III
Table List
IV
Introduction
1 Introduction
1.1 Purpose
This manual provides a detailed description and comprehensive understanding about the XCB.
It is primarily targeted for developers, who are expected to know more about XCB, and help
them make a good use of it.
XCB is a versatile command-line tool that lets you communicate with Prolin platform. It is
modified from the Android Debug Bridge (adb), it has removed some unnecessary functions,
upgraded to a new tool with download and login functions, in additional, it also supports
serial port.
It has the following characteristics.
1) Uses the command line to communicate with emulator or device.
2) Allows multiple connection options, including serial port and physical link of TCPIP.
3) Multi-connection link. Users can create multiple logical links connect to device or
emulator at the same time.
It is a client-server program that includes three components:
1) A client, which runs on your development machine. You can invoke a client from a shell
by issuing an XCB command, and also can use TermAssist as the XCB client.
2) A server, which runs as a background process on your development machine. The server
manages communication between the client and the XCB daemon running on an emulator
or device.
3) A daemon, which runs as a background process on Prolin emulator or device instance.
2 Command
Before issuing XCB commands, it is helpful to know what emulator/device instances are
connected to the XCB server. You can generate a list of attached emulators/devices using
the devices command:
xcb devices
For the connection of emulator, if the server is running, it is defaulted to connect to the
running emulator and use the emulator name as the instance name, such as emulator: 5555.
Users can also specify a link connects to the emulator. When using an Ethernet connection,
the IP address must be 127.0.0.1 since the emulator and XCB servers in the same PC. The
usage is:
xcb connect 127.0.0.1: [port]
If there is only one emulator or device connected, the XCB command is sent to that device by
default. If multiple emulator/device instances are running, you must specify a target instance
when issuing xcb commands. To do so, use the -s option in the commands. The usage for
the -s option is:
xcb –s < instance name> <command>
For example:
xcb –s com:COM1 devinfo
Command Description
The commands are used for connecting the XCB server and emulator/device.
The commands are used for installing applications and system firmware.
Table 3 Installation Commands
xcb installer upuk <0-8> Uninstall the PUK xcb installer upuk 0
The commands are used to startup and shutdown telnet server by specifying an instance name.
The telnet commands make local users log on the telnet server of the remote device or
emulator, commands input in local can be run on that server and results will return to the local,
just like directly operating on the server console. It can implement remote operations and
control locally, and make it easier to debug and check information.
This function is only effective on the debugging machine.
connected device or
emulator terminal.
The forward command is use to established the socket connection between the XCB and
device or emulator by the specified port. In this way, the PC application as a XCB client can
transparently send data to the application of the specified listener port which is on the remote
device server. It is easy for the developers to enable the gdb debugging server by invoking
this command. (Users can also refer to the usage of Android adb forward command).
The command is used for closing the XCB server on the POS terminal.
Command Description