EmonWRT3 Network Locked Out: Difference between revisions

From lechacal
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 5: Line 5:
This page will help you restoring the EmonWRT3 system if the device can not connect to any network after misconfiguration.
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.
=Method 1=
Using serial adaptor.


The proposed procedure is to connect to the Emonwrt3 using serial (USB). Enter failsafe and reset the OS. Then re-install Emonwrt3 software.


=Hardware=
==Hardware==
[[File:Ftdi-usb-to-ttl-serial-converter-adapter-ft232rl.jpg | right | 150px]]
[[File:Ftdi-usb-to-ttl-serial-converter-adapter-ft232rl.jpg | right | 150px]]
* A [http://lechacalshop.com/gb/various/36-ftdi-usb-to-ttl-serial-converter-adapter-ft232rl.html USB to UART adaptor] (See picture).
* A [http://lechacalshop.com/gb/various/36-ftdi-usb-to-ttl-serial-converter-adapter-ft232rl.html USB to UART adaptor] (See picture).
Line 17: Line 19:
* A common network cable. (cat5 / RJ45).
* A common network cable. (cat5 / RJ45).


=Hardware Setup=
==Hardware Setup==
[[File:IMG_1830_small.png| right | 150px]]
[[File:IMG_1830_small.png| right | 150px]]
* Remove the Microcontroller from the Base Board. This is the wide 28 pins chip. This must be taken off the board.
* Remove the Microcontroller from the Base Board. This is the wide 28 pins chip. This must be taken off the board.
Line 26: Line 28:
It should look as this picture here in the end.
It should look as this picture here in the end.


=Software Preparation=
==Software Preparation==


==OpenWRT==
===Putty===
 
[http://archive.openwrt.org/chaos_calmer/15.05/ar71xx/generic/openwrt-15.05-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin Download OpenWRT Chaos Calmer here]. Save this somewhere on your computer.
 
==Putty==
[[File:Putty_example_01.png | right | 150px]]
[[File:Putty_example_01.png | right | 150px]]


Line 43: Line 41:
Click on '''Open'''. A black background window will appear.
Click on '''Open'''. A black background window will appear.


=Enter Failsafe=
==Enter Failsafe==
[[File:Failsafe.png | right | 150px]]
[[File:Failsafe.png | right | 150px]]


Line 56: Line 54:
That's it. The operating system is back to factory default. You will now need to reinstall Emonwrt3.
That's it. The operating system is back to factory default. You will now need to reinstall Emonwrt3.


=Complete installation=
==Complete installation==
 
Power off and on the base board and follow the guide below to install Emonwrt3.
 
[[Emonwrt3 Install on OpenWrt]]
 
 
=Method 2=
Using arduino sketch.
 
The proposed procedure is to flash the arduino chip with a special code. This will trigger uboot prompt on the SKW71 module. Then update the firmware via a web browser.
 
==Hardware==
* An Arduino UNO.
* 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.
* Insert the microcontroller on the Arduino UNO.
 
==Software Preparation==
 
===Arduino===
 
Open the Arduino IDE and copy paste this sketch below:
 
void setup() {
  Serial.begin(115200);
  delay(500);
  Serial.println();
  delay(500);
  Serial.println("httpd");
}
void loop() {}
 
Upload the sketch to the arduino Uno.
 
===OpenWRT===
 
[http://archive.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/openwrt-15.05.1-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin Download OpenWRT Chaos Calmer here]. Save this somewhere on your computer.
 
==Enter uboot prompt==
 
[[File:Uboot_splash_01.png | right | 150px]]
 
Install the Arduino chip back onto the Emonwrt3 base board unit.
 
Connect the network cable directly from the computer to the EmonWRT3 unit.
 
Setup the computer with static IP address 192.168.1.2
 
Now power on the Emonwrt3 by connecting the micro-usb cable.
 
You can now access uboot going to address
http://192.168.1.1
A page like the picture will appear.
 
Then choose the previously downloaded file to flash the OpenWRT OS.
 
Once complete do not forget to replace the Arduino firmware with the original one. Download it here [[EMONWRT3#Files]]


Select the image file previously downloaded and flash it as guided by the web page.
==Complete installation==


Once OpenWRT freshly installed you can now install EmonWRT3 software following this guide below:
Power off and on the base board and follow the guide below to install Emonwrt3.


[[Emonwrt3 Install on OpenWrt]]
[[Emonwrt3 Install on OpenWrt]]

Latest revision as of 17:36, 15 March 2019


Overview

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

Method 1

Using serial adaptor.

The proposed procedure is to connect to the Emonwrt3 using serial (USB). Enter failsafe and reset the OS. Then re-install Emonwrt3 software.

Hardware

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

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 Failsafe

Power up the base board. Then wait until you see a message proposing to enter Failsafe mode.

When this appear enter f then return.

A prompt will be offered then enter here:

firstboot -y

That's it. The operating system is back to factory default. You will now need to reinstall Emonwrt3.

Complete installation

Power off and on the base board and follow the guide below to install Emonwrt3.

Emonwrt3 Install on OpenWrt


Method 2

Using arduino sketch.

The proposed procedure is to flash the arduino chip with a special code. This will trigger uboot prompt on the SKW71 module. Then update the firmware via a web browser.

Hardware

  • An Arduino UNO.
  • 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.
  • Insert the microcontroller on the Arduino UNO.

Software Preparation

Arduino

Open the Arduino IDE and copy paste this sketch below:

void setup() {
 Serial.begin(115200);
 delay(500);
 Serial.println();
 delay(500);
 Serial.println("httpd");
}
void loop() {}

Upload the sketch to the arduino Uno.

OpenWRT

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

Enter uboot prompt

Install the Arduino chip back onto the Emonwrt3 base board unit.

Connect the network cable directly from the computer to the EmonWRT3 unit.

Setup the computer with static IP address 192.168.1.2

Now power on the Emonwrt3 by connecting the micro-usb cable.

You can now access uboot going to address

http://192.168.1.1

A page like the picture will appear.

Then choose the previously downloaded file to flash the OpenWRT OS.

Once complete do not forget to replace the Arduino firmware with the original one. Download it here EMONWRT3#Files

Complete installation

Power off and on the base board and follow the guide below to install Emonwrt3.

Emonwrt3 Install on OpenWrt