Configuring the MSR

Configuration files
  • ..\parameter\client\hal.properties
  • ..\parameter\client\jpos.xml

To configure the MSR device, proceed as follows:

  1. Enable the MSR device in the configuration file hal.properties:
     DeviceEntryTypes.MSR_RS232_ISO_SurePOS_500.id=MSR_RS232_ISO_SurePOS_500
     DeviceEntryTypes.MSR_RS232_ISO_SurePOS_500.deviceCategory=MSR
    DeviceEntryTypes.MSR_RS232_ISO_SurePOS_500.enabled=true
    DeviceEntryTypes.MSR_RS232_ISO_SurePOS_500.active=true
    DeviceEntryTypes.MSR_RS232_ISO_SurePOS_500.className=
     com.gk_software.pos.hal.device.magnetic_stripe_reader.JPosMagneticStripeReader
  2. Configure the port in the file jpos.xml, if necessary:
    <JposEntry logicalName="MSR_RS232_ISO_SurePOS_500">
    ...
    <prop name="portName" type="String" value="COM3"/>
    ...
    </JposEntry>
Note:
A corresponding entry must exist in the file jpos.xml. The logicalName corresponds to the id of the MSR entry resulting from the file hal.properties.