Community discussions

MikroTik App
 
garymikrotik
just joined
Topic Author
Posts: 11
Joined: Fri Jul 02, 2021 6:27 pm

CCR1009 - connecting to console port using Cisco console cable  [SOLVED]

Wed Jan 17, 2024 3:44 am

Hello,
I have a CCR1009, and want to connect to the console port using a Cisco console cable which has male RJ-45 connector on one end. The other end has a USB connector for connection to my laptop.

This is my console cable, https://www.amazon.com/gp/product/B01AF ... UTF8&psc=1.

I have a female DB-9 to female RJ45 adapter that I need to wire. Given that the Cisco console cable is rolled aka null-modem, am I correct in thinking that for the DB-9 to RJ45 I just go pin to pin.
DB-9  RJ45
1      1
2      2
3      3
4      4
5      5
6      6
7      7
8      8
Thanks,
Gary
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11736
Joined: Thu Mar 03, 2016 10:23 pm

Re: CCR1009 - connecting to console port using Cisco console cable

Wed Jan 17, 2024 8:55 am

The cable you linked won't do. It's essentially only converting from proper USB connector to RJ45 connector. But doesn't do anything about protocol conversion and if you plug the USB end into a computer, then RJ45 will still "talk" USB.

The problem with RJ45 console cables is that they largely abuse RJ45 socket for anything some engineer comes up with. It all started with using it for serial (RS232) connections where the other end of cable had a DB9 connector attached.

But I don't see how you can use the Cisco cable you linked with DB9 to RJ45 conversion you're talking about later on. You can not construct a "double conversion" cable (i.e. DB9 - RJ45 and RJ45 - USB) and use it to connect to CCR1009, MT uses proper RS232 on their DB9 connectors. So if you want to connect that to USB port of your computer, you need a proper RS232 to USB converter, like this one (it's got active circuit inside DB9 connector, it's not simple wiring).
 
jaclaz
Forum Veteran
Forum Veteran
Posts: 720
Joined: Tue Oct 03, 2023 4:21 pm

Re: CCR1009 - connecting to console port using Cisco console cable

Wed Jan 17, 2024 12:59 pm

Actually that cable seems like having a FT232chip inside, so it is a USB to serial RS232 converter (by another name) allright.

@OP
No, the normal pionout of a DB9 (serial) connector is this one:
https://www.cable-tester.com/rs232-pin-out/
https://www.betterbox.co.uk/serial-interfaces.html
The numbering is confusing, it depends on how the direction is implied (DTE/DCE):
https://electronics.stackexchange.com/q ... elative-to
RX (or TX) is 2
TX (or RX) is 3
ground is 5

On your cable converter they are:
3 and 6 ( or 6 and 3)
ground is both 4 and 5

There is an explicit diagram for RJ45/DB9 for Mikrotik (Cisco stryle)
https://wiki.mikrotik.com/wiki/Manual:S ... al_Console
 
garymikrotik
just joined
Topic Author
Posts: 11
Joined: Fri Jul 02, 2021 6:27 pm

Re: CCR1009 - connecting to console port using Cisco console cable

Wed Jan 17, 2024 6:06 pm

Thanks Jaclaz.

I saw that page and it confused me. The CCR1009 has a male DB-9 connector for the console connect.

I'm thinking that I need to use the first chart listed in the "Serial Console Configuration". And for column 4, "Side (DB9f)", should be the pinout that matches my cable.
 
jaclaz
Forum Veteran
Forum Veteran
Posts: 720
Joined: Tue Oct 03, 2023 4:21 pm

Re: CCR1009 - connecting to console port using Cisco console cable

Wed Jan 17, 2024 7:15 pm

You should need only 3 connections:
TX
RX
Ground

The TX is on wire 3 of the RJ-45 and goes to pin 2 (RX) of the DB-9 (female) connector
The RX is on wire 6 of the RJ-45 and goes to pin 3 (TX) of the DB-9 (female) connector
The Ground is on wires 4 and 5 of the RJ-45 and go both to pin 5 (Ground) of the DB-9 (female) connector

This image should be easier to follow:
https://m.media-amazon.com/images/I/61F ... L1002_.jpg
 
trkk
just joined
Posts: 17
Joined: Tue Mar 08, 2022 1:36 pm
Location: +09:00

Re: CCR1009 - connecting to console port using Cisco console cable

Fri Jan 19, 2024 9:55 am

You may use this kind of products, I guess.
https://www.amazon.com/StarTech-com-Ser ... 00006IRQA/

I made a same adapter for same purpose before. (not for exact MikroTik devices, but for some other stuffs.)

You need straight connection, surely. This is the pin-assignment that I used.
RJ45 Pin1 (Cisco RTS) -> DB9 Pin7 (RTS)
RJ45 Pin2 (Cisco DTR) -> DB9 Pin4 (DTR)
RJ45 Pin3 (Cisco TXD) -> DB9 Pin3 (TXD)
RJ45 Pin4 (Cisco GND) -> DB9 Pin5 (GND)
RJ45 Pin5 (Cisco GND) -> X (not connected)
RJ45 Pin6 (Cisco RXD) -> DB9 Pin2 (RXD)
RJ45 Pin7 (Cisco DSR) -> DB9 Pin6 (DSR)
RJ45 Pin8 (Cisco CTS) -> DB9 Pin8 (CTS)
flipped view (same straight connection).
DB9 Pin2 (RXD) - RJ45 Pin6 (Cisco RXD)
DB9 Pin3 (TXD) - RJ45 Pin3 (Cisco TXD)
DB9 Pin4 (DTR) - RJ45 Pin2 (Cisco DTR)
DB9 Pin5 (GND) - RJ45 Pin4 (Cisco GND)
DB9 Pin6 (DSR) - RJ45 Pin7 (Cisco DSR)
DB9 Pin7 (RTS) - RJ45 Pin1 (Cisco RTS)
DB9 Pin8 (CTS) - RJ45 Pin8 (Cisco CTS)
Just one GND connection is enough.
 
garymikrotik
just joined
Topic Author
Posts: 11
Joined: Fri Jul 02, 2021 6:27 pm

Re: CCR1009 - connecting to console port using Cisco console cable

Sat Jan 27, 2024 11:22 pm

Thanks for everyone's help especially TRKK. TRKK saved me the time of doing the mapping.

I finally had time to come back to this.

Who is online

Users browsing this forum: khris972 and 2 guests