Difference between revisions of "Edge Server Console"

From RifidiWiki

Jump to: navigation, search
(New page: This page lists the various commands that you can use to control and configure the edge server from the OSGi console. =Use= Start up the edge server and wait for it to finish initializing....)
 
(Commands)
Line 8: Line 8:
 
: List the types of commands that are supported through installed command plugins
 
: List the types of commands that are supported through installed command plugins
 
;readers
 
;readers
: List the available configured readers adapter
+
: List the available reader configurations
 
;commands
 
;commands
: List the available configured commands
+
: List the available command configurations
 
; createreader <readertype> [<prop> <val>]*
 
; createreader <readertype> [<prop> <val>]*
: Create a configured reader adapter.  You must supply a readertype (from the output of the <tt>readertypes</tt> command).  If called with no other arguments, a reader adapter with default properties will be created. You may change default properties, by supplying <tt>prop val</tt> pairs. The output of this command will give you the ID of the configured reader adapter, which you will need to control the reader later.  A few examples:<br><tt>createreader Alien9800</tt> - Create an Alien9800 reader adapter with default properties.<br><tt>createreader Alien9800 ip 192.168.1.115 port 23</tt> - Create an Alien9800 with the supplied IP and Port properties.  
+
: Create a reader configuration.  You must supply a readertype (from the output of the <tt>readertypes</tt> command).  If called with no other arguments, a reader configuration with default properties will be created. You may change default properties, by supplying <tt>prop val</tt> pairs. The output of this command will give you the ID of the reader configuration, which you will need to control the reader later.  A few examples:<br><tt>createreader Alien9800</tt> - Create an Alien9800 reader configuration with default properties.<br><tt>createreader Alien9800 ip 192.168.1.115 port 23</tt> - Create an Alien9800 reader configuration with the supplied IP and Port properties.  
 
;deletereader <readerID>
 
;deletereader <readerID>
: Delete a configured reader adapter. You must supply the ID of the reader to delete (The ID was the output of the <tt>createreader</tt> command).
+
: Delete a reader configuration. You must supply the ID of the reader configuration to delete (The ID was the output of the <tt>createreader</tt> command).
 
;createcommand <commandtype> [<prop> <val>]*
 
;createcommand <commandtype> [<prop> <val>]*
Create a configured command.  You must supply a commandtype (from the output of the <tt>commandtypes</tt> command).  If called with no other arguments, a command with default properties will be created. You may change default properties, by supplying <tt>prop val</tt> pairs. The output of this command will give you the ID of the configured command, which you will need to control the command later.  A few examples:<br><tt>createcommand Alien9800-GetTagList</tt> - Create an Alien9800 command that gets tags with default properties.<br><tt>createcommand Alien9800-GetTagList tagtype 1</tt> - Create an Alien9800 command that gets only Gen2 tags.
+
Create a command configuration.  You must supply a commandtype (from the output of the <tt>commandtypes</tt> command).  If called with no other arguments, a command configuration with default properties will be created. You may change default properties, by supplying <tt>prop val</tt> pairs. The output of this command will give you the ID of the command configuration, which you will need to control the command later.  A few examples:<br><tt>createcommand Alien9800-GetTagList</tt> - Create an Alien9800 command configuration that gets tags with default properties.<br><tt>createcommand Alien9800-GetTagList tagtype 1</tt> - Create an Alien9800 command configuration that gets only Gen2 tags.
 
;deletecommand <commandID>
 
;deletecommand <commandID>
:Delete a configured command. You must supply the ID of the command to delete (The ID was the output of the <tt>createcommand</tt> command).
+
:Delete a command configuration. You must supply the ID of the command configuration to delete (The ID was the output of the <tt>createcommand</tt> command).
 +
;getproperties <id>
 +
: List the properties of the configuration.  The ID can either be a reader configuration ID or a command configuration ID.
 +
;setproperties <id> [<prop> <val>]*
 +
: Set the properties on a configuration.  You must supply either a reader configuration ID or a command configuration ID.  Then you can list <tt>prop val</tt> pairs.<br><tt>setproperties Alien9800_1 RFAttenuation 100</tt> Set the RFAttenuation to 100 on Alien9800_1 reader configuration.

Revision as of 20:15, 15 September 2009

This page lists the various commands that you can use to control and configure the edge server from the OSGi console.

Use

Start up the edge server and wait for it to finish initializing. Once it is done, you will be able to type commands at the prompt. It is also possible to interact with the edge server remotely. To do this, see the information on the console configuration option

Commands

readertypes
List the types of readers adapters that are supported through installed reader plugins
commandtypes
List the types of commands that are supported through installed command plugins
readers
List the available reader configurations
commands
List the available command configurations
createreader <readertype> [<prop> <val>]*
Create a reader configuration. You must supply a readertype (from the output of the readertypes command). If called with no other arguments, a reader configuration with default properties will be created. You may change default properties, by supplying prop val pairs. The output of this command will give you the ID of the reader configuration, which you will need to control the reader later. A few examples:
createreader Alien9800 - Create an Alien9800 reader configuration with default properties.
createreader Alien9800 ip 192.168.1.115 port 23 - Create an Alien9800 reader configuration with the supplied IP and Port properties.
deletereader <readerID>
Delete a reader configuration. You must supply the ID of the reader configuration to delete (The ID was the output of the createreader command).
createcommand <commandtype> [<prop> <val>]*

Create a command configuration. You must supply a commandtype (from the output of the commandtypes command). If called with no other arguments, a command configuration with default properties will be created. You may change default properties, by supplying prop val pairs. The output of this command will give you the ID of the command configuration, which you will need to control the command later. A few examples:
createcommand Alien9800-GetTagList - Create an Alien9800 command configuration that gets tags with default properties.
createcommand Alien9800-GetTagList tagtype 1 - Create an Alien9800 command configuration that gets only Gen2 tags.

deletecommand <commandID>
Delete a command configuration. You must supply the ID of the command configuration to delete (The ID was the output of the createcommand command).
getproperties <id>
List the properties of the configuration. The ID can either be a reader configuration ID or a command configuration ID.
setproperties <id> [<prop> <val>]*
Set the properties on a configuration. You must supply either a reader configuration ID or a command configuration ID. Then you can list prop val pairs.
setproperties Alien9800_1 RFAttenuation 100 Set the RFAttenuation to 100 on Alien9800_1 reader configuration.
Personal tools