Serial Port (RS232) access on OpenWRT (metaRouter)

Hi,

I am quite new with MikroTik (and generally with routers). I would like to to have access to serial port on my metaRouter - openWRT.

But I don’t see it.

ls /dev/ | grep serial

and

dmesg | grep serial

give empty answer.

Any idea?

My device: RouterBoard 411
RouterOS: v6.23

As far as I know serial port device is not passed to virtual router.

MetaROUTER guests have no direct access to any hardware. Even networking is virtualized. There is no “virtual serial port”, so there is no way to “bridge” the RS232 port from the host to the guest.

– Nathan

Really quick replay, thank you.

So the only way to communication is virtual port? Or can I have access to the same file (routerOS and metarouter) and write script (RouterOS) that will be sending data that I save in this file from my OpenWRT?

Everything has to be done over the network, not local files. You need to pretend that the MetaROUTER is not a virtual router but a separate physical router that is plugged into the host with an ethernet cable.

If you want to share a file between the host and the guest, it still has to be done via IP networking. You could, for example, use the built-in SMB server in RouterOS to share files, and then install the “samba” package on OpenWRT. But depending on what you are trying to accomplish, that is likely overkill.

– Nathan