Skip to main content

Flashing with an External Serial Adapter

info

This information will likely only be helpful if you've already attempted to go through the prerequisites and processes outlined in manually flashing

caution

Make sure not to power the radio on without first attaching the antenna! You could damage the radio chip!

Background

Situations that may require using an external USB to Serial Adapter:

  • Due to the chip shortage, recently purchased devices such as the TTGO T-Beam may come with legacy or non-standard USB to Serial adapter chips that are unreliable in some cases.
  • Certain devices might have defective USB to Serial chip.
  • Certain devices, such as the Hydra (Meshtastic-DIY target).

USB Serial Adapters

There are many options on the marketplace. It is recommended to purchase an adapter featuring the Silicon Labs CP2102 chip, as it is a reliable industry standard.

The adapter featured in this document can be purchased from: https://www.amazon.com/gp/product/B078W5L8W1/

Plug the adapter into your computer without connecting it to any devices yet. Ensure that your computer has drivers installed for the adapter. On Windows, the correct drivers should install automatically. image

Connecting Adapter to the Device

info

There are multiple ways to connect the pins of the adapter to the target device: pressing jumpers against contacts, using pogo pin jigs, etc. This tutorial features offset dupont headers soldered onto the operative GPIO pins and connected via jumpers.

Disconnect your USB to Serial Adapter from the computer before starting this process.

  1. Connect the RX pin of the adapter to the TX pin of the devices
  2. Connect the TX pin of the adapter to the RX pin of the device
  3. Connect a GND pin of the adapter to the GND pin of the device
  4. Connect either the 5V pin of the adapter to the 5V pin of the device (illustrated) or the 3.3V pin of the adapter to the 3.3V pin of device.
  5. Bridge GPIO 0 to GND on the device with a jumper. (This places the device into flash mode when the device is powered up) Example wiring featuring a T-Beam image
  6. Connect the device to a USB port on the computer
  7. Remove the jumper bridging GPIO 0 to GND enter-flash-mode

Flashing

After following the steps above, your device should be in flash mode. You can flash your device using the manual method

After flashing the device is complete, reset your device (via the RST button if available). If you have the Meshtastic Python CLI installed, you can run meshtastic --noproto to connect the device again over the adapter and view the serial output to confirm Meshtastic installed correctly. image

Troubleshooting

You might receive an error for COM port permission in the manual device install scripts, this can be caused by a number of different issues.

You might need to run the process as an administrator, check to ensure software like Cura isn't monopolizing COM ports, or reboot.

Connect and Configure Device

After flashing the Meshtastic firmware to the device, you can proceed with the initial configuration.