All pages
Powered by GitBook
1 of 1

Loading...

RMS SCRA Sample Code

Configuration Update

  • Go to the folder: rms_scra and open a terminal.

  • Connect the reader to a USB port.

  • Enter command below. Enter password if prompted. This is for device port access.

$ sudo ./rms_scra_config_update
  • A list of available configurations is returned. List depends on the firmware ID and RMS Profile. Example:

  • At the prompt, select a configuration by entering its number listed to its left. A sequence of commands are downloaded from RMS and sent to the reader. Status of the configuration is shown as updated or failed and the end of the sequence.

  • Whenever a configuration reports is up to date, it may be redone by entering *N, where N is the configuration. Example: *1

  • Go to the folder: rms_scra and open a terminal.

  • Connect the reader to a USB port.

  • Enter command below. Enter password if prompted. This is for device port access.

  • The sample code downloads the sequence of commands to update the EMV Tags and CAPKs available for the reader. Example:

  • Whenever a configuration result is: Configuration is up to date it may be redone by adding -f to force the update.

  • Go to the folder: rms_scra and open a terminal.

  • Connect the reader to a USB port.

  • Enter command below. Enter password if prompted. This is for device port access.

  • The parameters for the firmware update is as follows.

  • Example for updating MAIN firmware.

  • A sequence of commands are downloaded from RMS and sent to the reader. Status of the update is shown as finished or failed and the end of the sequence.

  • Whenever a firmware result is: Firmware is up to date. It may be redone by adding -f to force the update.

EMV Tags/CAPKs Update

Firmware Update

Device Serial Number:000F423536413943343130323432344141 Main Firmware ID:000D31303030303039323734613032
Response Code:200 ResultCode: 0 Result: Success
Configurations Available: 5
1: DataVariant
2: Mask6Zero4
3: EMVNotificationsBoth
4: Mask8Zero2Mod10
5: Mask8Asterisk4
Enter '1'...'5' to update configuration.
To force update configuration, enter '*' before the number ('*1'...'*5').
Enter '0' to exit:
Selected Configuration 1 Configuration: DataVariant Sending command [0900]
Response: 000A9011880B56A9C4000001
Sending command [1900]
.
.
.
Done Changing to DataVariant
Configuration DataVariant has been updated.
$ sudo ./rms_scra_emvtags_capks_update
Device Response: 000D31303030303039323734613032 Main Firmware ID:000D31303030303039323734613032
Device Response: 001F423536413531313130323232344141009014500B56A5110000005344C35C6F UIK:001F423536413531313130323232344141009014500B56A5110000005344C35C6F
Get Terminal Config (0) Extended Command: 03060008010000FA03DFDF26 Extended Response: 000000180016FA820012DFDF260E4D414754454B2044454641554C54
Result Code: 0000
Value: 4D414754454B2044454641554C54
Value String: MAGTEK DEFAULT DB Name: MAGTEKDEFAULT
Get Terminal Config (1) Extended Command: 03060008010001FA03DFDF26 Extended Response: 03950000
Get Terminal Config (2) Extended Command: 03060008010002FA03DFDF26 Extended Response: 03950000
Get Terminal Config (3) Extended Command: 03060008010003FA03DFDF26 Extended Response: 03950000
Get Terminal Config (4) Extended Command: 03060008010004FA03DFDF26 Extended Response: 03950000
.
.
.
Done Loading MagTek Default Contact Tags and CAPK Configuration MAGTEKDEFAULT has been updated.
$ sudo ./rms_mms_emvtags_capks_update -f
$ sudo ./rms_scra_firmware_update
rms_scra_firmware_update TYPE
    TYPE (type of firmware): MAIN|BLE
Firmware update is available.
New Firmware: Main_1000009274 version A02 firmware
.
.
.
Do you want to update the MAIN firmware? (y/N)
Updating MAIN firmware...
Beginning mDynamo firmware Main 1000009274 version A02 firmware Updating firmware...
.
.
.
Sending command [94255A00044A6000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFF]
Response: 0000
Sending command [95015A] Response: 0000
Sending command [0200]
Response: 0000
Wait for 15000 ms... Done waiting.
Detecting device...
.
.
.
Device detected.
Sending command [970100]
Response: 0000
Finished mDynamo Firmware-1000009274-A02 Update MAIN Firmware update completed.
$ sudo ./rms_scra_firmware_update MAIN -f