Zařízení očekává od hlídaného routeru, nebo serveru signál po RS232, pokud signál neobrdrží, tak tento server vypne na 2s a zapne, čímž dojde k restartu. Vhodné pro Linux servery a routery, fuguje i s Mikrotik OS...
-1x RS232 -kompaktní provedení
From MikroTik Wiki
Sometimes there's a need to send out some (short) text over a serial port to control other devices.
As RouterOS doesn't (yet?) provide a native command to do that, you can work around with the following little script:
/interface ppp-client add name="scripttemp" port=serial0 modem-init="I am the string" null-modem=yes disabled=no
/interface ppp-client remove [/interface ppp-client find name="scripttemp"]
The following assumptions were made:
- We want to use serial port "serial0"
- We have configured the serial port to match the other devices' setup (baud-rate etc.)
- serial0 (or whatever port you use) is not used by RouterOS serial-console
The script sends the text configured as modem-init string out over the serial port when run.
So in the example above, it would send "I am the string" (without the quotes).