From 60e73110869242ff0154122c133562d10a6e5dbf Mon Sep 17 00:00:00 2001 From: Jason White Date: Tue, 2 Apr 2019 03:02:19 -0500 Subject: [PATCH] Update device-specific.markdown (#9099) * Update device-specific.markdown Expand Aeotec Z-Stick section to provide alternative "pipe to cu" syntax for enabling/disabling "disco lights" on systems where redirection to serial devices doesn't work because the baud rate on the serial device reverts to 9600 when haas isn't running. * :pencil2: Tweaks --- source/_docs/z-wave/device-specific.markdown | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/_docs/z-wave/device-specific.markdown b/source/_docs/z-wave/device-specific.markdown index 50eb7ef7a05..845dc0fa1d9 100644 --- a/source/_docs/z-wave/device-specific.markdown +++ b/source/_docs/z-wave/device-specific.markdown @@ -45,7 +45,13 @@ Turn on "Disco lights": $ echo -e -n "\x01\x08\x00\xF2\x51\x01\x01\x05\x01\x50" > /dev/serial/by-id/usb-0658_0200-if00 ``` -If the above two commands give errors about not having that device, you should try replacing the `/dev/serial/by-id/usb-0658_0200-if00` with `/dev/ttyACM0` or `/dev/ttyACM1` (depending on which tty your aeotec stick is addressed to). +If the above two commands give errors about not having that device, you should try replacing the `/dev/serial/by-id/usb-0658_0200-if00` with `/dev/ttyACM0` or `/dev/ttyACM1` (depending on which tty your Aeotec stick is addressed to). + +On some systems, such as macOS, you need to pipe the output of the `echo` command, rather than redirecting to the serial device, to something like `cu` (replacing `/dev/zstick` acccordingly) to properly set the baud rate to 115200 bps: + +```bash +echo -e -n "...turn on/off string from examples above..." | cu -l /dev/zstick -s 115200 +``` ### {% linkable_title Razberry Board %}