Managing Reader Configurations
The reader supports managing the reader configuration files, called profiles. The reader configuration is typically managed
The list of configurations supported by a reader can be obtained from API rm.Profile.GetList. This method is supported only on FX7400.
The upload of configuration file can be performed using rm.Profile.ExportToReader. The absolute file path of the source file must be specified. For example, “C:\Profiles”
The method rm.Profile.ImportFromReader helps to download the reader configuration file from the reader to the client i.e. the application where runs. The absolute path of the destination is required to download the file. For example, “C:\Profiles”. The name of profile to be downloaded can be obtained using rm.Profile.GetList. Readers of XR-Series supports only one config file, i.e. “Config.xml”.
The method rm.Profile.Delete deletes the profile from the reader. To activate a profile in the reader, the method rm.Profile.SetActive can be used.
This functionality is only supported in fixed reader not applicable to hand held readers.
try
{
string[] profileList = rm.Profile.GetList(out activeProfileIndex);
// import all profiles from reader
Console.WriteLine("Profile List:");
for (int n = 0; n < profileList.Length; n++)
{
Console.WriteLine(" " + profileList[n]);
rm.Profile.ImportFromReader(profileList[n], profilePath);
}
profileName = profileList[profileList.Length - 1];
Console.WriteLine("Active Profile Index is " + activeProfileIndex.ToString());
rm.Profile.SetActive(profileList[0]);
// export a new profile to reader
rm.Profile.ExportToReader(profileName, profilePath, false);
}
catch (OperationFailureException exception)
{
Console.WriteLine("Profile " + exception.Message);
}