EmonWRT3 Network Locked Out

From lechacal
Jump to navigation Jump to search


Overview

This page will help you restoring the EmonWRT3 system if the device can not connect to any network after misconfiguration.

The proposed procedure is to connect to the Emonwrt3 using serial (USB). Then reflash the operating system and re-install EMonwrt3 software.


Hardware

A USB to UART adaptor is required.

Other hardware needed are:

  • A computer with a USB port.
  • A common network cable. (cat5 / RJ45).

Hardware Setup

  • Remove the Microcontroller from the Base Board. This is the wide 28 pins chip. This must be taken off the board.
  • Setup the USB adaptor for 3.3V using the small jumper.
  • Connect the USB adator to the (Gnd,Rx,Tx) connect on the base board. The USB adaptor also has (Gnd,Rx,Tx). Connect them together.
  • Connect the USB adaptor to your computer. A red light should be lit.

It should look as this picture here in the end.

Software Preparation

OpenWRT

Download OpenWRT Chaos Calmer here. Save this somewhere on your computer.

Putty

Download the Putty software from the web. Install it on your computer.

Start Putty and setup a serial connection.

  • Serial Line /dev/ttyUSB0 (or equivalent for windows or mac).
  • Speed 115200

Click on Open. A black background window will appear.

Enter UBOOT

You are now ready to power up the base board.

Before connecting the microUSB cable be ready to press Enter as soon as power is applied. You have something like a second to do this. If failing the OS will start booting and you will need to try this again.

A successful interruption will look like this picture here.

Wired Network

Now connect the base board with the network cable (ethernet).

There are two options here.
1. Connect to a home/office router.
2. Connect directly to your computer. Make sure the computer is set to static ip address first. Use IP 192.168.1.2 Netmask 255.255.255.0.

Uboot Web Interface

Once you have managed to get into uboot like above. Enter the httpd command:

u-boot> httpd

This will show the message below:

Ethernet mode (duplex/speed): 1/100 Mbps
HTTP server is starting at IP: 192.168.1.1
HTTP server is ready!

Now open a web browser and go to address http://192.168.1.1