SA-2000 CLI Commands

The Senitron SA-2000 Reader can be operated from a Ubuntu linux Command Prompt by running the following commands:

Example commands:

Reading to a database, using an SA-2000 reader with two single antenna:
./MonsoonReader --serial_host 192.168.0.28 --serial_port 10002 -o --min_pop 2000 --max_pop 4096 --sleep 0 --db --dbhost 127.0.0.1 --dbname inventory_production --dbuser senitron --dbpass senitronpwd --num 17 --read_time 2

Reading to the console, using an SA-2000 reader with two single antennae:
./MonsoonReader --serial_host 192.168.0.28 --serial_port 10002 -o --min_pop 2000 --max_pop 4096 --sleep 0 --num 17 --read_time 2 --console

Reading to the console, using an SA-2000 reader with an single antenna:
./MonsoonReader --serial_host 192.168.0.28 --serial_port 10002 --single --read_time 1 --console

Reading to the console, using an SA-2000 reader with an single antenna at lower power of 15db:
./MonsoonReader --serial_host 192.168.0.28 --serial_port 10002 --single --read_time 1 --console --power 150

Reading to the console, using an SA-2000 reader with an single antenna searching for 1 specific tag EPC:
./MonsoonReader --serial_host 192.168.0.28 --serial_port 10002 --target_tag 126000000000000000000315 --read_tag --console

reading to the console, using an SA-2000 reader, searching for a specific tag, and re-writing a new tag ID to it.
./MonsoonReader --serial_host 192.168.0.28 --serial_port 10002 --target_tag 126000000000000000000315 --write_tag 888888888888888888888888 –console

 

SA-2000 MonsoonReader Software Command Line Parameters

Expected Path     /opt/CDM/MonsoonReader --help

Help command /opt/CDM/MonsoonReader --help

Output Options

--console                    Output to console

--csv                          Output to CSV

--raw                          Output raw bytes to file. Binary Format.

--db                            Output to database

--dbhost                      Database host

--dbport                      Database port default arg (=5432)

--dbname                    Database name

--dbuser                      Database user

--dbpass                     Database password

Pi Exclusive Commands (only run these on the Pi)

--stream                     Output to network stream port#

--control                      Control port (receive commands) port#

--logfile                       Log file. default /var/log/MonsoonReader.log

--logsize                     Max. size in bytes for per log file

--lognum                     Max. number of log files to store Default = (=3)

--cache                       Summarize cache by N seconds default (=60 seconds)

--ccache                     Clear the stored cache

--nocache                   Disable stream caching (Cache enabled by default)

Exclusive Remote Commands

--get_cache                Get the contents of the cache

--cstream                    Continuous streaming from remote Monsoon.

--monsoon_host          Remote Monsoon host

--monsoon_cport         Remote Monsoon control port default port 6000

--monsoon_sport         Remote Monsoon streaming port (required to receive data from remote reader)

Mux Commands

--cmux                        Enable mux via the reader GPIO pins

--pmux                        Enable mux via the Raspberry Pi GPIO pins

--mxa                         Set mux antenna numbers (eg. --mxa 3,4,5)

--mux_cycles              Number of mux cycles (-1 for infinite) default = -1

--mux_test                  Mux test of the specified antennas (eg. --mux_test 3,4,5)

General Commands

--stop                         Stop current operation, waits until the active inventory command has completed

--abort                         Abort current operation - interrupts the active inventory command

--status                       Query the status of the remote monsoon

--override                    Override the current executing command

--power                       Power Level    or use shortcut [-p] arg (=300)

--identify                     Return the serial number of the reader

--num                         Reader number   -n   arg (=1)

--antenna                    Optional antenna number, defaults to 1   [-a]

--pop arg                    Estimated population size

--cycles                      Number of cycles. eg -c20 or -c65353(unlimited)     [-c]  default =20

--read_time                 Number of seconds to read per antenna (this supercedes cycles. Use cycles or read_time, not both.)

--sleep                        Wait time between cycles (seconds) default =3

--session                    Set tag session (0,1,2,3)

--target                       Set tag session target (A or B)

--help                          Help

--verbose                    Verbose logging   -v

--reset                        Reset reader

--reboot_reader           Reboot the remote reader (external script)

--reboot_pi                  Reboot the remote Raspberry Pi

Read / Write / Kill Commands

--target_tag                EPC of tag to target for read/write/kill operations

--target_tag_pwd         Target tag access password

--read_tag                   Read data from target_tag

--write_tag                  New EPC to write to target tag

--kill_tag                     Kill the target tag using specifed kill password

Serial Reader (pending testing & further development)

--serial                        Local serial device

--serial_host               Remote serial host

--serial_port                Remote serial port

--single                       Single cycle inventory   -s

--coscillating               Oscillating cycle inventory   -o

--infinite                      Infinite cycle inventory   -i

New 2020 Add-on App "unique_epcs" to read unique # of Tags from the command Prompt for the purposes of fast analytics on read perperformance:
"example read for 20 seconds and see how many tags are read total."

example command ./MonsoonReader --power 290 --read_time 5 --serial_host 10.101.7.236 --serial_port 10002 --cmux --mxa 5 --console -s --tagfocus --sleep 0 | ./unique_epcs