beautypg.com

Configuring readers, Reader configuration methods, Paramget() – ThingMagic Mercury API v1.23.0 User Manual

Page 64: Paramset(), Paramlist(), Save and restore configuration, Paramget() 64 paramset() 64 paramlist() 64, After the

background image

Configuring Readers

64

Level 2 API

Configuring Readers

Reader Configuration Methods

Each

Reader Object

has a set of named parameters which provide device metadata and/

or provide configuration settings. The names of parameters are strings; case
insensitive
. Related parameters are grouped together in a filesystem-style layout, for
example, the parameters under

/reader/antenna

provide information about and allow

configuration of the devices antennas.

paramGet()

The

paramGet() method retrieves the value of a particular named parameter. The

returned type is generic (Object) and must be cast to the appropriate type.

paramSet()

The

paramSet() method sets a new value for a parameter. The type of the value that is

passed must be appropriate for the parameter. Not all parameters can be set.

paramList()

The function

String[] paramList() returns a list of the parameters supported by the

Reader instance. Readers of different types (serial, RQL, etc.) support different
configuration parameters.

Save and Restore Configuration

M6e Only

The M6e supports configuration settings to be saved in flash providing configuration
persistence across reboot. Currently (M6e FW v.1.B) the following settings can be saved
across reboots:



/reader/region/id



/reader/tagop/protocol