NodeMCU v3
, ESP8266
, wireless console
, WiFi-UART serial bridge
, esp-link
, MCU
, embedded
, RPi
, raspberry pi
In order to control or access a DUT without NIC, we can use ESP8266 as our solution.
User 1 can telnet to NodeMCU to control Raspberry Pi 2 remotely through WLAN or WAN as shown below.
ESP8266 is a cost-effective and highly integrated Wi-Fi MCU for IoT applications.
One of the most well-known (appeared on Hackaday’s blog) and well-designed projects to make ESP8266 as a WiFi-UART bridge is jeelabs’s esp-link.
You will see the LED on esp-12 module is blinking during flashing the firmware as shown below.
The LED will light up for about 2 secs while you press the RST button.
We can read u-boot messages while booting NodeMCU with esp-link firmware by using a serial console with 76600 baud rate as shown below.
We can read messages after booting u-boot by using a serial console with 115200 baud rate as shown below.
After reboot NodeMCU, you should see a new WiFi network with SSID ESP_XXXXX as shown below. And you should connect to it.
===>
Open your browser with http://192.168.4.1 to see the esp-link homepage as shown below
Config "Pin assignment" to esp-12
Config WiFi station
Switch to STA+AP mode and scan
Connect to the SoftAP (Handsomeguy->connect is my mobile hotspot)
Use static IP
The blue LED on NodeMCU will blink once when you input a character each time.
Fix it by enabling localecho.
Reference to this article.
We can upload these compiled code to NodeMCU by with Arduino IDE.
You can also use socat instead of telnet:
Another way of using socat is to redirect the TCP to a /dev/tty entry like /dev/vmodem0 for example:
One socat is running, you can connect to the device (with CRTL-C working and being able to out of top) with screen:
https://www.espressif.com/en/products/socs/esp8266
https://github.com/jeelabs/esp-link
https://github.com/nodemcu/nodemcu-flasher
https://atadiat.com/en/e-esp8266-esp32-wifi-serial-bridge-converter/amp/
https://pi4j.com/1.2/pins/model-2b-rev1.html
https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads
https://www.abelectronics.co.uk/kb/article/1035/serial-port-setup-in-raspberry-pi-os
https://www.hackster.io/higgsino/huzzah-feather-esp8266-with-max3232-as-rs232-to-wifi-device-5004f6
https://www.hackster.io/chuygen/wireless-serial-bridge-d149ef
http://www.zoobab.com/esp8266-serial2wifi-bridge
https://www.printables.com/model/226933-case-for-nodemcu-esp8266-v3-rs232-to-ttl-breakout-