I’m Building a Mini-Router with a CCR2004-2XS-1G-PCIe in a littel Case. Now I want to add a little OLED to Display some Inforamtions like CPU Load, Temeperature, WAN and LAN IP Adresses. My Script works so far.
Haw can I send the INformations out of the Serial Port serial0?
It is depending a bit on what hardware you are using to control the display.
I presume something like an Arduino. When you write the software for that as well (instead of just using some standard “terminal program” that you cannot modify) you could configure the serial port as a console port, then make the external device do a “login” to the router and start a script.
From then on, anything the script sends with :put as in your example will go out the serial port.
Well there is a at-chat option on /ppp connected to a serial port, so you don’t have to abuse the init-string. But your issue with scripting from MikroTik side is that the “at-chat” is looking for an “OK” back from the device to terminate at-chat. @Sertik has some scripts on the forum where he built something on top of “at-chat” I believe.
Thanks @Amm0 and @pe1chl for your Replys.
I’ll use an Arduino (or an ATtiny2313). So it yould be possible, to send Answers, like the OK. I rather won’t login as Terminal, but maybee it’s the best solution, since I still can use the serialport as emergency console.