Serial Connectiviting on a RB433

Hi,

I want to connect a serial device to my RB433 board, to send/receive data.

I found an example somewhere that said to use:

/interface ppp-client add name="scripttemp" port=serial0 modem-init="test" null-modem=yes disabled=no
:delay 1
/interface ppp-client remove [/interface ppp-client find name="scripttemp"]

This doesnt seem to work, can I do this. Or can I receive only or send only? Can I use the port at all?

You need to disabled serial port in /system console. Then it should work.

Hi,

I have done that but it still doesnt work?

The serial device does not get the data sent,. I assume its neither sending nor receiving.

Is the code I sent the right code? do I need to do anything else?

if you need to connect to serial port via RB - you may use ‘special-login’ feature: http://forum.mikrotik.com/viewtopic.php?f=2&t=34159&start=0&hilit=special+login

Hi,

Ok so I see the special-login, however that seems to me to be only usable when I winbox in right, then access the console.

Thats no good, I need a scripted solution.

I also saw “/system serial-terminal” and this works as well, but I cant script this either.

I need to be able to access the serial port via a script, can I do this? seems crazy that I cant?

My original post with the code is how I see it should be accessed, is this not the case?

well, you may use Telnet. or even SSH - then you don’t even need to enter login/password in interactive prompt

I NEED TO USE SERIAL.

I cannot use any other method.

MIKROTIK: is this possible or not?

Capital letters mean shouting, and on some occasions a lack of
interest in the responses of members of the forum.
Be friendly, creating a better environment

I know what capital letters mean.

My request is specific, perhaps it was not clear enough, clearly now it is.

Capital letters help get the point across, interpret it how you want.

no, you cannot initiate any connections from RouterOS, either telnet/ssh, or serial, and fully control it. the only solution is ‘special-login’ feature, which can be easily scripted. why do you think I mentioned it? :wink:

p.s. don’t worry, be happy =)

Hi,

I tried the special login, but i’m either doing something wrong or it doesnt suit my needs.

Let me be a little more specific:

I have a serial device which has two modes:
1.) The serial device will send data down serial port every few mins, and I need to respond to it with a character/s
2.) I can connect directly to the serial device and send data, every few mins

Both of the above scenarios need to be scripted, so that I can do this at regular intervals via scheduler.

Special login as far as I can tell only works when I do this manually, is this correct?

you cannot do it from RouterOS - you need another machine to do the work. this machine will connect to the router, login with ‘special’ login - and it will be directly connected to the serial port. all you send to the terminal will be sent to COM port, and all received on the COM port will be sent to your terminal connection

hi,

thanks for the confirmation, (that I didn’t want)

Seems pretty pointless having a serial port if I cant use it, very disappointing.

I have used the method mentioned in my first post to send data, but its my understanding I cant receive anything back, which is also disappointing.

Seems a waste of money investing in a device that can achieve proper serial connectivity when the mikrotik boards have serial ports, but are essentially useless unless you want to control a UPS.

anyway, thanks for your help.

it may be strange, but ‘special-login’ works fine for similar tasks =)