Difference between revisions of "Microcontroller"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(AVR Commands)
(AVR Commands)
Line 6: Line 6:
  
 
When you push the power button or initialize button, a corresponding command is send to the AVR by the ppc_uartd daemon.
 
When you push the power button or initialize button, a corresponding command is send to the AVR by the ppc_uartd daemon.
 +
 +
See here for a description on how to run the kurobox [[Survive_without_ppc_uartd|without ppc_uartd ]]
  
 
== Sending commands to the AVR==
 
== Sending commands to the AVR==

Revision as of 12:14, 15 May 2006

AVR Commands

The AVR controls the hardware of the Kurobox, such as the power button and LEDs. It is connected to /dev/ttyS1. To control the hardware, send commands to it.

When you push the power button or initialize button, a corresponding command is send to the AVR by the ppc_uartd daemon.

See here for a description on how to run the kurobox without ppc_uartd

Sending commands to the AVR

To send commands to the AVR,

linkstation # echo -n "commands" > /dev/ttyS1
Listof known commands
Command Resp Comments
\30\30\30\30  ? Send by /www/script/melsub_diskcheck.sh
[[[[ OK POWER LED blinks slowly.
]]]] OK A cooling fan begins high-speed rotation.
\\\\ OK A cooling fan begins low-speed rotation.
>>>> ? ppc_uartd sends them on boot.
AAAA ? ppc_uartd sends them on boot.
CCCC OK reboot send them before shutdown -r now / reboot.
EEEE OK shutdown send them before shutdown -h now.
FFFF ? ppc_uartd sends them on boot.
JJJJ ? ppc_uartd sends them on boot.
KKKK ? ppc_uartd sends them on boot.
QQQQ ? ppc_uartd sends them on set timer.
RRRR ? end of clear flash memory.
SSSS ? start of clear flash memory.
TTTT OK finish update flash memory stop blinking POWER, DISK FULL and DIAG LED.
UUUU OK Start update flash memory start blinking POWER, DISK FULL and DIAG LED.
VVVV OK Turn off DISK FULL LED
WWWW OK Turn on DISK FULL LED
XXXX OK DISK FULL LED stops blinking
YYYY OK DISK FULL LED starts blinking
ZZZZ OK POWER LED stops blinking slowly.
gggg OK DIAG LED starts 3 times blink(partition error) and shutdown.
iiii OK DIAG LED starts 4 times blink(problem in the cooling fan) and shutdown.
kkkk OK DIAG LED starts 5 times blink(problem in the flash memory) and cut power(not shutdown).
mmmm OK DIAG LED starts 6 times blink(problem in the hard drive) and shutdown.
oooo OK DIAG LED starts 7 times blink(problem in RAM/LAN/HDD controller) and shutdown.
Source:AVR commands