
Fit perfectly on unbricked Asus and TP-Link routers and leaves no trace. Hint: In case of unpopulated holes in the shape of a SubD9, try fitting the pins from a disassembled SubD9 male plug into the holes instead of soldering the cable directly to the board.
#Putty for mac for usb serial serial#
But even if there is 9-pin D connector, beware the Voltage levels! While some may refer to this as an RS-232 or RS-422 interface, in most cases the voltage levels associated with those specifications are inappropriate and may permanently damage your router.Īlso, in many modern devices you will only have 3-5 pins or holes, and that would be a TTL serial connection, requiring a TTL-USB dongle, which can be bought for real cheap from ebay or Amazon or any reputable DIY electronics seller as they are used to communicate with Arduino boards and other microcontroller-based IoT development boards. It is mentioned here mainly as a reminder that flashing a bootloader, no matter how many have been successful before you, is a risky endeavor that a serial port may not allow recovery from errors.įor help with the latter two, see soldering. JTAG access falls into the realm of expert use.
#Putty for mac for usb serial software#
While a functional serial port can't protect you from a damaged bootloader or other low-level problems, it can be used to resolve many user-configuration errors, including, with luck, when the cat pulled the plug on your router as you were flashing it:-/įor low-level developers, or those that choose to flash their own bootloader, accessing the JTAG port may be the next step, as the serial port requires functional software (either the bootloader or a running system) to be useful. One advantage is that if you've somehow configured your router so that the network or ssh isn't working, you can still access your router to manage it. Either in failsafe mode, or with OpenWrt running in normal mode, it is generally possible to enter commands the same way one would if using ssh over a network. Once OpenWrt starts running, it is generally possible to enter failsafe mode with a terminal program attached to the serial port. Details on these commands can often be found on the device-specific pages on the OpenWrt wiki. These commands are not “OpenWrt” commands, but ones pre-programmed into the bootloader. During these early phases, the bootloader often gives information over the serial port and can respond to its own set of commands. Typically, a router first starts its “permanent” bootloader which is responsible for the first steps of finding the OpenWrt firmware and starting OpenWrt running. Most routers come with an UART integrated into the System-on-chip and its pins are routed on the Printed Circuit Board (PCB) to allow debugging, firmware replacement or serial device connection (like modems). If one wishes a more permanent installation, mechanical skills in modifying the case may also be needed. The cost of components is relatively low a 10-euro/dollar project if one uses “eBay-grade” parts (which are likely sufficient).

Console access to the bootloader will often allow one to fetch and flash new firmware and may be the only way to do so on some routers if the firmware is not functional.Įnabling a serial port, if there is not one already available on the case, typically involves opening the case and basic soldering skills. A console to the running system will let you correct a misconfigured network, for example. These serial ports typically provide a console to the bootloader and, when the firmware has booted, a console to the running system. Most devices supported by OpenWrt have or can be modified to have a serial port. However, some bootloaders don't have a “really failsafe” network re-flash feature, making a serial console one of the few ways to recover from a “bad flash” or an error in a user's own configuration.

Most people get along without a serial console for their device because they're able to flash a working firmware the first time - or are able to apply various recovery methods - and do all their communicating with the device over a network.
