Wavetronix SmartSensor Matrix (SS-225) - User Guide User Manual

Page 116

Advertising
background image

APPENDIX

115

2 Perform a batch upgrade of sensors to a new version of firmware. As a simple example,

a Microsoft Windows batch file can be used to sequentially upgrade all the sensors

listed in the file.

Note

The auto upgrade command line feature will connect to one sensor at a time and
upgrade if necessary. If connection is successful but upgrade is not necessary, then
SSMA will automatically close the connection and shut down. If a long list of sen-
sors is in the process of being upgraded and a problem occurs when connecting to
or manually upgrading a specific sensor, it may be possible to manually abort for an
individual sensor and return to it later.

SSMM is launched using the Windows command shell and the connection parameters are

passed as command line arguments. The connection parameters are organized as follows:

˽

Argument 1 is a character string that specifies the connection type as Internet or serial.

˽

Argument 2 is a character string that specifies the sensor address connection method as:

AutoDetect (will auto-discover sensor IDs at the specified connection endpoint

and present a selection list)

Broadcast (will connect to the first sensor listed in Argument 3, or first sensor it

finds in a search. If AutoUpgrade is specified, it will upgrade all sensors.)

UseID (will connect to the specified sensor ID)

˽

Argument 3 is a character string that specifies the ID for the UseID or Broadcast con-

nection. A comma separated list of ID’s may be given. SSMM will connect to the first

sensor listed, but will list all valid devices. “Unknown” can be used for the “Broadcast”

connection method, which means SSMM will search for all sensors at the intersection

and connect to the first. The “AutoDetect” connection method ignores this argument.

The remainder of the arguments depends upon the connection type.

For Internet connections arguments 4–8 are as follows:

˽

Argument 4 is the IP address with the standard dotted decimal notation (e.g.

10.10.10.10).

˽

Argument 5 is the IP port (e.g. 4002).

˽

Argument 6 is the communication timeout specified in ms (e.g. 1000).

˽

Argument 7 is the buffer size as specified in bytes (e.g. 02048).

˽

Argument 8 is for automatically upgrading the sensor (e.g. AutoUpgrade).

If you are making an Internet connection and arguments 2–7 are not specified, a connec-

tion will be made assuming the last settings used. For example, it is possible to connect to

the last sensor connected to with the following command line:

Advertising