Accessing the Control Panel through its shell interface on UART_0

In this scenario, you are a local user who wishes to access the Control Panel through its UART_0 shell interface. You are equipped with a laptop. Over this interface, you have administrator right-access to the Control Panel's internal file system (read, write, execute), and you have access to several functions that interact with sensors & actuators.

1) Connecting to the shell.

2) Listing all available commands.

Type help followed by enter: this will execute the help command that lists all available commands and a short description for each:

ShellHelpOutput.gif

Note that the prompt $> appears again after completion of the command, waiting for the next command. There are three main families of function:

3) An example of an actuator command : write a string to the LCD user message zone.

Type on the shell: set_actuator_value actuator=lcd usrmsg="Hello Goodbye!" time=10 This command writes the string "Hello Goodbye!" to the LCD user message zone (i.e. the 4th line) in 10 seconds from the moment you hit enter. The "time=10" argument is optional.

4) An example of a sensor command : get the current temperature.

Type on the shell: get_sensor_value sensor=temp Once enter is hit, this command will display on the next line of the shell the current temperature log. Example:

ShellGetTempVal.gif

The above displayed log is made of three fields: the sensor name, the current date, the sensor value.

5) Examples of file system commands.


Contact Information

For further information, visit Atmel AVR32.
Support and FAQ: http://support.atmel.no/

Generated on Fri Feb 19 02:22:49 2010 for AVR32 - Control Panel demonstration. by  doxygen 1.5.5