IDTECH SecuRED Encrypted Magstripe Reader

JPOS Reference Guide for Windows

Document Revision: A. 9/9/13

Model Number: 80128504-001

Table of Contents

  1. Introduction
  2. System Requirements
  3. Reference Document
  4. Environment Build
  5. Run POSTest
  6. A Sample for using MSR JPOS

1. Introduction

This document provides information for using JPOS Service Object (SO) for MSR readers.

2. System Requirements

This JPOS Service Object is for Windows XP, Windows Vista, Windows 7 and Windows 8.

3. Reference Document

  1. Unified POS Retail Peripheral Architecture Version 1.13.1
  2. International Standard for Implementation of Point Of Service Peripherals

4. Environment Build

Install Sun JRE 1.5 or JDK 5.0, JRE 6 or JDK 6, JRE 7 or JDK 7.

Download the newest JRE 1.5 installation package from: http://java.sun.com/j2se/1.5.0/download.jsp, then click: Download JDK 5.0 Update and select a proper platform JDK version to download. Install the package and make sure the "java" command functions properly. There may be a need to add the JRE bin directory into the system environments variables by following steps:

For Microsoft Windows XP

  1. Right click "My Computer" in the desktop
  2. Select the "properties" menu item
  3. Select "Advanced" tab
  4. Click button "Environment Variables"
  5. Select "Path" and insert the JRE bin directory.

When Java is working, the following can be observed in the command prompt:

C:\>java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" UM
-server to select the "server" UM
-hotspot is a synonym for the "client" UM [deprecated]
The default UM is client.
-cp <class search path of directories and zip/jar files>

Enter DOS command shell, and enter java. It shows information about how to use.

File Lists

The following files are included:

The .DLL files should be located in a directory specified in the PATH environment variable. For example, if the current working directory is included in the PATH variable, set PATH=%PATH%;..

Device Names: The jpos.xml file specifies the device names. Several entries exist in this file, with entry names such as:

"defaultMSR" is a copy of another entry and serves as the default name for the POSTest program.

The line <prop name="connector" type="String" value=" usbhid/0acd/2810 "/> specifies the connector driver name and configuration value. 0acd is the IDTECH Vendor ID; 2810 is the product ID.

jpos/res/jpos.properties: This file specifies which configure file is used. By default, it specifies the “jpos.xml”. Add jmsrso.jar to your CLASSPATH or specify it in the javac / java command.

Example:

set CLASSPATH=%CLASSPATH%;yourDir\jmsrso.jar
For example: if jmsrso.jar is placed in c:\so, it should be:
set CLASSPATH=%CLASSPATH%;c:\so\jmsrso.jar

5. Run POSTest

POSTest is the official recommended JPOS compatible test program. The release version includes the program, or it can be obtained from http://sourceforge.net/projects/postest/.

Steps:

  1. Unzip the file to a directory, for example, c:\temp.
  2. The directory structure should be similar to this:

Enter "c:\temp" Postest directory under the DOS command shell:

C:\temp>dir
Volume in drive C is NEW SYS
Volume Serial Number is AC64-BBF1
Directory of C:\temp
...
<DIR>
dest
<DIR>
ext
<DIR>
lib
<DIR>
POStest
0 bytes
5,738,045,440 bytes free

Then enter subdirectory "POStest":

C:\temp>cd POStest
C:\temp\POStest>

Then enter the following command to run POSTest:

C:\temp\POStest>postest

A POSTest program screen will appear, showing:

POSTest

The JavaPOS Device Tester.

v1.13.1

POStest is a community project under the direction of the JavaPOS working group. Original code donated by 360 Commerce.

Contributors:

Using the MSR Tab in POSTest:

  1. Click the "MSR" Tab.

The screen shows fields for MSR Reading, Authentication, and MSR Writing. Key fields include:

The logical name is the entry name in the jpos.xml file.

  1. Click the "Open" button, and then "Claim". Three beeps should sound from the device, indicating successful connection.
  2. Check the choices "Data event enabled" and "Device enabled".
  3. Observe the text field and swipe a card. The data from the card swipes should appear in the respective Track Data fields.
  4. Click "Release" or "Close" to release or close the JPOS connection. NOTE: This ensures the device returns to its normal state.
  5. Click "EXIT" to quit the program.

For more details, please check http://www.javapos.com and the release help files.

6. A Sample for using MSR JPOS

The following code is a sample:

import jpos.*;
import jpos.config.*;
import jpos.config.simple.*;
import jpos.loader.*;
import jpos.loader.simple.*;
import jpos.profile.*;
import jpos.services.*;
import jpos.util.*;
import jpos.util.tracing.*;

public class YourClass {
 public static void main(String[] args){
 MSR msr = new MSR(); /* new an instance */
 try{
 msr.open(TestConst.testdevicename);
 }catch(JposException e){
 System.err.print(e);
 }
 /**
 Do something here.
 */
 try {
 msr.close();
 }catch(JposException e){
 System.err.print(e);
 }
}
}

Important Note: If the reader has been authenticated, the application should cancel the authentication before closing the POS. Otherwise, the reader will stay in the authentication state for 120 seconds.

PDF preview unavailable. Download the PDF instead.

80128504-001-A-ID TECH SecuRED JPOS for Windows User Manual Microsoft Office Word 2007

Related Documents

Preview IDTECH Augusta Interface Developer's Guide: Firmware Commands & Protocols
This developer's guide provides comprehensive technical details for the IDTECH Augusta series payment card readers. It covers low-level firmware commands, communication protocols (ITP, NGA), USB interfaces, EMV L2 data handling, and MagStripe operations, essential for integrators and developers.
Preview IDTECH VP3350 Quick Start Guide: Mobile Payment Reader Setup and Operation
Comprehensive guide to setting up and using the IDTECH VP3350 mobile payment reader. Covers overview, Bluetooth pairing, iOS connectivity, LED indicators, mounting, security, and troubleshooting for the NEO 3 platform.
Preview Worldpay Hosted Payments Integration Quick Start Guide
A quick start guide for developers integrating Worldpay Hosted Payments using IDTECH's IPS Payment Bridge, detailing transaction parameters, setup types, and request formats (NVP and JSON).