Quick Start Guide
Quick Start Guide
System Requirements
Android SDK with Platform 4.0.3
Eclipse IDE with ADT plugin
Panasonic Toughpad FZ-A1, JT-B1, or FZ-X1
Compatible accessories:
o Baracoda Bluetooth barcode reader (FZ-A1, JT-B1, and FZ-X1)
o Jadak sled (FZ-A1 only)
o FTDI or Prolific USB-to-serial adapter (JT-B1 only)
o FZ-X1 Magstripe Reader Gadget (FZ-X1 only)
Introduction
Toughpad API provides access to Panasonic specific features on the FZ-A1, JT-B1 and FZ-X1 Toughpad devices
for developers to use. Currently access to the following features is provided:
1) Barcode Reader – Access and scan 1D and 2D barcodes via the FZ-A1 Jadak Sled accessory, the built-in
FZ-X1 barcode reader, or an external Baracoda Bluetooth barcode reader.
2) Magnetic Stripe Reader – Access and scan magstripe cards such as credit cards or debit cards via the FZ-
A1 Jadak sled accessory or FZ-X1 Magstripe Reader Gadget.
3) Serial Port – Communication with serial devices through a USB-to-serial converter with an FTDI or
Prolific chip. JT-B1 only.
4) Application Buttons – Taking control of the device’s application buttons (A1 – A3 & side buttons).
Library – Contains the Toughpad API JAR library that Android applications should link against to utilize
Toughpad API.
Service – Contains the Toughpad API Service which must be installed on any Toughpad device before
the API can be used.
Documentation – Contains this document and javadoc generated documentation for the Toughpad
API.
Samples – Sample applications demonstrating use of Toughpad API.
ADB Drivers
To begin development, the Toughpad device needs to be connected to the PC via a micro-USB cable and the
proper ADB drivers installed depending on the device.
http://pc-dl.panasonic.co.jp/itn/drivers/d_menu_en.html#Toughpad
http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver
From the “Service” folder in the SDK, execute the ADB command:
Once Toughpad API Service is installed, applications that use the API will work on the device.
The USB-to-serial adapter needs to be connected into a USB to micro-USB cable, which is then connected with
the JT-B1’s micro-USB port.
During the first time your application runs, a dialog will appear asking if you would like to allow Toughpad API
service to access the USB device, please select “Use by default for this USB device” and then click “OK”.
Copy the “Toughpad.jar” file from SDK “Library” folder into your Android project’s “libs” folder; this will cause
the compiler to statically link against the Toughpad SDK library, allowing it to interface with the “Toughpad API
service”.
The API must be initialized before use, and uninitialized when it will not be used anymore (or the application is
closed).
For this purpose, the ToughpadApi.initialize() and ToughpadApi.destroy() method calls are
available. It is recommended to call these methods in the onCreate() callback and onDestroy() callbacks in
the activity.
The initialize() method takes a ToughpadApiListener parameter which is invoked when the API has
been initialized. Only after the onApiConnected() callback has been called can the API be used.
For further information, please look into the provided samples that demonstrate usage of the various APIs.