I was using the RB-411 as Serial media converter. I was using this wiki to set-up it. http://wiki.mikrotik.com/wiki/Serial_Port_Usage
I use others media converters and some Cisco routers too and they have a RX timeout to set.
But I’m looking for some command that let me set how many time must pass after the serial data will be transported from the serial to the network, it’s a timeout.
system console disable 0
port set serial0 baud-rate=19200 data-bits=8 parity=none stop-bits=1
port remote-access add port=serial0 protocol=raw tcp-port=10000
But at this lines i don’t see any RX timeout to set. Some of them let set too how many bytes the divice waits after set the complete packet.
The configuration you have posted is for the terminating router. It sounds like you are asking about the sending side.
When the router receives data from the network it will pass it off to the serial device in real time. To answer what I think your question is it would depend on the sending side as to how long it waits to send data although I expect it should be in real time as well.
No, this is about the termination or remote router (fordward router), the local is an application that I wrote (the application who waits for data).
At the termination router, it knows when it must fordward the serial using a timeout or a buffer size. In most cases the router waits until a silence in the RS-232 data stream appers, I mean it detects the last byte from the stream because the RX line is in silence.
But in some devices you can set up this silence time, the router can store the data and when the timeout occurs the router fordward all the Rx buffer content
If you set 20mSec as timeout, when the RS-232 have that silence the router will fordward all the Rx buffer content.
At now I’m loading into the router a 100 bytes strem and it get fordward into 2 packets, time to time I got a complete 100 bytes packet and in the most cases 2 packets.
I think that know it’s in direct mode, this timeout is seted when you select the RS-232 port speed, 1200Bps have a big silence value that a 19200Bps set, because each byte will received take so long as the speed seted.
In most cases is called Rx timeout, fordward timeout etc etc. In cisco routers is called “dispatch timeout”
I don’t have an exact answer for you based on what your telling me though I don’t believe that Mikrotik forwarding settings can be changed in this regard.
Let’s see if someone more knowledgeable in this area can answer you specifically.
Hi,
i’m looking for the same features! Actually i’ve used it with Modbus RTU with others bridge like ATOP SE5001 that supports Rx timeout, in this case Rx Timeout must be used with a value > 3 ms, otherwise serial packets will be splitted in multiple packets , as it clearly visible in wireshark with Modbus RTU dissector, otherwise standard python pymodbus isn’t able to decode properly recieved data!.