Community discussions

MikroTik App
 
User avatar
doneware
Trainer
Trainer
Topic Author
Posts: 647
Joined: Mon Oct 08, 2012 8:39 pm
Location: Hungary

RBM33G serial ports

Mon Sep 21, 2020 12:34 pm

Hi,
i've been trying to figure out where i could find the 2nd serial port on this device. serial0 is obviously the console with the DB9 port.
but the device lists also a serial1 port, but i can't find the headers on the board.
anyone had any luck with this?
thx
image-1.png
edit: usb3 is an USB-to-serial adapter i inserted to the back USB port.
You do not have the required permissions to view the files attached to this post.
 
User avatar
krafg
Forum Guru
Forum Guru
Posts: 1020
Joined: Sun Jun 28, 2015 7:36 pm

Re: RBM33G serial ports

Mon Sep 21, 2020 5:16 pm

I see that in addition you have a USB as serial port. Yesterday I tried to use Woobm-USB on this board without success, and I'm thinking that is because I removed USB jumper to get up the second miniPCIe slot (this last to use my second LTE module). Is there a way to get this USB working and both miniPCIe slots at same time?

I will investigate about serial1 port on some hours.

Thanks and regards.
 
User avatar
doneware
Trainer
Trainer
Topic Author
Posts: 647
Joined: Mon Oct 08, 2012 8:39 pm
Location: Hungary

Re: RBM33G serial ports  [SOLVED]

Mon Sep 21, 2020 6:58 pm

i found it.
see attached drawing for further reference.
pin numbering starts from the bottom left (the board's silkscreen clearly shows 1 and 2)

PIN12 rx
PIN13 tx
PIN14 gnd

the signal is TTL level. works fine with a $1 USB to serial bridge from eBay (PL2303, CH340/341, FT2102, and their clones)
1968_hi_res.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
doneware
Trainer
Trainer
Topic Author
Posts: 647
Joined: Mon Oct 08, 2012 8:39 pm
Location: Hungary

Re: RBM33G serial ports

Mon Sep 21, 2020 7:01 pm

I see that in addition you have a USB as serial port. Yesterday I tried to use Woobm-USB on this board without success,
ok, this is strange. the WooBM is essentially an ESP8266 glued to a PL2303 usb to serial bridge. and the USB3 you saw on the console output i posted was exactly a 'regular' prolific pl2303 clone plugged into the router. which is a full speed (12Mbps) USB device.

i guess the issue was with your setup, that the mPCIe slot #2 shares the USB connection with the USB type-A port. you can configure this in '/sys routerboard usb'
i think yours was set to type=mini-PCIe, so the regular full sized USB socket is not operational.
 
User avatar
doneware
Trainer
Trainer
Topic Author
Posts: 647
Joined: Mon Oct 08, 2012 8:39 pm
Location: Hungary

Re: RBM33G serial ports

Mon Sep 21, 2020 7:30 pm

also found this in the new help pages.
https://help.mikrotik.com/docs/display/ ... rialHeader
 
sunblade87
just joined
Posts: 6
Joined: Thu Sep 24, 2020 2:05 pm

Re: RBM33G serial ports

Fri Sep 25, 2020 9:51 am

I have tried to connect a GPS receiver using serial1 but without luck.
The same receiver is working on serial0 (using voltage level shifter MAX232)

ROS 6.47.4
 
NGB
just joined
Posts: 1
Joined: Fri Aug 27, 2021 3:29 pm

Re: RBM33G serial ports

Fri Aug 27, 2021 3:39 pm

I have tried to connect a GPS receiver using serial1 but without luck.
The same receiver is working on serial0 (using voltage level shifter MAX232)

ROS 6.47.4
Good day!
Did you manage to connect your GPS receiver via serial1?
 
User avatar
Sertik
Member
Member
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Re: RBM33G serial ports

Sun Nov 12, 2023 8:48 pm

Greetings to all. I'm wondering if it's possible to use the additional serial1 port of the RBM33G to transmit and receive data? Including whether it is possible to connect a device that also has a similar serial port to PIN12-16 and control it from Mikrotik. For example, let it be Serial MP3 Player ?

http://amperkot.ru/static/3236/uploads ... Manual.pdf
 
User avatar
Sertik
Member
Member
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Re: RBM33G serial ports

Mon Nov 13, 2023 9:20 am

cIn theory, you should try this - сonnect the terminal to serial 1 port:
/system serial-terminal serial1
After which you can send commands from the console. USB serial Player should catch them. But whether it will be possible to do this from a script ? is a big question... Probably not.

It’s a pity that the OS router does not have commands for transmitting data to the port.
 
User avatar
Sertik
Member
Member
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Re: RBM33G serial ports

Mon Nov 13, 2023 10:26 am

If you use the command :put to pour data into the console connected to the serial port, will this data pour into the port ? Like they should ?
 
User avatar
Sertik
Member
Member
Posts: 435
Joined: Fri Sep 25, 2020 3:30 pm
Location: Russia, Moscow

Re: RBM33G serial ports

Mon Nov 13, 2023 11:12 am

... Although, if :put will pour data into the Terminal, and it is connected to serial1, then in theory everything should pour into the serial port, and accordingly be transferred to the usb serial Player... It is possible and will work. USB-serial Player of the latest version (I found 1.3.2) costs a mere penny - 1,5-2$. for Ali, there are options with a speaker connector and a small speaker with a diameter of 5 cm. - 4-5$. We should try ... If it works, then voicing events on the router by voice is a pleasure. For example: "VPN connection of a user of Such and such ...", "unauthorized login attempt to the router" ... and so on ...

Although it seems like only data entered from the keyboard is transmitted to the serial port, and not printed data and :put is likely to be useless here.

Who is online

Users browsing this forum: DanMos79, kevinds, quackyo and 21 guests