displaying the received data from serial port mikrotik 2.9

how to make a script that will display the received data from serial port?
I send data from Visual Basic or with a microcontroller.

you can use RouterOS as ‘COM to IP’ adapter, but you cannot use COM port from scripts on the router

Thanks for your suggestion but I need to send a string to the serial port router opt in or out an ip address


sorry for bad English

look at System → Ports → Remote Access