Here we will look at getting access to the ESP8266 Deauther V2 Serial-Interface and some valuable tips and tricks.

Usage (serial.huhn.me)

We now have serial.huhn.me, an online serial terminal. A great alternative where you don't need to install anything. You just need a compatible browser. Learn more: blog.spacehuhn.com/serial-terminal

  1. Open serial.huhn.me with Chrome, Edge, or Opera for desktop. (Other browsers are not supported at the moment)
  2. Click connect
  3. Plugin your ESP8266 board
  4. Select the port that pops up in the list and click connect
Using serial.huhn.me

Usage (Arduino)

  1. Connect the ESP8266 board to your computer
  2. Open Arduino, go to Tools > Port, and select the corresponding serial (COM) port
  3. Go to Tools and click on Serial Monitor
  4. Select Newline and 115200 as baudrate
Arduino select Serial Port
Arduino select Serial Port
Arduino Open Serial Monitor
Arduino Open Serial Monitor
Arduino Serial Monitor: Select Newline & 115200 baud
Arduino Serial Monitor: Select Newline & 115200 baud
Startup message of Deauther Serial Interface
Startup message of Deauther Serial Interface

Usage (Huhnitor)

Alternatively to Arduino, you can use Huhnitor. It was made for the Deauther V3 but works on the V2 just as well. Check out our tutorial here: https://blog.spacehuhn.com/huhnitor-installation/

Command Reference

You can find a list with all serial commands on the Deauther's Github: https://github.com/spacehuhn/esp8266_deauther/blob/master/serialcommands.md  

Escaping Spaces

In the serial interface, commands and parameters are divided by spaces.

This command is OK:

add ssid test

This command isn't:

add ssid this is a test

To escape these spaces, you can use a backslash \. For example:

add ssid this\ is\ a\ better\ test

But a better approach is to use double quotes ". For example:

add ssid "this is an even better test"

Combine Serial Commands

To chain multiple commands into one line, separate them with two semicolons ;;

sysinfo;;chicken

This example will first execute "sysinfo" and then "chicken".  

There is no limit on the number of commands you can combine with this feature, but **there is a limit of 512 characters per line!**  

Some commands like "scan" work asynchronous and don't block. To chain commands like this, you can make use of the "DELAY" command:

scan wifi -t 10s -ch 6;;DELAY 11s;;show stations

This example will scan for 10 seconds on channel 6 and wait 11 seconds before printing the results. Note that it's always better to use a higher delay than you expect the previous command to run, just to be on the safe side.

SPIFFS

The ESP8266 has a memory chip of usually 1,2 or 4 MB of storage - depending on the model, it could be up to 16 MB or as low as 512 KB.
The firmware itself is saved there together with some other configuration settings.

SPIFFS (SPI Flash File System) is a small simplistic file system to easily access the internal memory. It's particularly useful to store and access data that doesn't fit into the RAM.  

You can see how much of the SPIFFS is free and what files are stored there with the sysinfo command:

sysinfo

You can see the contents of a file using:

 print <path_to_file>

To delete a file, run:

delete <path_to_file>

Sometimes the file system gets corrupted, and you will see errors like "ERROR: saving /settings.json". If that happens, clear the memory by running:

format

Thank you ❤️

We hope you enjoyed this blog post.
Become a Github Sponsor or support us via Ko-fi!

Buy Me a Coffee at ko-fi.com