Debricking: you can use a Raspberry Pi if you don't have a USB serial adapter

I haven't found anywhere that explicitly mentions this, so I wanted to let everyone know that you can use a Raspberry Pi to connect to your router's serial "port" (pins). The Raspberry Pi's serial UART works with 3.3V, which is which most routers seem to use (you can't use an Arduino Uno, on the other hand, since it uses 5V).

You don't connect the VCC (3.3V) pin of the Pi to the router, but the rest are connected in the logical manner (GND<-->GND, RX<-->TX, TX<-->RX).

See here for the Pi's UART pin layout: https://pinout.xyz/pinout/uart (the short answer is that you will be using pins 6,8,10).

(Note you will also most likely need to solder pins on the router's PCB.)

Once you have everything connected, ssh into your Pi and use your favorite serial console program on the Pi (dterm, minicom, screen, etc) to talk to the router.

This configuration has the bonus advantage of being able to connect to the router's console "remotely" like a "tip line" (if anyone remembers what those are).

I know those USB serial dongles are dirt cheap, but you might not have one, and you might not be able to afford having a bricked router while you wait for your 50cent dongle to arrive from aliexpress.

3 Likes

An Arduino works too.

To clarify wrt Arduino (since this post was supposed to be informative):

It is my understanding that the Arduino Uno's UART uses 5V, while routers' use 3.3V:

"The ATmega328 provides UART TTL (5V) serial communication, which is available on digital pins 0 (RX) and 1 (TX)." (https://store.arduino.cc/arduino-uno-rev3 in "Documentation")

It is further my understanding that 5V and 3.3V is not normally interchangeable, and connecting the Arduino Uno's RX/TX directly to a router will Cause Bad Things. It's at least risky. (But it might be possible using a voltage divider).

The Arduino Due on the other hand (and possibly other models) have 3.3V UARTs, so those should be possible to use. (See https://www.arduino.cc/reference/en/language/functions/communication/serial/)

1 Like

A post was split to a new topic: Xiaomi router 3G bricked

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.