Echo Commands

Any questions about the Command Line Interface can be placed here!
Forum rules
We've moved! Head over to Synology Community ( to meet up with our team and other Synology enthusiasts!
User avatar
Posts: 54
Joined: Wed Sep 10, 2014 12:52 am
Location: United Kingdom

Echo Commands

Unread post by TylerDurden » Wed Sep 10, 2014 1:19 am

Hi all.

I'm interested in learning more about the echo commands that you run to /dev/ttyS1. For those of you who don't know what the echo commands are, they are simply command line entries that will allow you to modify the LED lights on the front of a DS/RS including playing a short beep or long beep of the unit.

The commands themselves do not hold much value to the generic user but I'm interested in finding more information out about any extra commands that haven't been found yet. The most commonly used ones that you can also find in the Synology Wiki and the German forums are as follows:

Code: Select all

echo 1>/dev/ttyS1 # Immediate power off (not graceful)
echo 2>/dev/ttyS1 # Emit a short beep tone
echo 3>/dev/ttyS1 # Emit a long beep sound
echo 4>/dev/ttyS1 # Power LED on solid blue
echo 5>/dev/ttyS1 # Power LED flashing blue
echo 6>/dev/ttyS1 # Power LED off
echo 7>/dev/ttyS1 # Status LED off
echo 8>/dev/ttyS1 # Status LED on solid green
echo 9>/dev/ttyS1 # Status LED flashing green 
echo A>/dev/ttyS1 # USBCopy LED flashing green
echo @>/dev/ttyS1 # USBCopy LED on solid green
echo B>/dev/ttyS1 # USBCopy LED off
echo C>/dev/ttyS1 # Immediate reset (not graceful)
echo :>/dev/ttyS1 # Status LED on solid amber
echo ;>/dev/ttyS1 # Status LED flashing amber
In order to use these commands you'll need to connect via SSH (Secure SHell) using a CLI (Command Line Interface) program such as putty or SecureCRT. Once you have this then you'll need to log in at root level and then you can enter the commands. You can also do multiple echo commands at the same time.

Example 1: Make the Status LED flash green

Code: Select all

echo \9> /dev/ttyS!
Example 2: Have the unit emit a beep and make multiple LED lights flash

Code: Select all

echo \; \3 \A \5> /dev/ttyS1
Example 3: Have all LEDs switch back to solid

Code: Select all

echo \8 \ 4 \B> /dev/ttyS1
I hope this has been useful for someone. I'm currently trying to discover more and their actions but if anyone else can expand further on this, please share.
"You're not your job. You're not how much money you have in the bank. You're not the car you drive. You're not the contents of your wallet. You're not your f-ing khakis. You're the all-singing, all-dancing crap of the world."

User avatar
Twisted World
Posts: 558
Joined: Sun Jun 12, 2016 8:29 am
Location: Netherlands

Re: Echo Commands

Unread post by Twisted World » Sun May 06, 2018 6:59 am

Even thought it is almost 4 years later now and nobody seemed to have replied to this post, I just wanted to thank you for the list.

I am running some scripts that automatically mount shares, pull backups from websites and then unmount again. Abusing the LEDs on the machine as a visual indicator comes in handy as a quick check if the script is still running or not. No need to login or check my notifications when I'm having my first coffee at the office. :wink:
The move to the new "community" is just another example of Synology not caring about customer wishes and [Please control your language] us all in the behind. I'll be leaving this forum and NOT be joining the new "community". It was a fun ride. Please don't expect any replies from me because the e-mail address associated with my Synology account will be disabled. Goodbye and thanks for the great time while it lasted.


Return to “Command Line Interface”