Android

Revision as of 15 May 2012 06:32 by cparker (Comments | Contribs) | (OpticonRL for Android)

Android is a Linux-based operating system for mobile devices such as smartphones and tablet computers. It is developed by the Open Handset Alliance, led by Google, and other companies. Google releases the Android code as open-source, under the Apache License. The Android Open Source Project (AOSP) is tasked with the maintenance and further development of Android.

How do I use a barcode scanner with an android device?

  • If your Android device supports Bluetooth HID this is the easiest method for connecting an Opticon barcode scanner to an android device.
  • If your Android device USB-HID (here I am referring to the traditional cabled USB connection) like the Toshiba Thrive, you can use any of Opticon's cabled USB-HID capable products.
  • If your Android device doesn't support Bluetooth HID you can use USB-VCP and an android application called OpticonRL. All bluetooth capable android devices should have support for Bluetooth SPP. OpticonRL is an application that converts barcode data coming over a serial port into key presses. In effect, the barcode data is wedged into whatever application is at the forefront and has text focus, as if it were typed.

Why don't all android devices have support for Bluetooth HID?

  • Since Android is an open-source operating system device manufacturers are free to make customizations for their specific implementation, these customizations often include changing support and specifics of implementation of the HID Bluetooth profile. For this reason some android devices support Bluetooth HID and some android devices do not support Bluetooth HID.
  • Most but not all android tablets, and many new android phones do have support for Bluetooth HID.
  • Although some device manufacturers added it to their implimentation, support for Bluetooth HID was not added to the main Android OS pool until Android OS 3.1.

OpticonRL for Android

Instructions

Using an OPN2002 with an Android device via Bluetooth SPP and OpticonRL

Connecting an OPN-2002 with an Android device is a simple process. The unit must be configured into the proper mode, and in most cases a software wedge like OpticonRL must be present on the Android device to translate barcode data into keystrokes.

This video tutorial may also be helpful, as it illustrates the process below.

Note that if you are using a Galaxy S, Galaxy S 4G, or any other Android device that supports HID-mode Profile, you do not need to follow these instructions. Instead, follow the instructions for HID-mode from the second page of the Quick Start Guide.

Initial Setup

  1. Install OpticonRL and the OpticonRL Soft Keyboard from the Android Marketplace or Google Play store. You can locate OpticonRL by searching for "OpticonRL" with no spaces.
  2. Print the first page of the Generic Quick Start Guide. Scan the barcode in step 1 to set the OPN-2002 to Bluetooth-SPP mode, and then scan the barcode in step 2 to set the PIN code on the OPN-2002 to "0000."
  3. Turn Bluetooth on on the Android tablet. In most cases this can be accomplished by dragging the status bar at the top of the screen down and then tapping once on the Bluetooth icon.
  4. With the OPN-2002, hold down the small key until the device chirps and the LED starts flashing blue. This indicates that it in discoverable mode.
  5. On the Android tablet, open OpticonRL. Choose “Scan for Devices.” Select your OPN-2002 from the resulting list, and follow the instructions to pair it. When the device prompts you for a PIN code, enter "0000." The OPN-2002 will beep once and stop flashing blue when the connection is successful.
  6. Next, enable the OpticonRL Soft Keyboard, as Android disables any keyboard you’ve installed from the marketplace as a security feature. In most cases this can be found in the Settings app under Keyboards and Languages.
  7. Finally open up any app with a text field or text editor in it. Tap and hold on the text field to change the input method to “OpticonRL Soft Keyboard.” From here, scan barcodes.

Usage Instructions

If the OPN-2002 disconnects from the Android device for any reason, you can re-establish the connection by once again putting the OPN-2002 into discoverable mode using the small key, then opening OpticonRL back up. OpticonRL automatically seeks out and reestablishes connections with any paired Opticon devices when it starts up.

If you would like to set the OPN-2002 to press ENTER after every barcode, print this Opticonfigure barcode sheet, then scan each barcode on it from top to bottom.

Using the OPL9724 with the Galaxy Tab or another Android 2.2.1 device via Bluetooth SPP and OpticonRL

The following instructions are intended to walk through using the OPL9724 to transmit data real time toOpticonRL on a Galaxy Tab with Android 2.2.1.

On your Android device (Part 1)

To configure your Android device to connect to your OPL9724 follow the steps below. The specific menu navigation steps may differ with different implimentations or versions of the Android operating system.

  1. Install OpticonRL and OpticonRL Software Keyboard from the Android Marketplace.
  2. Navigate to Menu-> Settings->About device-> Status
  3. You should see the Bluetooth address of the Android device, write this down or otherwise take note of it.
  4. Tap back twice or otherwise navigate back to Menu-> Settings then select Locale and text-> Select input method
  5. Select OpticonRL Soft Keyboard
  6. Tap back once or otherwise navigate back to Menu->Settings then Select Wireless and Network-> Select Bluetooth Settings
  7. You should now be able to see the Bluetooth Settings
  8. If Bluetooth is not checked then please select Bluetooth to turn the device's bluetooth module on.

On the OPL9724

  1. These instructions assume you are using the most recent Firmware OS and Firmware Application. If you are not then please update the firmware using the instructions in the Loading Firmware section above.
  2. Press and hold all three buttons to access the OS System Menu. In the OS System Menu you can navigate up and down by pressing the '1' and '2' buttons, and you can select options by pressing the center key.
  3. Toggle down, and select "Input PINcode".
  4. Input and submit a PIN code; to ensure the best compatiblity across devices I recommend using the PIN code 0000. When selecting a PIN code, press 1 to change the value of the character, press 2 to move the cursor to the next character, and press trigger to submit the PIN code.
  5. Toggle down, and select "Input address".
  6. Press 1 to select Manual
  7. Input and submit the Bluetooth address of your android device. When entering a Bluetooth address, press 1 to change the value of the character, press 2 to move the cursor to the next character, and press trigger to submit the Bluetooth address.
  8. Toggle down, and select "Restart".
  9. Select 2 for Real Time.
  10. Press any key to continue.
  11. Press the center key for Scan labels.
  12. Select Master when prompted.

On your Android device (Part 2)

  1. We left the Bluetooth setting menu open on your Android device. Select "Visible" to make your Android device discoverable.
  2. A Bluetooth pairing request will pop up, enter the PIN code you used on your OPL9724, then select OK.
    • You may receive the same Bluetooth pairing request message twice. This is okay, simply enter your pin code again.
    • If you see the message "Bluetooth Error press any key" on the OPL9724, you may have waited to long to enter the pin code on the Android device, or you may not be using the same PIN code on your OPL9724 as on your Android device. Verify your PIN code, then attempt to pair once again.
  3. Navigate to any application with a text field, and scan an available barcode to verify that you have successfully set up OpticonRL for Android.

Compatibility

Compatibility Testing done with the OPN2002

The OPN2002 supports two bluetooth profiles, bluetooth HID, and bluetooth SPP.

Device Name Device OS Bluetooth Profile Compatible Notes
Samsung Galaxy S 4G Gingerbread Bluetooth HID YES Parenthesis and colons were found prefixing the barcode data when used with RL installed, a factory reset should fix this.
Samsung Galaxy S 4G Gingerbread SPP via RL Partial Works properly if bluetooth is turned on first. Otherwise it hangs waiting for the user to allow it to turn Bluetooth on.
Samsung Galaxy Note Gingerbread Bluetooth HID Yes Works properly if you select the Android keyboard rather than the Samsung keyboard.
Toshiba Thrive AT105-T1016 Android 3.1 Honeycomb Bluetooth HID Yes Works perfectly with the OPN2002 using the HID QSG.
HTC Thunderbolt 4G LTE with Google Android 2.2.1 SPP via RL YES Works perfectly.

Compatibility testing done for OpticonRL for Android

Other testing was done to verify the functionality of OpticonRL for Android using the following devices.

Motorolla Droid
Thunderbolt
HTC
Galaxy Tab
Archos 101
Toshiba Thrive

Download

  • Download the newest version of OpticonRL for Android here. Download
  • Android Bluetooth Guide for the OPN2002 and the OPL2724, this document details how to use the OPL2724 with your android device. Download