
All commands available on the data interface (
more) can also be send via batch file. Enter the commands just as they would be entered on a terminal into a file called "autorun.txt". Place this file on the SD memory card. Insert the card into the Avisaro device. Power-up the device. All commands are executed.
Download an example file
here . This file sets the interface to RS232 and configures the baudrate. The WLAN interface is configured to connect to a Access Point called "your-ssid" with wep encryption. The script "wc1-6.txt" is loaded and execution flag set to autostart. Finally the script is started right away.
echo Schnittstelle einstellen
prot rs232
rs232 9600 8 N 1 NONE
echo WLAN Settings
wlan ssid your-ssid
wlan mode infra
wlan security WEP104
wlan WEP 12345678901234567890abcdef
echo Script laden und ausführen
load wc1-6.txt
run auto
run
Checking configuration settings - like reading out the firmware version - can also be done using the SD card. This is particulary usefull, if the data interface is not accessible. Using the command
prot file now
in the beginning of the autorun.txt file, will redirect all outputs to a file called "outfile.log" (
Details). Please note, that the regular data inferface (like RS232, CAN) is temporarily disabled - only as long as the prot file now command is used.
Example:
prot file now
ver?
Writes the firmware version into the file outfile.log.
The last command must be terminated with a 'new line' (= cr and lf) in order to be executed.
There is no special feedback - like a LED - to the user that the autorun is finished with execution and whether or not there were errors. However, all command results are printed to the data interface - just as if those commands would have been typed in by the user.
To see the command results, check the outputs to the data interface. If this data interface is not available - for example it is connected fix to a sensor - there is the option to use the "prot file" command.
details