Mikrotik RS485 support?

RB411AH
680MHz CPU, 64MB RAM, 1xEthernet, miniPCI, RouterOS L4

RB450G
680MHz CPU, 256MB RAM, 5xGigabit Ethernet RouterOS L5

+++++++++++++++++++++++++++++++++++++++++++++++

RS232 ↔ RS485 converter
link length RS-485 interface = 1000m

===============================================

Task
Mikrotik WAN port - internet provider (PPPoE, L2TP, PPTP, IPoE) +++ RS232 >>> RS232 ↔ RS485 converter >>> out

Can you first post why you need this?

Yes it can. i think ?

i would like to do it too.

What is possible , i have tried :

Connect a RB433 serial rs232 — rs232toUSB----USB rb951UI Ethernet(192.168.1.10)

on rb951ui :

/port remote-access
add port=usb2 tcp-port=9999

now i can Telnet from my PC : telnet 192.168.1.10 9999 , which will log me in to the RB433

So i know how this works, to test further i have to wait for my usb-rs485 converter to send/read a rs485 device.
Dont know what your goal is. i would like to request data from rs485 devices behind the mikrotik and send it as snmp/trap if possible.

maybe someone can assist further in this ?

Anyone else have any success with RS-232 → RS-485 or even better, a USB to RS-485 converter? I have two applications for this:

  1. We have some solar powered repeaters, and the charge controllers only talk rs485.

  2. We have some installations where we use Mikrotik for connectivity and industrial controllers for remote control and logic. They only talk RS-485.

It would really help if we could communicate directly from a Mikrotik device with USB directly to the 485 device.

Thanks!

Jon

you can use these: https://www.ebay.com/itm/222636570847

it uses prolific PL2303 usb to serial chip, which is supported by RouterOS. then you just use routeros’ built in rfc2217 serial over tcp feature described here:

https://wiki.mikrotik.com/wiki/Serial_Port_Usage#Accessing_a_serial_device_as_if_it_were_physically_connected_to_your_PCs.27_COM_port

you can even use an usb hub to connect more independent rs485 networks. keep in mind that this only supports async serial.

I am trying to get that working right now and I would appreciate some help.
I have hAP AC and epsolar mppt charge controller with its originnal cable

https://www.ev-power.eu/Solar-Systems/Solar-Controller-Monitor-for-Tracer-BN-series-RS-485-USB.html?cur=2

and I am unable to get that work. When I connect that cable I can see in system / resources / usb new device (XR21B1411) and when I go to system / ports there is a new port called usb2 (not serial).

Is this normal behavior? I cant get anything from terminal (and I tried to set up speed and parity in that USB2 port settings) and not sure if there is problem somewhere else or if the ROS cannot work with this cable. I already ordered one from ebay but thats for month…

thanks

Hey did you ever get this to work, or come up with a workable solution? We have a similar setup - PowerBox Pro and epsolar charge controller. It would be great to be able to get an exact voltage reading.

The KNOT can do Modbus / RS485.
Does that suit your needs?

Hi Everyone!
I’m using a USB-RS485 adapter which works doing this. I got it from ebay (see link below)
https://www.ebay.com.au/itm/276026422366
Plugging into Windows 10 it installs as a serial port ‘CH340’, when plugged into the USB socket of a Mikrotik (have tried RB2011 and L009) it appears in the ‘system/ports’ page of winbox as ‘usb2’ and you can change the baud rate and other parameters there.
You also need to set it on the ‘iot/modbus’ page (if using for serial modbus).
Then you’ll have a load of fun trying to write a script to read whatever it is you’re trying to communicate with.. There’s not a lot of information on this, but…
I’ve managed a rough script(s) to enable my L009 router (ROS V7.16) to poll a Meanwell DRS240 UPS (DC supply with battery backup) and publish to MQTT broker so as to enable alarms when there is a power outage. Can also poll the current and voltage too.
If anyone out there wants to know more, leave a message here???

I would like to know more about this integration. That could be pretty cool.